mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-26 00:24:44 -04:00
Music Score and JSON files WIP
- WIP music score inspired by The Sims 2's CAS. This is what Tony's Dress Up was inspired by back when it was still a Flash project. - WIP JSON support for parsing clothings and rendering clothing as buttons - Extended gitignore to support all of .NET Core and Monodevelop, due to Godot's upcoming support of the latter and future-proofing the former with .NET 5 inbound.
This commit is contained in:
parent
7fb6faa9bb
commit
0e3bb682bb
8 changed files with 877 additions and 11 deletions
Binary file not shown.
Binary file not shown.
5
project/scn/Clothing.tscn
Normal file
5
project/scn/Clothing.tscn
Normal file
|
@ -0,0 +1,5 @@
|
|||
[gd_scene format=2]
|
||||
|
||||
[node name="Clothing" type="TextureButton"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
|
@ -13,7 +13,11 @@ enum ClothingLayer {
|
|||
onready var bottoms = load("res://sprites/bottoms_placeholder.png")
|
||||
onready var tops = load("res://sprites/tops_placeholder.png")
|
||||
onready var accessory = load("res://sprites/tops_placeholder.png")
|
||||
onready var undies = load("res://sprites/briefs.svg")
|
||||
|
||||
var UndiesBtn = load("res://scn/Clothing.tscn")
|
||||
|
||||
func _init():
|
||||
init_underwear()
|
||||
|
||||
func change_bottoms(new_bottom):
|
||||
bottoms = new_bottom
|
||||
|
@ -22,16 +26,15 @@ func change_bottoms(new_bottom):
|
|||
$Character/Bottom.texture = bottoms
|
||||
UserSettings.Bottoms = bottoms
|
||||
|
||||
if undies == load("res://sprites/owo_censor.svg"):
|
||||
change_undies(null)
|
||||
# if undies == load("res://sprites/owo_censor.svg"):
|
||||
# change_undies(null)
|
||||
|
||||
$Character/Bottom.texture = bottoms
|
||||
UserSettings.Bottoms = bottoms
|
||||
|
||||
func change_undies(new_undies):
|
||||
undies = new_undies
|
||||
$Character/Undies.texture = undies
|
||||
UserSettings.Underwear = undies
|
||||
$Character/Undies.texture = new_undies
|
||||
UserSettings.Underwear = new_undies
|
||||
|
||||
func change_tops(new_top):
|
||||
tops = new_top
|
||||
|
@ -53,8 +56,16 @@ func change_accessoires(new_accessory):
|
|||
$Character/Accessory.texture = accessory
|
||||
UserSettings.Accessory = accessory
|
||||
|
||||
func change_clothings(new_clothes, clothing_type):
|
||||
pass
|
||||
func init_underwear():
|
||||
var undiesFile = File.new()
|
||||
undiesFile.open("res://undies.json", undiesFile.READ)
|
||||
var undiesJson = parse_json(undiesFile.get_as_text())
|
||||
|
||||
for object in undiesJson:
|
||||
var underwear = UndiesBtn.instance()
|
||||
|
||||
underwear.texture = load(object.sprite)
|
||||
|
||||
|
||||
# warning-ignore:unused_argument
|
||||
func _process(delta):
|
||||
|
|
8
project/undies.json
Normal file
8
project/undies.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"icon": "res://sprites/z_briefs.svg"
|
||||
},
|
||||
{
|
||||
"icon": "res://sprites/fundosi.svg"
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue