some restructuring

This commit is contained in:
Lera Elvoé 2023-03-06 11:03:01 +03:00
parent 3e967559e2
commit c9c1cdeaae
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
3 changed files with 3 additions and 2 deletions

View File

@ -4,3 +4,4 @@ class_name GroupMetadata
@export var icon_path: String @export var icon_path: String
@export var description: String @export var description: String
@export var installs: Array[InstallMetadata] @export var installs: Array[InstallMetadata]
@export var settings_overrides: Dictionary

View File

@ -38,8 +38,9 @@ func _ready() -> void:
header_text_label.gui_input.connect(_on_header_text_label_gui_input) header_text_label.gui_input.connect(_on_header_text_label_gui_input)
func add(item: InstallItem) -> void: func add(item: InstallItem) -> int:
child_container.add_child(item) child_container.add_child(item)
return child_container.get_child_count()
func free_item(at_idx: int) -> void: func free_item(at_idx: int) -> void:

View File

@ -4,7 +4,6 @@
[ext_resource type="Texture2D" uid="uid://de57eeeobflp4" path="res://icon.svg" id="1_wwvlr"] [ext_resource type="Texture2D" uid="uid://de57eeeobflp4" path="res://icon.svg" id="1_wwvlr"]
[node name="InstallItem" type="HBoxContainer"] [node name="InstallItem" type="HBoxContainer"]
anchors_preset = -1
offset_right = 299.0 offset_right = 299.0
offset_bottom = 32.0 offset_bottom = 32.0
script = ExtResource("1_sh2ev") script = ExtResource("1_sh2ev")