added TODO
This commit is contained in:
21
addons/Todo_Manager/Pattern.gd
Normal file
21
addons/Todo_Manager/Pattern.gd
Normal file
@@ -0,0 +1,21 @@
|
||||
@tool
|
||||
extends HBoxContainer
|
||||
|
||||
|
||||
var text : String : set = set_text
|
||||
var disabled : bool
|
||||
var index : int
|
||||
|
||||
@onready var line_edit := $LineEdit as LineEdit
|
||||
@onready var remove_button := $RemoveButton as Button
|
||||
@onready var case_checkbox := %CaseSensativeCheckbox as CheckBox
|
||||
|
||||
func _ready() -> void:
|
||||
line_edit.text = text
|
||||
remove_button.disabled = disabled
|
||||
|
||||
|
||||
func set_text(value: String) -> void:
|
||||
text = value
|
||||
if line_edit:
|
||||
line_edit.text = value
|
||||
Reference in New Issue
Block a user