Files
Cozypaw-Hospital/scenes/ui/HUD.tscn
Steven Wroblewski 13db45bb04 feat(core): implement room navigation, character states, save/load and settings menu
- RoomNavigator autoload: smooth camera pan between floors
- Floor1 and Floor2 placeholder rooms with elevator buttons
- CharacterData Resource with State enum (HEALTHY/SICK/SLEEPING/TIRED)
- Character visual state feedback via ColorRect color
- Main scene loads saved state on startup
- SettingsMenu with music/sfx sliders and game reset
- HUD settings button to open SettingsMenu

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 12:17:56 +02:00

50 lines
1.2 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://cozypaw_hud"]
[ext_resource type="Script" path="res://scripts/systems/hud.gd" id="1_hud"]
[node name="HUD" type="CanvasLayer"]
script = ExtResource("1_hud")
[node name="BackButton" type="Button" parent="."]
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 16.0
offset_top = 16.0
offset_right = 80.0
offset_bottom = 80.0
text = "←"
flat = false
[node name="MusicToggle" type="Button" parent="."]
anchors_preset = 1
anchor_left = 1.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 0.0
offset_left = -80.0
offset_top = 16.0
offset_right = -16.0
offset_bottom = 80.0
text = "♪"
flat = false
[node name="SettingsButton" type="Button" parent="."]
anchors_preset = 1
anchor_left = 1.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 0.0
offset_left = -160.0
offset_top = 16.0
offset_right = -96.0
offset_bottom = 80.0
text = "⚙"
flat = false
[connection signal="pressed" from="BackButton" to="." method="_on_back_button_pressed"]
[connection signal="pressed" from="MusicToggle" to="." method="_on_music_toggle_pressed"]
[connection signal="pressed" from="SettingsButton" to="." method="_on_settings_button_pressed"]