Now with inventory
This commit is contained in:
@@ -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 type="Script" path="res://addons/escoria-ui-return-monkey-island/inventory/inventory_ui.gd" 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-core/ui_library/inventory/esc_inventory_container.gd" id="3"]
|
||||||
|
|
||||||
[node name="inventory_ui" type="Control"]
|
[node name="inventory_ui" type="Control"]
|
||||||
|
custom_minimum_size = Vector2(90, 90)
|
||||||
|
layout_mode = 3
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_right = 768.0
|
offset_right = 768.0
|
||||||
offset_bottom = 540.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_horizontal = 0
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
script = ExtResource( 1 )
|
script = ExtResource("1")
|
||||||
__meta__ = {
|
|
||||||
"_edit_use_anchors_": true
|
|
||||||
}
|
|
||||||
inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/ScrollContainer/container")
|
inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/ScrollContainer/container")
|
||||||
|
|
||||||
[node name="FloatingInventory" type="CanvasLayer" parent="."]
|
[node name="FloatingInventory" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
[node name="inventory_bg" type="Polygon2D" parent="FloatingInventory"]
|
[node name="inventory_bg" type="Polygon2D" parent="FloatingInventory"]
|
||||||
color = Color( 0.156863, 0.0627451, 0, 1 )
|
color = Color(0.156863, 0.0627451, 0, 1)
|
||||||
polygon = PackedVector2Array( -3, 578, 1280, 578, 1280, 752, -3, 757 )
|
polygon = PackedVector2Array(-3, 578, 1280, 578, 1280, 752, -3, 757)
|
||||||
|
|
||||||
[node name="panel" type="TextureRect" parent="FloatingInventory"]
|
[node name="panel" type="TextureRect" parent="FloatingInventory"]
|
||||||
|
custom_minimum_size = Vector2(0, 160)
|
||||||
|
anchors_preset = 3
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = -1276.0
|
offset_left = -1276.0
|
||||||
offset_top = -160.0
|
offset_top = -160.0
|
||||||
custom_minimum_size = Vector2( 0, 160 )
|
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="MarginContainer" type="MarginContainer" parent="FloatingInventory/panel"]
|
[node name="MarginContainer" type="MarginContainer" parent="FloatingInventory/panel"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = -4.0
|
offset_left = -4.0
|
||||||
offset_top = 2.0
|
offset_top = 2.0
|
||||||
offset_right = -16.0
|
offset_right = -16.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 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_left = 20
|
||||||
|
theme_override_constants/margin_top = 20
|
||||||
|
theme_override_constants/margin_right = 20
|
||||||
theme_override_constants/margin_bottom = 20
|
theme_override_constants/margin_bottom = 20
|
||||||
|
|
||||||
[node name="ScrollContainer" type="ScrollContainer" parent="FloatingInventory/panel/MarginContainer"]
|
[node name="ScrollContainer" type="ScrollContainer" parent="FloatingInventory/panel/MarginContainer"]
|
||||||
offset_left = 20.0
|
layout_mode = 2
|
||||||
offset_top = 79.0
|
|
||||||
offset_right = 1244.0
|
|
||||||
offset_bottom = 79.0
|
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 6
|
size_flags_vertical = 6
|
||||||
scroll_vertical_enabled = false
|
vertical_scroll_mode = 0
|
||||||
|
|
||||||
[node name="container" type="HBoxContainer" parent="FloatingInventory/panel/MarginContainer/ScrollContainer"]
|
[node name="container" type="HBoxContainer" parent="FloatingInventory/panel/MarginContainer/ScrollContainer"]
|
||||||
offset_right = 1224.0
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
theme_override_constants/separation = 20
|
theme_override_constants/separation = 20
|
||||||
script = ExtResource( 3 )
|
script = ExtResource("3")
|
||||||
|
|
||||||
[node name="InventoryTween" type="Tween" parent="FloatingInventory"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user