1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-25 08:04:43 -04:00

Project clean up

This commit is contained in:
Anthony Foxclaw 2020-06-21 10:36:07 -04:00
parent b62e8e82c6
commit bfd678a1de
70 changed files with 166 additions and 716 deletions

View file

@ -1,8 +0,0 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node
func _process(delta):
if Input.is_action_pressed("ui_pause"):
GameKit.is_game_paused(true)
$WinDialogs/PauseWin.show()

View file

@ -1,23 +0,0 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node2D
onready var undies = $Character/Undies
onready var bottoms = $Character/Bottom
onready var tops = $Character/Top
onready var accesories = $Character/Accessory
func _process(delta):
if undies.texture != null:
undies.texture = UserSettings.Underwear
if bottoms.texture != null:
bottoms.texture = UserSettings.Bottoms
if tops.texture != null:
tops.texture = UserSettings.Tops
if accesories.texture != null:
accesories.texture = UserSettings.Accessory

View file

@ -18,7 +18,7 @@ onready var bottoms = $Character/Bottom
onready var tops = $Character/Top
onready var accessory = $Character/Accessory
var UndiesBtn = load("res://scenes/Clothing.tscenes")
# var UndiesBtn = load("res://scenes/Clothing.tscenes")
#
#func _init():
# init_underwear()

View file

@ -1,14 +0,0 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node
# export (String, FILE, "*.json") var item_file : String
func load_items(file_path) -> Dictionary:
var file = File.new()
assert file.file_exists(file_path)
file.open(file_path)
var items = parse_json(file.get_as_text())
assert items.size() > 0
return items

View file

@ -1,16 +0,0 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends TextureButton
var item_pos = null
func _on_outfit_gui_input(ev):
if ev is InputEventMouseButton:
if ev.button_index == BUTTON_LEFT:
if ev.pressed:
item_pos = get_global_mouse_position() - rect_global_position
else:
item_pos = null
if ev is InputEventMouseMotion and item_pos != null:
rect_global_position = get_global_mouse_position() - item_pos

View file

@ -1,21 +0,0 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Control
func _ready():
$Version.text = GameKit.version
func _on_ClassicBtn_pressed():
GameKit.switch_scenes("classic")
func _on_ModernBtn_pressed():
GameKit.switch_scenes("play")
func _on_CreditsBtn_pressed():
GameKit.switch_scenes("credits")
func _on_LicenseBtn_pressed():
$WinDialogs/LicenseWin.show()
func _on_PlayBtn_pressed():
GameKit.switch_scenes("play")