UI work, placing traps, removing traps, disarming traps, new sound fx.

This commit is contained in:
2025-12-25 17:52:30 -05:00
parent 3b6407d6e5
commit 55eb37ca74
34 changed files with 867 additions and 72 deletions

View File

@@ -0,0 +1,110 @@
[gd_scene load_steps=4 format=3 uid="uid://v12wymuy2xk6"]
[ext_resource type="Script" uid="uid://5nrsscwod1xg" path="res://scripts/disarm_trap_modal.gd" id="1_eo0gq"]
[ext_resource type="Texture2D" uid="uid://barbcaa2xvgkk" path="res://visuals/images/icons/switch button.png" id="2_cgabh"]
[ext_resource type="Texture2D" uid="uid://diyks5oxgidoo" path="res://visuals/images/icons/ranged attack button.png" id="3_06srb"]
[node name="DisarmTrapModal" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_eo0gq")
[node name="ConfirmationDialog" type="ConfirmationDialog" parent="."]
unique_name_in_owner = true
oversampling_override = 1.0
initial_position = 1
visible = true
transient = false
borderless = true
always_on_top = true
unfocusable = true
ok_button_text = "Disarm"
dialog_text = "Disarm Trap?"
[node name="Control" type="Control" parent="ConfirmationDialog"]
layout_mode = 3
anchors_preset = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 192.0
offset_bottom = 51.0
[node name="TextureRect" type="TextureRect" parent="ConfirmationDialog/Control"]
z_index = 10
layout_mode = 0
offset_left = 36.0
offset_top = 29.0
offset_right = 68.0
offset_bottom = 61.0
texture = ExtResource("2_cgabh")
expand_mode = 1
[node name="TextureRect2" type="TextureRect" parent="ConfirmationDialog/Control"]
z_index = 10
layout_mode = 0
offset_left = 120.0
offset_top = 29.0
offset_right = 152.0
offset_bottom = 61.0
texture = ExtResource("3_06srb")
expand_mode = 1
[node name="Timer" type="Timer" parent="."]
unique_name_in_owner = true
[node name="DisarmSound" type="AudioStreamPlayer" parent="."]
[node name="SuccessSound" type="AudioStreamPlayer" parent="."]
[node name="AudioStreamPlayer3" type="AudioStreamPlayer" parent="."]
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="DisarmWindow" type="PanelContainer" parent="CanvasLayer"]
unique_name_in_owner = true
visible = false
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -96.0
offset_top = -56.0
offset_right = 96.0
offset_bottom = 56.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/DisarmWindow"]
layout_mode = 2
alignment = 1
[node name="PressToDisarmHeader" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
layout_mode = 2
text = "PRESS TO DISARM"
horizontal_alignment = 1
[node name="Panel" type="PanelContainer" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
layout_mode = 2
[node name="DisarmContainer" type="HBoxContainer" parent="CanvasLayer/DisarmWindow/VBoxContainer/Panel"]
unique_name_in_owner = true
layout_mode = 2
alignment = 1
[node name="TimeRemainingLabel" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
layout_mode = 2
text = "TIME REMAINING: "
horizontal_alignment = 1
[node name="TimerLabel" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "00.000"
horizontal_alignment = 1
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]