context menu added

player can find food and eat it
This commit is contained in:
Nikolai Fesenko
2025-08-20 16:45:03 +02:00
parent 9bab0ff0f3
commit a0efc6b9b8
11 changed files with 131 additions and 15 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://cyaesj3qjb5um"]
[gd_scene load_steps=4 format=3 uid="uid://cyaesj3qjb5um"]
[ext_resource type="Script" uid="uid://bqh6f4f4sc4ba" path="res://Scripts/ui/panel_build_select.gd" id="1_dew6i"]
[ext_resource type="Script" uid="uid://3bsllk6udire" path="res://Scripts/button_select_build.gd" id="1_yp16r"]
[ext_resource type="Script" uid="uid://di0njko68ahky" path="res://Scripts/ContextMenu.gd" id="3_yve02"]
[node name="MainGameUi" type="Control"]
layout_mode = 3
@@ -83,6 +84,42 @@ text = "Shelf"
script = ExtResource("1_yp16r")
id = 3
[node name="Panel3" type="Panel" parent="."]
visible = false
clip_contents = true
layout_mode = 0
offset_right = 119.0
offset_bottom = 92.0
script = ExtResource("3_yve02")
[node name="ScrollContainer" type="ScrollContainer" parent="Panel3"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Panel3/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Button" type="Button" parent="Panel3/ScrollContainer/VBoxContainer"]
layout_mode = 2
text = "Action #1"
[node name="Button2" type="Button" parent="Panel3/ScrollContainer/VBoxContainer"]
layout_mode = 2
text = "Action #2"
[node name="Button3" type="Button" parent="Panel3/ScrollContainer/VBoxContainer"]
layout_mode = 2
text = "Action #1"
[node name="Button4" type="Button" parent="Panel3/ScrollContainer/VBoxContainer"]
layout_mode = 2
text = "Action #1"
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreateBed" to="Panel2/HBoxContainer/ButtonCreateBed" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot" to="Panel2/HBoxContainer/ButtonCreatePot" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot2" to="Panel2/HBoxContainer/ButtonCreatePot2" method="_on_pressed"]