mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-25 08:04:43 -04: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:
parent
c846932fc8
commit
739692d970
44 changed files with 1093 additions and 313 deletions
3
scripts/autoload/game_data.gd
Normal file
3
scripts/autoload/game_data.gd
Normal file
|
@ -0,0 +1,3 @@
|
|||
extends Node
|
||||
|
||||
var version = "0.0.0"
|
3
scripts/autoload/game_events.gd
Normal file
3
scripts/autoload/game_events.gd
Normal file
|
@ -0,0 +1,3 @@
|
|||
extends Node
|
||||
|
||||
signal indicate
|
|
@ -1,6 +1,4 @@
|
|||
# This project is licensed under the MPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Node
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
13
scripts/spinner.gd
Normal file
13
scripts/spinner.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends TextureRect
|
||||
|
||||
onready var timer = $Timer
|
||||
|
||||
func _ready():
|
||||
GameEvents.connect("indicate", self, "_on_indicate")
|
||||
|
||||
func _on_indicate():
|
||||
show()
|
||||
timer.start()
|
||||
|
||||
func _on_Timer_timeout():
|
||||
hide()
|
|
@ -6,15 +6,10 @@ export var version: String = "1.0.0"
|
|||
|
||||
onready var character = preload("res://resources/character.tres")
|
||||
onready var blank_accessory = preload("res://sprites/clothes/blank_top.png")
|
||||
onready var base_top = preload("res://sprites/character_base_top.svg")
|
||||
onready var base_bottom = preload("res://sprites/character_base_legs.svg")
|
||||
onready var base_top = preload("res://sprites/character/character_base_top.svg")
|
||||
onready var base_bottom = preload("res://sprites/character/character_base_legs.svg")
|
||||
|
||||
func _ready():
|
||||
var verLabel = $versionLbl
|
||||
verLabel.text = "v" + version
|
||||
|
||||
func _on_clearBtn_pressed():
|
||||
$clear.play()
|
||||
character.accessory = blank_accessory
|
||||
character.bottom = base_bottom
|
||||
character.top = base_top
|
||||
GameData.version = version
|
||||
|
|
|
@ -4,7 +4,7 @@ extends TabContainer
|
|||
|
||||
onready var character = preload("res://resources/character.tres")
|
||||
onready var blank_accessory = preload("res://sprites/clothes/blank_top.png")
|
||||
onready var base_top = preload("res://sprites/character_base_top.svg")
|
||||
onready var base_top = preload("res://sprites/character/character_base_top.svg")
|
||||
onready var base_bottom = preload("res://sprites/clothes/owo_censor.svg")
|
||||
|
||||
onready var pants_grid = $Pants/PantsScroll/PantsGrid
|
||||
|
@ -29,7 +29,7 @@ func list_files_in_directory(path):
|
|||
|
||||
return files
|
||||
|
||||
func check_for_dlc(dlc_pack):
|
||||
func load_dlc(dlc_pack):
|
||||
var usr_dir = "user://dlc/"
|
||||
var dlc_path = usr_dir + dlc_pack
|
||||
var load_pck = ProjectSettings.load_resource_pack(dlc_path, false)
|
||||
|
@ -65,7 +65,7 @@ func check_for_dlc(dlc_pack):
|
|||
print_debug("Initialized: " + pants_dir + pants)
|
||||
|
||||
func _ready():
|
||||
check_for_dlc("emojidlc.pck")
|
||||
load_dlc("emojidlc.pck")
|
||||
pass
|
||||
|
||||
func _on_removeAccessory_pressed():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue