Hard-typing more variables
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
extends OptionButton
|
||||
class_name GPListButton
|
||||
|
||||
signal gp_selected(id: int)
|
||||
signal new_selected()
|
||||
|
||||
@@ -10,8 +10,8 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 70
|
||||
alignment = 2
|
||||
item_count = 1
|
||||
allow_reselect = true
|
||||
item_count = 1
|
||||
popup/item_0/text = "New"
|
||||
popup/item_0/id = 0
|
||||
script = ExtResource("1_14uic")
|
||||
|
||||
@@ -101,7 +101,7 @@ func set_graphemes_edit(p_gp_ids: Array[int]) -> void:
|
||||
|
||||
|
||||
func add_gp_list_button(gp_id: int, ind_gp_id: int) -> void:
|
||||
var gp_list_button: = gp_list_button_scene.instantiate()
|
||||
var gp_list_button: GPListButton = gp_list_button_scene.instantiate()
|
||||
gp_list_button.set_gp_list(sub_elements_list)
|
||||
graphemes_edit_container.add_child(gp_list_button)
|
||||
graphemes_edit_container.move_child(gp_list_button, 2 * ind_gp_id)
|
||||
|
||||
Reference in New Issue
Block a user