Compare commits

...

2 Commits

Author SHA1 Message Date
Martin Felis 5c1509f06f Random scene changes. 2024-11-27 20:51:45 +01:00
Martin Felis 04481cefef Switching to build tool does not immediately activate build system. 2024-11-27 20:51:20 +01:00
9 changed files with 410 additions and 93 deletions

View File

@ -12,3 +12,4 @@ icon = ExtResource("1_fe6dh")
max_stack_size = 64
is_tool = false
is_buildable = true
tool_action = 0

View File

@ -69,7 +69,7 @@ func _process(_delta):
build_dialog.hide()
if _game_scene != null:
if _player.has_build_tool_active():
if _player.has_build_tool_active() and _game_scene.build_system.build_item != null:
_game_scene.build_system.is_active = true
else:
_game_scene.build_system.is_active = false
@ -157,7 +157,11 @@ func _on_tool_select(item_slot:ItemSlot) -> void:
func _on_build_items_container_item_selected(item_slot:ItemSlot) -> void:
if _game_scene:
_game_scene.build_system.build_item = item_slot.get_item()
if item_slot != null:
_game_scene.build_system.build_item = item_slot.get_item()
else:
_game_scene.build_system.build_item = null
build_dialog.hide()

View File

@ -26,7 +26,7 @@ shape = SubResource("BoxShape3D_4etwi")
[node name="GrowTimer" type="Timer" parent="."]
unique_name_in_owner = true
wait_time = 2.20674
wait_time = 2.08988
[node name="ItemSpawner" parent="." instance=ExtResource("3_cuts0")]
unique_name_in_owner = true

View File

