mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-24 08:34:19 +00:00
127 lines
6.8 KiB
Text
127 lines
6.8 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://dqm0h5h0baqcg"]
|
|
|
|
[ext_resource type="Script" path="res://main.gd" id="1_fqt34"]
|
|
[ext_resource type="Theme" uid="uid://ba5utvfhnxa5i" path="res://interface/interface_theme.tres" id="1_je7w1"]
|
|
[ext_resource type="PackedScene" uid="uid://c3rxmcwa5nqng" path="res://game/game.tscn" id="2_32lou"]
|
|
[ext_resource type="PackedScene" uid="uid://cklkdygv61bny" path="res://interface/shop_ui.tscn" id="2_qj86l"]
|
|
[ext_resource type="Script" path="res://interface/custom_ui.gd" id="3_xav0n"]
|
|
[ext_resource type="PackedScene" uid="uid://bo5unrhqpoyim" path="res://interface/game_ui.tscn" id="4_siim3"]
|
|
[ext_resource type="PackedScene" uid="uid://bpvx3nkkbluip" path="res://safe_ui.tscn" id="5_2uxda"]
|
|
[ext_resource type="Script" path="res://game_camera.gd" id="5_xxjtg"]
|
|
[ext_resource type="PackedScene" uid="uid://b1gum13jilhgy" path="res://interface/score_ui.tscn" id="9_ghurm"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_kyj65"]
|
|
script/source = "extends SubViewport
|
|
"
|
|
|
|
[node name="Main" 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_fqt34")
|
|
|
|
[node name="CustomUI" type="Control" parent="."]
|
|
texture_filter = 1
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_vertical = 8
|
|
mouse_filter = 1
|
|
theme = ExtResource("1_je7w1")
|
|
script = ExtResource("3_xav0n")
|
|
|
|
[node name="GameViewport" type="SubViewportContainer" parent="CustomUI"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
stretch = true
|
|
|
|
[node name="Viewport" type="SubViewport" parent="CustomUI/GameViewport"]
|
|
disable_3d = true
|
|
handle_input_locally = false
|
|
physics_object_picking = true
|
|
size = Vector2i(270, 480)
|
|
render_target_update_mode = 4
|
|
script = SubResource("GDScript_kyj65")
|
|
|
|
[node name="Game" parent="CustomUI/GameViewport/Viewport" instance=ExtResource("2_32lou")]
|
|
|
|
[node name="GameCamera" type="Camera2D" parent="CustomUI/GameViewport/Viewport"]
|
|
position = Vector2(135, 480)
|
|
script = ExtResource("5_xxjtg")
|
|
|
|
[node name="GameSafeUI" parent="CustomUI" instance=ExtResource("5_2uxda")]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_bottom = 0.0
|
|
grow_vertical = 1
|
|
apply_margin_left = true
|
|
apply_margin_right = true
|
|
apply_margin_top = true
|
|
|
|
[node name="GameUI" parent="CustomUI/GameSafeUI" instance=ExtResource("4_siim3")]
|
|
layout_mode = 2
|
|
|
|
[node name="ShopSafeUI" parent="CustomUI" instance=ExtResource("5_2uxda")]
|
|
process_mode = 4
|
|
visible = false
|
|
layout_mode = 1
|
|
apply_margin_left = true
|
|
apply_margin_right = true
|
|
apply_margin_top = true
|
|
apply_margin_bottom = true
|
|
|
|
[node name="ShopUI" parent="CustomUI/ShopSafeUI" instance=ExtResource("2_qj86l")]
|
|
layout_mode = 2
|
|
|
|
[node name="ScoreSafeUI" parent="CustomUI" instance=ExtResource("5_2uxda")]
|
|
process_mode = 4
|
|
visible = false
|
|
layout_mode = 1
|
|
apply_margin_left = true
|
|
apply_margin_right = true
|
|
apply_margin_top = true
|
|
apply_margin_bottom = true
|
|
|
|
[node name="ScoreUI" parent="CustomUI/ScoreSafeUI" instance=ExtResource("9_ghurm")]
|
|
layout_mode = 2
|
|
board = "ld54pj3"
|
|
secret = "fTpQAFA3mXx7VWfn"
|
|
|
|
[connection signal="score_changed" from="CustomUI/GameViewport/Viewport/Game" to="CustomUI/GameSafeUI/GameUI" method="_on_game_score_changed"]
|
|
[connection signal="score_changed" from="CustomUI/GameViewport/Viewport/Game" to="CustomUI/ShopSafeUI/ShopUI" method="_on_game_score_changed"]
|
|
[connection signal="score_changed" from="CustomUI/GameViewport/Viewport/Game" to="CustomUI/ScoreSafeUI/ScoreUI" method="_on_game_score_changed"]
|
|
[connection signal="score_button_pressed" from="CustomUI/GameSafeUI/GameUI" to="." method="_on_game_ui_score_button_pressed"]
|
|
[connection signal="shop_button_pressed" from="CustomUI/GameSafeUI/GameUI" to="." method="_on_game_ui_shop_button_pressed"]
|
|
[connection signal="spawn_button_pressed" from="CustomUI/GameSafeUI/GameUI" to="CustomUI/GameViewport/Viewport/Game" method="trigger_spawn"]
|
|
[connection signal="back_button_pressed" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_back_button_pressed"]
|
|
[connection signal="delete_begin" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_delete_begin"]
|
|
[connection signal="delete_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_shop_ui_delete_begin"]
|
|
[connection signal="delete_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_delete_begin"]
|
|
[connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_delete_cancel"]
|
|
[connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_shop_ui_delete_cancel"]
|
|
[connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_delete_cancel"]
|
|
[connection signal="ghost_materialize" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_ghost_materialize"]
|
|
[connection signal="ghost_requested" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_ghost_requested"]
|
|
[connection signal="purchase_begin" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_purchase_begin"]
|
|
[connection signal="purchase_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_purchase_begin"]
|
|
[connection signal="purchase_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_purchase_begin"]
|
|
[connection signal="purchase_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_purchase_cancel"]
|
|
[connection signal="purchase_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_purchase_cancel"]
|
|
[connection signal="purchase_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_purchase_cancel"]
|
|
[connection signal="purchase_success" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_purchase_success"]
|
|
[connection signal="purchase_success" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_purchase_success"]
|
|
[connection signal="score_button_pressed" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_score_button_pressed"]
|
|
[connection signal="upgraded_auto_spawn" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_upgraded_auto_spawn"]
|
|
[connection signal="upgraded_manual_spawn" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_upgraded_manual_spawn"]
|
|
[connection signal="score_button_pressed" from="CustomUI/ScoreSafeUI/ScoreUI" to="." method="_on_score_ui_score_button_pressed"]
|
|
[connection signal="score_submission_success" from="CustomUI/ScoreSafeUI/ScoreUI" to="." method="_on_score_ui_score_submission_success"]
|