mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-27 20:17:26 -04:00
windowed mode, initial screen settings
This commit is contained in:
parent
b9bb17e73f
commit
90ac30dd89
12 changed files with 233 additions and 65 deletions
17
app/scripts/ui/menu/window_buttons.gd
Normal file
17
app/scripts/ui/menu/window_buttons.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
extends Control
|
||||
|
||||
@export var minimize: BaseButton
|
||||
@export var exit: BaseButton
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
minimize.pressed.connect(on_minimize)
|
||||
exit.pressed.connect(on_exit)
|
||||
|
||||
|
||||
func on_minimize() -> void:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED)
|
||||
|
||||
|
||||
func on_exit() -> void:
|
||||
get_tree().quit()
|
Loading…
Add table
Add a link
Reference in a new issue