[MIRROR] Fullscreen QoL (#28305)

Fullscreen QoL

Co-authored-by: Aylong <69762909+AyIong@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-21 10:20:19 +05:30
committed by GitHub
co-authored by Aylong
parent e4b9bcdb61
commit b1778a49ea
4 changed files with 56 additions and 24 deletions
+14
View File
@@ -32,6 +32,20 @@
winset(user, null, "command=.auto")
return TRUE
/datum/keybinding/client/toggle_fullscreen
hotkey_keys = list("F11")
name = "toggle_fullscreen"
full_name = "Toggle Fullscreen"
description = "Makes the game window fullscreen."
keybind_signal = COMSIG_KB_CLIENT_FULLSCREEN_DOWN
/datum/keybinding/client/toggle_fullscreen/down(client/user)
. = ..()
if(.)
return
user.toggle_fullscreen()
return TRUE
/datum/keybinding/client/minimal_hud
hotkey_keys = list("F12")
name = "minimal_hud"