Updated item_generator code to emit gen started/finished signals. hooked up level to play drill animations though the anim player is missing the actual animation

This commit is contained in:
akshay committed 2022-08-20 20:41:31 -04:00
1 parent e433f3851b
commit 5e857e478e
6 files changed
+55 -45

No files matched your search

+6 -31
View File
@@ -3,13 +3,16 @@
[ext_resource path="res://scripts/cheat_menu.gd" type="Script" id=1]
[node name="cheat_menu" type="WindowDialog"]
margin_right = 429.0
margin_bottom = 336.0
anchor_right = 0.223
anchor_bottom = 0.451
margin_right = 0.839996
margin_bottom = -0.0800476
script = ExtResource( 1 )
[node name="TabContainer" type="TabContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = 1.0
tab_align = 0
[node name="Player" type="VBoxContainer" parent="TabContainer"]
@@ -31,34 +34,10 @@ margin_right = 421.0
margin_bottom = 44.0
text = "+5 Charge"
[node name="raw_yam" type="Button" parent="TabContainer/Player"]
[node name="clear" type="Button" parent="TabContainer/Player"]
margin_top = 48.0
margin_right = 421.0
margin_bottom = 68.0
text = "Raw Yam"
[node name="cooked_yam" type="Button" parent="TabContainer/Player"]
margin_top = 72.0
margin_right = 421.0
margin_bottom = 92.0
text = "Cooked Yam"
[node name="ore" type="Button" parent="TabContainer/Player"]
margin_top = 96.0
margin_right = 421.0
margin_bottom = 116.0
text = "Ore"
[node name="repair_kit" type="Button" parent="TabContainer/Player"]
margin_top = 120.0
margin_right = 421.0
margin_bottom = 140.0
text = "Repair Kit"
[node name="clear" type="Button" parent="TabContainer/Player"]
margin_top = 120.0
margin_right = 421.0
margin_bottom = 140.0
text = "Clear Held Item"
[node name="Events" type="VBoxContainer" parent="TabContainer"]
@@ -82,10 +61,6 @@ text = "Day Timer 00:02"
[connection signal="pressed" from="TabContainer/Player/charge" to="." method="_on_charge_pressed"]
[connection signal="pressed" from="TabContainer/Player/charge_5" to="." method="_on_charge_5_pressed"]
[connection signal="pressed" from="TabContainer/Player/raw_yam" to="." method="_on_raw_yam_pressed"]
[connection signal="pressed" from="TabContainer/Player/cooked_yam" to="." method="_on_cooked_yam_pressed"]
[connection signal="pressed" from="TabContainer/Player/ore" to="." method="_on_ore_pressed"]
[connection signal="pressed" from="TabContainer/Player/repair_kit" to="." method="_on_repair_kit_pressed"]
[connection signal="pressed" from="TabContainer/Player/clear" to="." method="_on_clear_pressed"]
[connection signal="pressed" from="TabContainer/Events/random_damage" to="." method="_on_random_damage_pressed"]
[connection signal="pressed" from="TabContainer/Events/timer_2_s" to="." method="_on_timer_2_s_pressed"]
+2
View File
@@ -443,5 +443,7 @@ time_per_day = 300.0
[connection signal="player_exited" from="cameras/camera_comms" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_hydroponics" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_hydroponics" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="gen_finished" from="Ore_Conveyor_Room/item_generator" to="Level" method="_on_item_generator_gen_finished"]
[connection signal="gen_started" from="Ore_Conveyor_Room/item_generator" to="Level" method="_on_item_generator_gen_started"]
[editable path="Level"]