1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-12-19 21:24:42 -05:00

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
This commit is contained in:
Tony Bark 2021-05-30 17:01:27 -04:00
parent c846932fc8
commit 739692d970
44 changed files with 1093 additions and 313 deletions

View file

@ -1,23 +1,30 @@
[gd_scene load_steps=10 format=2]
[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/ui/blue_boxCross.png" type="Texture" id=3]
[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/ui/grey_boxCross.png" type="Texture" id=7]
[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://sounds/select_006.ogg" type="AudioStream" id=9]
[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="background" type="Sprite" parent="."]
[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, 96.8945 )
position = Vector2( 127.602, 111.895 )
texture = ExtResource( 5 )
__meta__ = {
"_edit_group_": true
@ -28,11 +35,11 @@ position = Vector2( 35.118, -14.56 )
texture = ExtResource( 6 )
[node name="characterBase" parent="." instance=ExtResource( 1 )]
position = Vector2( 133.807, 215.615 )
position = Vector2( 133.807, 230.615 )
[node name="ui" type="CanvasLayer" parent="."]
[node name="Controls" type="CanvasLayer" parent="."]
[node name="base" type="Control" parent="ui"]
[node name="DressUp" type="Control" parent="Controls"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 8 )
@ -40,47 +47,82 @@ __meta__ = {
"_edit_lock_": true,
"_edit_use_anchors_": true
}
version = "1.5"
version = "1.10"
[node name="wardrobe" parent="ui/base" instance=ExtResource( 4 )]
anchor_left = 0.345
anchor_top = 0.072
anchor_right = 0.975
anchor_bottom = 0.658
margin_left = -5.0
margin_top = -20.0
margin_right = 60.0
margin_bottom = 109.0
[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="clearBtn" type="TextureButton" parent="ui/base"]
margin_left = 752.0
margin_top = 9.0
margin_right = 788.0
margin_bottom = 45.0
hint_tooltip = "Clear all clothing"
texture_normal = ExtResource( 3 )
texture_pressed = ExtResource( 3 )
texture_hover = ExtResource( 7 )
texture_disabled = ExtResource( 7 )
[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_": false
"_edit_use_anchors_": true
}
[node name="clear" type="AudioStreamPlayer" parent="ui/base"]
stream = ExtResource( 9 )
[node name="Timer" type="Timer" parent="Controls/DressUp/Spinner"]
wait_time = 2.0
[node name="versionLbl" type="Label" parent="ui/base"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -81.0
margin_top = -28.0
text = "[version]"
[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_": false
"_edit_use_anchors_": true
}
[connection signal="pressed" from="ui/base/clearBtn" to="ui/base" method="_on_clearBtn_pressed"]
[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"]