diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-22 23:48:25 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:29:14 +0200 |
commit | 2c5ced9a026012ef8fe890ff006d261148ce70f1 (patch) | |
tree | 40c0d9073a3302ce9fe18f800325af697ae2582e /client/scenes/main_menu.tscn | |
parent | fd01e27d3bed73fd216cbe9bce24de34e6859a7f (diff) | |
download | hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar.bz2 hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar.zst |
fix scene transition flicker
Diffstat (limited to 'client/scenes/main_menu.tscn')
-rw-r--r-- | client/scenes/main_menu.tscn | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/client/scenes/main_menu.tscn b/client/scenes/main_menu.tscn new file mode 100644 index 00000000..e1c3475d --- /dev/null +++ b/client/scenes/main_menu.tscn @@ -0,0 +1,90 @@ +[gd_scene load_steps=7 format=3 uid="uid://dbj8508whxgwv"] + +[ext_resource type="Theme" uid="uid://cnhhreuc4shxv" path="res://scenes/theme.tres" id="1_rmwly"] +[ext_resource type="Script" path="res://scripts/main_menu.gd" id="2_qot2j"] +[ext_resource type="PackedScene" uid="uid://bgt88u55bndd3" path="res://scenes/menu_background.tscn" id="3_f3j3x"] +[ext_resource type="PackedScene" uid="uid://ds1njrptrpdco" path="res://scenes/menu_background_scene.tscn" id="4_ydj5p"] +[ext_resource type="PackedScene" uid="uid://bg2d78ycorcqk" path="res://scenes/scene_transition.tscn" id="5_651nk"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d8o0f"] +bg_color = Color(0, 0, 0, 0.329412) + +[node name="MainMenu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_rmwly") +script = ExtResource("2_qot2j") + +[node name="MenuBackground" parent="." instance=ExtResource("3_f3j3x")] +layout_mode = 1 +script = null + +[node name="background_view2" type="SubViewport" parent="MenuBackground"] +handle_input_locally = false +size = Vector2i(1152, 648) +render_target_update_mode = 4 + +[node name="scene" parent="MenuBackground/background_view2" instance=ExtResource("4_ydj5p")] + +[node name="side" type="PanelContainer" parent="."] +layout_mode = 1 +anchors_preset = 9 +anchor_bottom = 1.0 +offset_right = 340.0 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_d8o0f") + +[node name="options" type="VBoxContainer" parent="side"] +layout_mode = 2 + +[node name="quick_connect" type="Button" parent="side/options"] +layout_mode = 2 +text = "Quick Connect" +alignment = 0 + +[node name="connect" type="HBoxContainer" parent="side/options"] +layout_mode = 2 + +[node name="uri" type="LineEdit" parent="side/options/connect"] +layout_mode = 2 +size_flags_horizontal = 3 +placeholder_text = "wss://example.org" + +[node name="connect" type="Button" parent="side/options/connect"] +layout_mode = 2 +text = "Connect" + +[node name="change_character" type="Button" parent="side/options"] +layout_mode = 2 +text = "Select Character (todo)" +alignment = 0 + +[node name="settings" type="Button" parent="side/options"] +layout_mode = 2 +text = "Settings (todo)" +alignment = 0 + +[node name="credits" type="Button" parent="side/options"] +layout_mode = 2 +text = "Credits" +alignment = 0 + +[node name="quit" type="Button" parent="side/options"] +layout_mode = 2 +text = "Quit" +alignment = 0 + +[node name="SceneTransition" parent="." instance=ExtResource("5_651nk")] +layout_mode = 1 +color = Color(0, 0, 0, 1) + +[connection signal="pressed" from="side/options/quick_connect" to="." method="_on_quick_connect_pressed"] +[connection signal="pressed" from="side/options/connect/connect" to="." method="_on_connect_pressed"] +[connection signal="pressed" from="side/options/change_character" to="." method="_on_credits_pressed"] +[connection signal="pressed" from="side/options/settings" to="." method="_on_credits_pressed"] +[connection signal="pressed" from="side/options/credits" to="." method="_on_credits_pressed"] +[connection signal="pressed" from="side/options/quit" to="." method="_on_quit_pressed"] |