1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-08-14 12:44:44 -04:00

Removed shell

- Added more translations
- Framebuffer allocation set to 2D
- Use pixel snap
- Refined Zack base sprite and remove the static one
- Moved About, Credits, and Settings menu into a global menu
This commit is contained in:
Anthony Wilcox 2019-01-03 10:08:15 -05:00
parent eadebd4a91
commit 5fee8f788a
17 changed files with 123 additions and 222 deletions

View file

@ -3,7 +3,7 @@
extends Node
onready var bottoms = load("res://assets/bottoms_placeholder.png")
onready var undies = load("res://assets/zbriefs.png")
onready var undies = load("res://assets/briefs.png")
onready var tops = load("res://assets/tops_placeholder.png")
func change_bottoms(new_bottom):
@ -19,10 +19,6 @@ func change_bottoms(new_bottom):
func change_undies(new_undies):
undies = new_undies
if new_undies == null:
$Body/Undies.texture = undies
$Body/Undies.texture = undies
func change_tops(new_top):
@ -63,6 +59,9 @@ func _on_Raw_pressed():
func _on_Atomic_pressed():
change_tops(load("res://assets/atomic_shirt.png"))
func _on_Korm_Shirt_pressed():
change_tops(load("res://assets/korm_shirt.png"))
func _on_Z_Shirt_pressed():
change_tops(load("res://assets/z_shirt.png"))
@ -78,5 +77,5 @@ func _on_NL_Jacket_pressed():
func _on_ClearBtn_pressed():
change_bottoms(null)
change_undies(null)
change_undies(load("res://assets/briefs.png"))
change_tops(null)

View file

@ -1,24 +1,3 @@
# Anthony Wilcox licenses this file to you under the GPL license.
# See the LICENSE file in the project root for more information.
extends Node
const CLOSE_CMD = "close"
func _process(delta):
shell_interface()
func shell_interface():
var shell = $Shell
var cmdl = $Shell/RefRect/CmdLine
var cmdl_help = $Shell/HelpWin
var settingsWin = $Interface/SettingsWin
if Input.is_action_pressed("ui_shell"):
if cmdl.text == CLOSE_CMD:
cmdl.text = ""
shell.show()
if cmdl.text == "help" and Input.is_key_pressed(KEY_ENTER):
cmdl_help.show()
elif cmdl.text == "settings" and Input.is_key_pressed(KEY_ENTER):
settingsWin.show()
elif cmdl.text == CLOSE_CMD and Input.is_key_pressed(KEY_ENTER):
shell.hide()

View file

@ -7,7 +7,6 @@ onready var credits_win = $CreditsWin
onready var settings_win = $SettingsWin
func _on_AboutBtn_pressed():
about_win.show()
func _on_CreditsBtn_pressed():