From c9c1cdeaae6a3291964fcee5b4dfca304bca65cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 6 Mar 2023 11:03:01 +0300 Subject: [PATCH] some restructuring --- Classes/GroupMetadata.gd | 1 + UI/Components/GroupMenu.gd | 3 ++- UI/Components/InstallItem.tscn | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/GroupMetadata.gd b/Classes/GroupMetadata.gd index a44de86..6fded73 100644 --- a/Classes/GroupMetadata.gd +++ b/Classes/GroupMetadata.gd @@ -4,3 +4,4 @@ class_name GroupMetadata @export var icon_path: String @export var description: String @export var installs: Array[InstallMetadata] +@export var settings_overrides: Dictionary diff --git a/UI/Components/GroupMenu.gd b/UI/Components/GroupMenu.gd index 738cb7b..e254feb 100644 --- a/UI/Components/GroupMenu.gd +++ b/UI/Components/GroupMenu.gd @@ -38,8 +38,9 @@ func _ready() -> void: 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) + return child_container.get_child_count() func free_item(at_idx: int) -> void: diff --git a/UI/Components/InstallItem.tscn b/UI/Components/InstallItem.tscn index d0f887f..8f0548a 100644 --- a/UI/Components/InstallItem.tscn +++ b/UI/Components/InstallItem.tscn @@ -4,7 +4,6 @@ [ext_resource type="Texture2D" uid="uid://de57eeeobflp4" path="res://icon.svg" id="1_wwvlr"] [node name="InstallItem" type="HBoxContainer"] -anchors_preset = -1 offset_right = 299.0 offset_bottom = 32.0 script = ExtResource("1_sh2ev")