context menu added
player can find food and eat it
This commit is contained in:
@@ -52,10 +52,12 @@ size = Vector3(5.62061, 2.52063, 2.12427)
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_c1046"]
|
||||
radius = 0.870929
|
||||
|
||||
[node name="DoubleBeds" type="Node3D" node_paths=PackedStringArray("meshInstance")]
|
||||
[node name="DoubleBeds" type="Node3D" node_paths=PackedStringArray("meshInstance", "ActionNode", "static_body")]
|
||||
script = ExtResource("1_nn5da")
|
||||
meshInstance = NodePath("DoubleBeds")
|
||||
preview_shader = SubResource("ShaderMaterial_dn7et")
|
||||
ActionNode = NodePath("ActionNode")
|
||||
static_body = NodePath("StaticBody3D")
|
||||
|
||||
[node name="DoubleBeds" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -1.83435, -0.42751, 0)
|
||||
|
||||
@@ -13,6 +13,7 @@ script = ExtResource("2_cemcp")
|
||||
mesh = NodePath("Cube")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="." index="0"]
|
||||
process_mode = 4
|
||||
transform = Transform3D(1, -1.44862e-12, -1.09139e-11, -1.56369e-12, 1, 1.81899e-12, 7.27596e-12, 0, 1, 0, 0, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" index="0"]
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user