@ -170,7 +170,7 @@ unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.98728)
[node name="RightHandBone" type="BoneAttachment3D" parent="."]
transform = Transform3D(-0.000808071, -0.0634631, 0.394932, 0.399985, -0.00338096, 0.000274934, 0.00329465, 0.394919, 0.0634677, -0.196422, 0.250954, 0.0421328)
transform = Transform3D(-0.000355374, -0.0615158, 0.395241, 0.399997, -0.0015009, 0.000125934, 0.00146382, 0.395238, 0.0615168, -0.196426, 0.253977, 0.0423942)
bone_name = "Knife"
bone_idx = 17
use_external_skeleton = true
@ -190,31 +190,31 @@ transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
[node name="Skeleton3D" parent="Geometry/Rogue/Rig" index="0"]
bones/0/rotation = Quaternion(0, 1.19209e-07, 0, 1)
bones/1/position = Vector3(0, 0.386198, 0)
bones/1/position = Vector3(0, 0.389752, 0)
bones/1/rotation = Quaternion(-1.11123e-10, 0.0431578, 2.57241e-09, 0.999068)
bones/2/rotation = Quaternion(0, 7.10543e-15, 0, 1)
bones/4/position = Vector3(0.212007, 0.134132, 8.40246e-08)
bones/4/rotation = Quaternion(-0.555519, -0.0631045, -0.654455, 0.509024)
bones/5/rotation = Quaternion(1.81368e-08, -6.33466e-08, -0.477413, 0.878679)
bones/7/rotation = Quaternion(-0.317798, -0.326169, 0.136363, 0.879786)
bones/4/rotation = Quaternion(-0.55801, -0.0619593, -0.648941, 0.51348)
bones/5/rotation = Quaternion(1.96982e-08, -4.3963e-08, -0.486423, 0.873723)
bones/7/rotation = Quaternion(-0.319509, -0.325501, 0.141342, 0.878627)
bones/8/position = Vector3(8.34815e-10, 0.0961251, -0.0575001)
bones/8/rotation = Quaternion(0.00139643, 0.00139642, -0.701961, 0.712212)
bones/8/rotation = Quaternion(0.000690466, 0.000690435, -0.704567, 0.709636)
bones/10/position = Vector3(-0.212007, 0.134132, 8.40246e-08)
bones/10/rotation = Quaternion(-0.614663, 0.0830297, 0.627351, 0.470877)
bones/11/rotation = Quaternion(8.33e-09, 4.82012e-08, 0.50143, 0.865198)
bones/13/rotation = Quaternion(-0.316164, 0.30041, -0.217973, 0.873088)
bones/10/rotation = Quaternion(-0.616723, 0.0818303, 0.62242, 0.474921)
bones/11/rotation = Quaternion(2.05049e-08, 5.23177e-08, 0.510019, 0.860163)
bones/13/rotation = Quaternion(-0.317791, 0.300232, -0.222949, 0.8713)
bones/14/position = Vector3(-8.34815e-10, 0.0961251, -0.0575001)
bones/14/rotation = Quaternion(0.00288213, 0.00339473, 0.704106, 0.710081)
bones/14/rotation = Quaternion(0.00127961, 0.00150719, 0.705778, 0.70843)
bones/19/rotation = Quaternion(-5.8061e-11, -0.0313416, -1.88013e-09, 0.999509)
bones/21/position = Vector3(0.170945, 0.113587, 1.39233e-08)
bones/21/rotation = Quaternion(0.992999, 0.0832003, 0.0753553, 0.0367805)
bones/22/rotation = Quaternion(0.262887, 6.48726e-08, -1.83382e-07, 0.964827)
bones/23/rotation = Quaternion(-0.552533, -0.20729, 0.054077, 0.80549)
bones/21/rotation = Quaternion(0.993492, 0.0834361, 0.0743162, 0.0221156)
bones/22/rotation = Quaternion(0.224683, 6.63181e-08, -1.53341e-07, 0.974432)
bones/23/rotation = Quaternion(-0.532678, -0.208619, 0.0480771, 0.818792)
bones/24/rotation = Quaternion(-3.04797e-08, 0.920355, -0.391084, 6.94849e-08)
bones/25/position = Vector3(-0.170945, 0.113587, 1.39233e-08)
bones/25/rotation = Quaternion(0.995919, -0.0305595, 0.0310078, 0.0790601)
bones/26/rotation = Quaternion(0.325495, -6.26467e-08, 2.26499e-07, 0.945544)
bones/27/rotation = Quaternion(-0.586435, 0.114109, -0.0129731, 0.801813)
bones/25/rotation = Quaternion(0.996786, -0.029905, 0.0313134, 0.0673989)
bones/26/rotation = Quaternion(0.295482, -6.32887e-08, 2.05301e-07, 0.955348)
bones/27/rotation = Quaternion(-0.570454, 0.114367, -0.0104161, 0.813262)
bones/28/rotation = Quaternion(3.04797e-08, 0.920355, -0.391084, -6.94849e-08)
bones/29/position = Vector3(0.170945, 0.29231, 0.575812)
bones/29/rotation = Quaternion(0.707107, -2.29302e-07, -4.60551e-08, 0.707107)
@ -238,30 +238,30 @@ bones/40/position = Vector3(-6.31128e-09, 0.16565, 1.36608e-09)
bones/41/rotation = Quaternion(1, 4.44086e-16, 1.94707e-07, 6.91739e-22)
bones/43/position = Vector3(0.453507, 1.10676, -0.588859)
bones/43/rotation = Quaternion(-0.707107, -7.27951e-08, -7.27951e-08, 0.707107)
bones/44/position = Vector3(0.520841, 0.775574, -0.0576374)
bones/44/position = Vector3(0.520841, 0.782657, -0.0576374)
bones/44/rotation = Quaternion(0.794627, -1.2666e-07, 0.607098, -5.96046e-08)
bones/45/position = Vector3(-0.453507, 1.10676, -0.58886)
bones/45/rotation = Quaternion(-0.707107, -7.27951e-08, -7.27951e-08, 0.707107)
bones/46/position = Vector3(-0.510844, 0.775574, 0.0597369)
bones/46/position = Vector3(-0.510844, 0.782657, 0.0597369)
bones/46/rotation = Quaternion(-0.758253, -1.82539e-07, 0.651961, -1.11759e-08)
[node name="Knife_Offhand" parent="Geometry/Rogue/Rig/Skeleton3D" index="0"]
transform = Transform3D(1.88613e-06, 0.262865, 0.964832, 0.999886, -0.014497, 0.00394805, 0.0150252, 0.964723, -0.262835, 0.50754, 0.623272, -0.0198059)
transform = Transform3D(5.20757e-06, 0.262874, 0.96483, 0.999971, -0.00716806, 0.00194798, 0.00742836, 0.964803, -0.262867, 0.507662, 0.630718, -0.0191397)
[node name="1H_Crossbow" parent="Geometry/Rogue/Rig/Skeleton3D" index="1"]
transform = Transform3D(0.987331, -0.158658, 0.00202018, 0.000687315, -0.00845254, -0.999963, 0.15867, 0.987297, -0.00823678, -0.489622, 0.732096, 0.095967)
transform = Transform3D(0.988103, -0.15379, 0.000888439, 0.000314816, -0.00375239, -0.999992, 0.153792, 0.988096, -0.00365969, -0.489565, 0.739608, 0.0961331)
[node name="2H_Crossbow" parent="Geometry/Rogue/Rig/Skeleton3D" index="2"]
transform = Transform3D(0.987331, -0.158658, 0.00202018, 0.000687315, -0.00845254, -0.999963, 0.15867, 0.987297, -0.00823678, -0.489622, 0.732096, 0.095967)
transform = Transform3D(0.988103, -0.15379, 0.000888439, 0.000314816, -0.00375239, -0.999992, 0.153792, 0.988096, -0.00365969, -0.489565, 0.739608, 0.0961331)
[node name="Knife" parent="Geometry/Rogue/Rig/Skeleton3D" index="3"]
transform = Transform3D(-0.00202018, -0.158658, 0.987331, 0.999963, -0.00845239, 0.000687336, 0.00823663, 0.987297, 0.158669, -0.491055, 0.627384, 0.105332)
transform = Transform3D(-0.000888434, -0.15379, 0.988103, 0.999992, -0.00375224, 0.000314836, 0.00365954, 0.988096, 0.153792, -0.491065, 0.634942, 0.105985)
[node name="Throwable" parent="Geometry/Rogue/Rig/Skeleton3D" index="4"]
transform = Transform3D(-0.00202016, -0.158658, 0.987331, 0.999963, -0.00845237, 0.000687321, 0.00823661, 0.987297, 0.158669, -0.519652, 0.62586, 0.283288)
transform = Transform3D(-0.000888418, -0.15379, 0.988103, 0.999992, -0.00375223, 0.000314822, 0.00365953, 0.988096, 0.153792, -0.518785, 0.634265, 0.284086)
[node name="Rogue_Cape" parent="Geometry/Rogue/Rig/Skeleton3D" index="5"]
transform = Transform3D(0.996275, -5.14962e-09, 0.0862354, 5.13044e-09, 1, 4.44078e-10, -0.0862354, 1.47756e-15, 0.996275, -4.17227e-09, 1.19641, 1.19714e-15)
transform = Transform3D(0.996275, -5.14962e-09, 0.0862354, 5.13044e-09, 1, 4.44078e-10, -0.0862354, 1.47756e-15, 0.996275, -4.17227e-09, 1.19996, 1.19714e-15)
[node name="AnimationPlayer" type="AnimationPlayer" parent="Geometry"]
root_node = NodePath("../Rogue")

