Inventory context

This commit is contained in:
Rendo 2025-10-16 22:05:24 +05:00
commit fed57e38df
17 changed files with 128 additions and 108 deletions

View file

@ -1,12 +1,9 @@
[gd_scene load_steps=11 format=3 uid="uid://u7thalwj5742"]
[gd_scene load_steps=8 format=3 uid="uid://u7thalwj5742"]
[ext_resource type="PackedScene" uid="uid://b7du4vul4bmpq" path="res://scenes/player_platform.tscn" id="1_4ia00"]
[ext_resource type="Script" uid="uid://db37xmo8ygwhg" path="res://scripts/gui/construction_button.gd" id="2_27lod"]
[ext_resource type="Resource" uid="uid://dj524jjal1f0n" path="res://generic/prototypes/belt.tres" id="3_2crwe"]
[ext_resource type="Script" uid="uid://bnjwg4rlcfd8k" path="res://scripts/gui/construction_buttons_generator.gd" id="3_i7yte"]
[ext_resource type="Script" uid="uid://b4nkk0ndqcto" path="res://scripts/placement_manager.gd" id="4_i7yte"]
[ext_resource type="PackedScene" uid="uid://bac552xgua68e" path="res://scenes/other_platform.tscn" id="5_mnxrb"]
[ext_resource type="Resource" uid="uid://yn1iesx30nfu" path="res://generic/prototypes/dbg_assembler.tres" id="5_ymyc2"]
[ext_resource type="Resource" uid="uid://jhe8wtjoo6c6" path="res://generic/prototypes/dbg_item_deposit.tres" id="6_bq5r8"]
[sub_resource type="Animation" id="Animation_bq5r8"]
length = 0.001
@ -65,53 +62,14 @@ offset_top = -0.01600647
grow_horizontal = 2
grow_vertical = 0
[node name="ConveyorButton" type="Button" parent="GUI/Panel"]
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Panel"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.008
anchor_top = 0.086
anchor_right = 0.1
anchor_bottom = 0.88600004
offset_left = -0.096000195
offset_top = -0.01999998
offset_right = -0.20000076
offset_bottom = -0.020004272
size_flags_horizontal = 3
theme_type_variation = &"CRT"
icon_alignment = 1
expand_icon = true
script = ExtResource("2_27lod")
constructible = ExtResource("3_2crwe")
[node name="AssemblerButton" type="Button" parent="GUI/Panel"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.107421875
anchor_top = 0.08571429
anchor_right = 0.19921875
anchor_bottom = 0.8857143
size_flags_horizontal = 3
theme_type_variation = &"CRT"
icon_alignment = 1
expand_icon = true
script = ExtResource("2_27lod")
constructible = ExtResource("5_ymyc2")
metadata/_edit_use_anchors_ = true
[node name="SpawnerButton" type="Button" parent="GUI/Panel"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.20898438
anchor_top = 0.08571429
anchor_right = 0.30078125
anchor_bottom = 0.8857143
size_flags_horizontal = 3
theme_type_variation = &"CRT"
icon_alignment = 1
expand_icon = true
script = ExtResource("2_27lod")
constructible = ExtResource("6_bq5r8")
metadata/_edit_use_anchors_ = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("3_i7yte")
[node name="Placer" type="Node2D" parent="."]
script = ExtResource("4_i7yte")

View file

@ -0,0 +1,17 @@
[gd_scene load_steps=2 format=3 uid="uid://dwq8u8ptmcegk"]
[ext_resource type="Script" uid="uid://db37xmo8ygwhg" path="res://scripts/gui/construction_button.gd" id="1_unpdg"]
[node name="ConstructionButton" type="AspectRatioContainer"]
offset_right = 12.0
offset_bottom = 9.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = &"CRT"
[node name="Button" type="Button" parent="."]
layout_mode = 2
theme_type_variation = &"CRT"
icon_alignment = 1
expand_icon = true
script = ExtResource("1_unpdg")