1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 09:04:19 +00:00
swear-jar/main.tscn

83 lines
3.6 KiB
Text
Raw Normal View History

2023-10-02 00:53:12 +00:00
[gd_scene load_steps=8 format=3 uid="uid://dqm0h5h0baqcg"]
2023-10-01 23:12:11 +00:00
[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"]
2023-10-02 00:53:12 +00:00
[ext_resource type="Script" path="res://interface/custom_ui.gd" id="3_xav0n"]
[ext_resource type="Script" path="res://interface/safe_ui.gd" id="4_nel0n"]
2023-10-01 23:12:11 +00:00
[ext_resource type="PackedScene" uid="uid://bo5unrhqpoyim" path="res://interface/game_ui.tscn" id="4_siim3"]
[node name="Main" type="Node" node_paths=PackedStringArray("game_ui", "shop_ui")]
script = ExtResource("1_fqt34")
2023-10-02 00:53:12 +00:00
game_ui = NodePath("CustomUI/SafeUI/GameUI")
shop_ui = NodePath("CustomUI/SafeUI/ShopUI")
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[node name="CustomUI" type="Control" parent="."]
2023-10-01 23:12:11 +00:00
texture_filter = 1
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 8
theme = ExtResource("1_je7w1")
2023-10-02 00:53:12 +00:00
script = ExtResource("3_xav0n")
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[node name="GameWorld" type="CenterContainer" parent="CustomUI"]
2023-10-01 23:12:11 +00:00
custom_minimum_size = Vector2(270, 480)
layout_mode = 1
2023-10-02 00:53:12 +00:00
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
2023-10-01 23:12:11 +00:00
anchor_bottom = 1.0
2023-10-02 00:53:12 +00:00
offset_left = -135.0
offset_top = -480.0
offset_right = 135.0
2023-10-01 23:12:11 +00:00
grow_horizontal = 2
2023-10-02 00:53:12 +00:00
grow_vertical = 0
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[node name="GameViewport" type="SubViewportContainer" parent="CustomUI/GameWorld"]
2023-10-01 23:12:11 +00:00
layout_mode = 2
2023-10-02 00:53:12 +00:00
[node name="Viewport" type="SubViewport" parent="CustomUI/GameWorld/GameViewport"]
2023-10-01 23:12:11 +00:00
disable_3d = true
handle_input_locally = false
size = Vector2i(270, 480)
render_target_update_mode = 4
2023-10-02 00:53:12 +00:00
[node name="Game" parent="CustomUI/GameWorld/GameViewport/Viewport" instance=ExtResource("2_32lou")]
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[node name="Camera" type="Camera2D" parent="CustomUI/GameWorld/GameViewport/Viewport"]
2023-10-01 23:12:11 +00:00
anchor_mode = 0
2023-10-02 00:53:12 +00:00
[node name="SafeUI" type="MarginContainer" parent="CustomUI"]
2023-10-01 23:12:11 +00:00
layout_mode = 1
2023-10-02 00:53:12 +00:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("4_nel0n")
[node name="GameUI" parent="CustomUI/SafeUI" instance=ExtResource("4_siim3")]
layout_mode = 2
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[node name="ShopUI" parent="CustomUI/SafeUI" instance=ExtResource("2_qj86l")]
2023-10-01 23:12:11 +00:00
process_mode = 3
visible = false
2023-10-02 00:53:12 +00:00
layout_mode = 2
2023-10-01 23:12:11 +00:00
2023-10-02 00:53:12 +00:00
[connection signal="score_changed" from="CustomUI/GameWorld/GameViewport/Viewport/Game" to="CustomUI/SafeUI/GameUI" method="_on_game_score_changed"]
[connection signal="score_button_pressed" from="CustomUI/SafeUI/GameUI" to="." method="_on_game_ui_score_button_pressed"]
[connection signal="shop_button_pressed" from="CustomUI/SafeUI/GameUI" to="." method="_on_game_ui_shop_button_pressed"]
[connection signal="spawn_button_pressed" from="CustomUI/SafeUI/GameUI" to="CustomUI/GameWorld/GameViewport/Viewport/Game" method="trigger_spawn"]
[connection signal="back_button_pressed" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_back_button_pressed"]
[connection signal="delete_button_pressed" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_delete_button_pressed"]
[connection signal="purchase_begin" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_purchase_begin"]
[connection signal="purchase_cancel" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_purchase_cancel"]
[connection signal="purchase_success" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_purchase_success"]
[connection signal="score_button_pressed" from="CustomUI/SafeUI/ShopUI" to="." method="_on_shop_ui_score_button_pressed"]