View File

@ -985,8 +985,6 @@ unique_name_in_owner = true
[connection signal="item_selected" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes/RecipeList" to="GameUI/InventoryDialog" method="_on_recipe_list_item_selected"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/ItemSlot" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/ItemSlot" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/ItemSlot" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/ItemSlot" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18026" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18026" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18026" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18026" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18027" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18027" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18027" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18027" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18028" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18028" method="_on_gui_input"]
@ -1001,6 +999,8 @@ unique_name_in_owner = true
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18032" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18032" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18033" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18033" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18033" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18033" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18034" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18034" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18034" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer/IngredientsContainer/@Panel@18034" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer/ResultsContainer/ItemSlot" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer/ResultsContainer/ItemSlot" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer/ResultsContainer/ItemSlot" to="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer/ResultsContainer/ItemSlot" method="_on_mouse_entered"]
[connection signal="pressed" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer/CraftButton" to="GameUI/InventoryDialog" method="_on_craft_button_pressed"]
@ -1013,8 +1013,6 @@ unique_name_in_owner = true
[connection signal="item_selected" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer" to="GameUI/BuildDialog" method="_on_build_items_container_item_selected"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/ItemSlot" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/ItemSlot" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/ItemSlot" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/ItemSlot" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18034" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18034" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18034" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18034" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18035" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18035" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18035" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18035" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18036" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18036" method="_on_gui_input"]
@ -1043,10 +1041,10 @@ unique_name_in_owner = true
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18047" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18047" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18048" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18048" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18048" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18048" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18049" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18049" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18049" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemsContainer/@Panel@18049" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/ItemSlot" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/ItemSlot" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/ItemSlot" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/ItemSlot" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18049" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18049" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18049" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18049" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18050" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18050" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18050" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18050" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18051" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18051" method="_on_gui_input"]
@ -1059,3 +1057,5 @@ unique_name_in_owner = true
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18054" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18054" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18055" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18055" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18055" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18055" method="_on_mouse_entered"]
[connection signal="gui_input" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18056" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18056" method="_on_gui_input"]
[connection signal="mouse_entered" from="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18056" to="GameUI/BuildDialog/Panel/MarginContainer/VBoxContainer/BuildItemResourcesContainer/@Panel@18056" method="_on_mouse_entered"]

View File

@ -14,7 +14,7 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
if build_system.is_active and build_system.build_item != null:
if build_system.is_active:
player.process_mode = Node.PROCESS_MODE_DISABLED
else:
player.process_mode = Node.PROCESS_MODE_ALWAYS

View File

@ -1,11 +1,10 @@
[gd_scene load_steps=10 format=3 uid="uid://cqie4cy0uy1t0"]
[gd_scene load_steps=9 format=3 uid="uid://cqie4cy0uy1t0"]
[ext_resource type="Script" path="res://scenes/game.gd" id="1_kl6si"]
[ext_resource type="PackedScene" uid="uid://ch0s3dxx3rpir" path="res://objects/player.tscn" id="2_rjgxk"]
[ext_resource type="Script" path="res://systems/QuestSystem.gd" id="4_8oxap"]
[ext_resource type="Script" path="res://systems/BuildSystem.gd" id="4_iqdys"]
[ext_resource type="PackedScene" uid="uid://dmagdl5pi6jdj" path="res://world/level.tscn" id="6_svjo8"]
[ext_resource type="Resource" uid="uid://cepy03xrewibs" path="res://data/items/floor.tres" id="6_xdkny"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_y65pc"]
@ -43,7 +42,6 @@ script = ExtResource("4_8oxap")
[node name="BuildSystem" type="Node" parent="."]
unique_name_in_owner = true
script = ExtResource("4_iqdys")
build_item = ExtResource("6_xdkny")
[node name="BuildPreview" type="Node3D" parent="BuildSystem"]
unique_name_in_owner = true

View File

@ -75,6 +75,7 @@ func _on_slot_mouse_entered(slot:ItemSlot):
func select_slot(index:int) -> void:
if index < 0 or index > _slots.size():
item_selected.emit(null)
return
_selected_slot_index = index

File diff suppressed because one or more lines are too long