From d70638301153c9133f3a3e1e21a226e6319b0475 Mon Sep 17 00:00:00 2001 From: Oier Bravo Urtasun Date: Sun, 9 Feb 2025 23:53:21 +0100 Subject: [PATCH] Now with inventory --- .../inventory/inventory_ui.tscn | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn b/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn index 4b994e50..fe506336 100644 --- a/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn +++ b/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn @@ -1,68 +1,66 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=3 format=3 uid="uid://bl50queikqfjc"] -[ext_resource path="res://addons/escoria-ui-return-monkey-island/inventory/inventory_ui.gd" type="Script" id=1] -[ext_resource path="res://addons/escoria-core/ui_library/inventory/esc_inventory_container.gd" type="Script" id=3] +[ext_resource type="Script" path="res://addons/escoria-ui-return-monkey-island/inventory/inventory_ui.gd" id="1"] +[ext_resource type="Script" path="res://addons/escoria-core/ui_library/inventory/esc_inventory_container.gd" id="3"] [node name="inventory_ui" type="Control"] +custom_minimum_size = Vector2(90, 90) +layout_mode = 3 anchor_right = 0.5 anchor_bottom = 0.5 offset_right = 768.0 offset_bottom = 540.0 -custom_minimum_size = Vector2( 90, 90 ) -scale = Vector2( 0.4, 0.4 ) +scale = Vector2(0.4, 0.4) size_flags_horizontal = 0 size_flags_vertical = 3 -script = ExtResource( 1 ) -__meta__ = { -"_edit_use_anchors_": true -} +script = ExtResource("1") inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/ScrollContainer/container") [node name="FloatingInventory" type="CanvasLayer" parent="."] [node name="inventory_bg" type="Polygon2D" parent="FloatingInventory"] -color = Color( 0.156863, 0.0627451, 0, 1 ) -polygon = PackedVector2Array( -3, 578, 1280, 578, 1280, 752, -3, 757 ) +color = Color(0.156863, 0.0627451, 0, 1) +polygon = PackedVector2Array(-3, 578, 1280, 578, 1280, 752, -3, 757) [node name="panel" type="TextureRect" parent="FloatingInventory"] +custom_minimum_size = Vector2(0, 160) +anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -1276.0 offset_top = -160.0 -custom_minimum_size = Vector2( 0, 160 ) size_flags_horizontal = 3 size_flags_vertical = 3 -expand = true +expand_mode = 1 [node name="MarginContainer" type="MarginContainer" parent="FloatingInventory/panel"] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -4.0 offset_top = 2.0 offset_right = -16.0 +grow_horizontal = 2 +grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -theme_override_constants/margin_right = 20 -theme_override_constants/margin_top = 20 theme_override_constants/margin_left = 20 +theme_override_constants/margin_top = 20 +theme_override_constants/margin_right = 20 theme_override_constants/margin_bottom = 20 [node name="ScrollContainer" type="ScrollContainer" parent="FloatingInventory/panel/MarginContainer"] -offset_left = 20.0 -offset_top = 79.0 -offset_right = 1244.0 -offset_bottom = 79.0 +layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 6 -scroll_vertical_enabled = false +vertical_scroll_mode = 0 [node name="container" type="HBoxContainer" parent="FloatingInventory/panel/MarginContainer/ScrollContainer"] -offset_right = 1224.0 +layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_override_constants/separation = 20 -script = ExtResource( 3 ) - -[node name="InventoryTween" type="Tween" parent="FloatingInventory"] +script = ExtResource("3")