Hard-typing more variables

This commit is contained in:
Adrien Ufferte
2025-04-22 15:07:48 +02:00
parent dc41c5a06e
commit ee52f49a1b
5 changed files with 11 additions and 10 deletions
+1
View File
@@ -1,4 +1,5 @@
extends OptionButton
class_name GPListButton
signal gp_selected(id: int)
signal new_selected()
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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)