1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-07 05:54:49 -04:00
dressupzack/scenes/game.tscn
Tony Bark 739692d970 Basic saving and loading
- You can finally save and load your different styles!
- Brand new icons from Font Awesome!
- The clear button was refreshed and replaced with the trash can. While I've never gotten complaints about the interface, this should prove to be less confusing.
- Clear button moved next to save/load.
- Introduced a basic indicator when loading and saving
- Bumped version to 1.10
2021-05-30 17:01:27 -04:00

128 lines
3.9 KiB
Text

[gd_scene load_steps=13 format=2]
[ext_resource path="res://scenes/character_base.tscn" type="PackedScene" id=1]
[ext_resource path="res://sprites/world/background.svg" type="Texture" id=2]
[ext_resource path="res://sprites/symbols/trash.svg" type="Texture" id=3]
[ext_resource path="res://scenes/wardrobe.tscn" type="PackedScene" id=4]
[ext_resource path="res://sprites/clothes/icrazy_frame.svg" type="Texture" id=5]
[ext_resource path="res://sprites/clothes/lights.png" type="Texture" id=6]
[ext_resource path="res://sprites/symbols/file-upload.svg" type="Texture" id=7]
[ext_resource path="res://scripts/ui.gd" type="Script" id=8]
[ext_resource path="res://sprites/symbols/file-download.svg" type="Texture" id=9]
[ext_resource path="res://sprites/symbols/spinner.svg" type="Texture" id=12]
[ext_resource path="res://scripts/spinner.gd" type="Script" id=13]
[ext_resource path="res://scripts/game.gd" type="Script" id=14]
[node name="game" type="Node2D"]
script = ExtResource( 14 )
[node name="Bg" type="Sprite" parent="."]
position = Vector2( 504.046, 202.426 )
texture = ExtResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="picFrame" type="Sprite" parent="."]
position = Vector2( 127.602, 111.895 )
texture = ExtResource( 5 )
__meta__ = {
"_edit_group_": true
}
[node name="light" type="Light2D" parent="picFrame"]
position = Vector2( 35.118, -14.56 )
texture = ExtResource( 6 )
[node name="characterBase" parent="." instance=ExtResource( 1 )]
position = Vector2( 133.807, 230.615 )
[node name="Controls" type="CanvasLayer" parent="."]
[node name="DressUp" type="Control" parent="Controls"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 8 )
__meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": true
}
version = "1.10"
[node name="wardrobe" parent="Controls/DressUp" instance=ExtResource( 4 )]
anchor_left = 0.33875
anchor_top = 0.054
anchor_right = 1.05
anchor_bottom = 0.9
margin_right = 6.10352e-05
[node name="Spinner" type="TextureRect" parent="Controls/DressUp"]
visible = false
anchor_left = 0.945785
anchor_top = 0.153026
anchor_right = 0.985785
anchor_bottom = 0.217026
texture = ExtResource( 12 )
script = ExtResource( 13 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="Timer" type="Timer" parent="Controls/DressUp/Spinner"]
wait_time = 2.0
[node name="CenterBtns" type="CenterContainer" parent="Controls/DressUp"]
anchor_left = 0.35875
anchor_top = 0.792
anchor_right = 0.99625
anchor_bottom = 0.886
__meta__ = {
"_edit_use_anchors_": true
}
[node name="ButtonCtr" type="HBoxContainer" parent="Controls/DressUp/CenterBtns"]
margin_left = 179.0
margin_top = 4.0
margin_right = 330.0
margin_bottom = 42.0
custom_constants/separation = 20
[node name="SaveBtn" type="Button" parent="Controls/DressUp/CenterBtns/ButtonCtr"]
margin_right = 37.0
margin_bottom = 38.0
hint_tooltip = "Save"
icon = ExtResource( 7 )
flat = true
[node name="LoadBtn" type="Button" parent="Controls/DressUp/CenterBtns/ButtonCtr"]
margin_left = 57.0
margin_right = 94.0
margin_bottom = 38.0
hint_tooltip = "Load"
icon = ExtResource( 9 )
flat = true
[node name="clearBtn" type="Button" parent="Controls/DressUp/CenterBtns/ButtonCtr"]
margin_left = 114.0
margin_right = 151.0
margin_bottom = 38.0
hint_tooltip = "Clear"
icon = ExtResource( 3 )
flat = true
[node name="versionLbl" type="Label" parent="Controls/DressUp"]
anchor_left = 0.88125
anchor_top = 0.944
anchor_right = 0.9825
anchor_bottom = 0.984
text = "0.0.0"
align = 2
valign = 3
__meta__ = {
"_edit_use_anchors_": true
}
[connection signal="timeout" from="Controls/DressUp/Spinner/Timer" to="Controls/DressUp/Spinner" method="_on_Timer_timeout"]
[connection signal="pressed" from="Controls/DressUp/CenterBtns/ButtonCtr/SaveBtn" to="characterBase" method="_on_SaveBtn_pressed"]
[connection signal="pressed" from="Controls/DressUp/CenterBtns/ButtonCtr/LoadBtn" to="characterBase" method="_on_LoadBtn_pressed"]
[connection signal="pressed" from="Controls/DressUp/CenterBtns/ButtonCtr/clearBtn" to="characterBase" method="_on_clearBtn_pressed"]