diff options
author | cel <cel@blos.sm> | 2022-07-16 22:42:19 +0100 |
---|---|---|
committer | cel <cel@blos.sm> | 2022-07-16 22:42:19 +0100 |
commit | fdbba87b346c6020d7349d0c2cb3793fcdab25f3 (patch) | |
tree | 7c5f3481dc1bd77d332a318d687eb714fea3ef68 /godot/scenes/Game.tscn | |
parent | 717a665a84dd9ca1b545d57976b87ba77bf11d80 (diff) | |
download | 2022-fdbba87b346c6020d7349d0c2cb3793fcdab25f3.tar.gz 2022-fdbba87b346c6020d7349d0c2cb3793fcdab25f3.tar.bz2 2022-fdbba87b346c6020d7349d0c2cb3793fcdab25f3.zip |
add menu and switch die code from rust to gdscript
Diffstat (limited to 'godot/scenes/Game.tscn')
-rw-r--r-- | godot/scenes/Game.tscn | 56 |
1 files changed, 54 insertions, 2 deletions
diff --git a/godot/scenes/Game.tscn b/godot/scenes/Game.tscn index 72fef4e..0896836 100644 --- a/godot/scenes/Game.tscn +++ b/godot/scenes/Game.tscn @@ -1,9 +1,61 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=5 format=2] -[ext_resource path="res://native/Game.gdns" type="Script" id=1] +[ext_resource path="res://scenes/Game.gd" type="Script" id=1] [ext_resource path="res://scenes/levels/test_scene_movement/TestSceneMovement.tscn" type="PackedScene" id=2] +[ext_resource path="res://assets/theme.tres" type="Theme" id=3] +[ext_resource path="res://assets/fonts/format.tres" type="DynamicFont" id=4] [node name="Game" type="Spatial"] script = ExtResource( 1 ) [node name="TestScene" parent="." instance=ExtResource( 2 )] + +[node name="PausePopup" type="Control" parent="."] +pause_mode = 2 +visible = false +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="Panel" type="Panel" parent="PausePopup"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 300.0 +margin_top = 200.0 +margin_right = -300.0 +margin_bottom = -200.0 +theme = ExtResource( 3 ) + +[node name="Label" type="Label" parent="PausePopup/Panel"] +anchor_right = 1.0 +anchor_bottom = 0.3 +theme = ExtResource( 3 ) +custom_fonts/font = ExtResource( 4 ) +text = "Game is Paused" +align = 1 +valign = 1 + +[node name="VBoxContainer" type="VBoxContainer" parent="PausePopup/Panel"] +anchor_top = 0.3 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 500.0 +margin_right = -500.0 +custom_constants/separation = 20 +alignment = 1 + +[node name="ResumeButton" type="Button" parent="PausePopup/Panel/VBoxContainer"] +margin_top = 161.0 +margin_right = 360.0 +margin_bottom = 242.0 +text = "Resume" + +[node name="QuitButton" type="Button" parent="PausePopup/Panel/VBoxContainer"] +margin_top = 262.0 +margin_right = 360.0 +margin_bottom = 343.0 +text = "Quit" + +[connection signal="pressed" from="PausePopup/Panel/VBoxContainer/ResumeButton" to="." method="_on_ResumeButton_pressed"] +[connection signal="pressed" from="PausePopup/Panel/VBoxContainer/QuitButton" to="." method="_on_QuitButton_pressed"] |