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

Removed unused assets

- Removed some unsued assets from the original second version
- Added window control from Project 64 and made it more customizable
- Added a Coming Soon and About window
- Redid the interface and removed the Sixam logo, for now
This commit is contained in:
Anthony Wilcox 2018-12-30 20:07:44 -05:00
parent 15c32ec7c9
commit e5db016ba1
18 changed files with 287 additions and 221 deletions

View file

@ -1,7 +1,12 @@
extends Control
onready var coming_soon_win = preload("res://windows/ComingSoon.tscn")
onready var about_win = preload("res://windows/About.tscn")
func _on_ScreenshotBtn_pressed():
pass
var win_instance = coming_soon_win.instance()
add_child(win_instance)
func _on_AboutBtn_pressed():
pass
var win_instance = about_win.instance()
add_child(win_instance)

33
src/WindowControl.gd Normal file
View file

@ -0,0 +1,33 @@
extends Control
export var toolbar_title = "New Window"
export var content_text = ""
export var panel_height = 216
var drag_pos = null
func _ready():
$WindowFrame/TitleBarFrame/TitleBar/TitleLbl.text = toolbar_title
$WindowFrame/ContentFrame/ContentTxt.text = content_text
$WindowFrame/ContentFrame/ContentPanel.rect_size = Vector2(350, panel_height)
$WindowFrame.rect_size = Vector2(351, 31 + panel_height)
update()
func _process(delta):
pass
func _on_TitleBar_gui_input(ev):
if ev is InputEventMouseButton:
if ev.button_index == BUTTON_LEFT:
if ev.pressed:
drag_pos = get_global_mouse_position() - rect_position
else:
drag_pos = null
if ev is InputEventMouseMotion and drag_pos != null:
rect_position = get_global_mouse_position() - drag_pos
func _on_CloseBtn_pressed():
hide()
queue_free()