No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Pattern.gd 375B

12345678910111213141516171819
  1. tool
  2. extends HBoxContainer
  3. var text : String setget set_text
  4. var disabled : bool
  5. var index : int
  6. onready var line_edit := $LineEdit as LineEdit
  7. onready var remove_button := $RemoveButton as Button
  8. func _ready() -> void:
  9. line_edit.text = text
  10. remove_button.disabled = disabled
  11. func set_text(value: String) -> void:
  12. text = value
  13. if line_edit:
  14. line_edit.text = value