mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
redesign begining
This commit is contained in:
parent
ae84731913
commit
0b61c43576
23 changed files with 560 additions and 535 deletions
|
@ -1,11 +1,13 @@
|
|||
extends Control
|
||||
|
||||
@export var minimize: BaseButton
|
||||
@export var maximize: BaseButton
|
||||
@export var exit: BaseButton
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
minimize.pressed.connect(on_minimize)
|
||||
maximize.pressed.connect(on_maximize)
|
||||
exit.pressed.connect(on_exit)
|
||||
|
||||
|
||||
|
@ -13,5 +15,9 @@ func on_minimize() -> void:
|
|||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED)
|
||||
|
||||
|
||||
func on_maximize() -> void:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
|
||||
|
||||
|
||||
func on_exit() -> void:
|
||||
get_tree().quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue