mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Fullscreen, status bar hiding, chat input following the theme (#67987)
* Initial commit * input is colored according to the theme * removed unused setting
This commit is contained in:
@@ -175,6 +175,11 @@
|
||||
/// Messages currently seen by this client
|
||||
var/list/seen_messages
|
||||
|
||||
//Hide top bars
|
||||
var/fullscreen = FALSE
|
||||
//Hide status bar (bottom left)
|
||||
var/show_status_bar = TRUE
|
||||
|
||||
/// datum wrapper for client view
|
||||
var/datum/view_data/view_size
|
||||
|
||||
|
||||
@@ -932,12 +932,10 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
|
||||
if (hotkeys)
|
||||
// If hotkey mode is enabled, then clicking the map will automatically
|
||||
// unfocus the text bar. This removes the red color from the text bar
|
||||
// so that the visual focus indicator matches reality.
|
||||
winset(src, null, "input.background-color=[COLOR_INPUT_DISABLED]")
|
||||
|
||||
// unfocus the text bar.
|
||||
winset(src, null, "input.focus=false")
|
||||
else
|
||||
winset(src, null, "input.focus=true input.background-color=[COLOR_INPUT_ENABLED]")
|
||||
winset(src, null, "input.focus=true")
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_CLIENT_CLICK, object, location, control, params, usr)
|
||||
|
||||
@@ -1220,3 +1218,34 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
SEND_SOUND(usr, sound(null))
|
||||
tgui_panel?.stop_music()
|
||||
SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Stop Self Sounds"))
|
||||
|
||||
/client/verb/toggle_fullscreen()
|
||||
set name = "Toggle Fullscreen"
|
||||
set category = "OOC"
|
||||
|
||||
fullscreen = !fullscreen
|
||||
|
||||
if (fullscreen)
|
||||
winset(usr, "mainwindow", "on-size=")
|
||||
winset(usr, "mainwindow", "titlebar=false")
|
||||
winset(usr, "mainwindow", "can-resize=false")
|
||||
winset(usr, "mainwindow", "menu=")
|
||||
winset(usr, "mainwindow", "is-maximized=false")
|
||||
winset(usr, "mainwindow", "is-maximized=true")
|
||||
else
|
||||
winset(usr, "mainwindow", "menu=menu")
|
||||
winset(usr, "mainwindow", "titlebar=true")
|
||||
winset(usr, "mainwindow", "can-resize=true")
|
||||
winset(usr, "mainwindow", "is-maximized=false")
|
||||
winset(usr, "mainwindow", "on-size=attempt_auto_fit_viewport")
|
||||
|
||||
/client/verb/toggle_status_bar()
|
||||
set name = "Toggle Status Bar"
|
||||
set category = "OOC"
|
||||
|
||||
show_status_bar = !show_status_bar
|
||||
|
||||
if (show_status_bar)
|
||||
winset(usr, "mapwindow.status_bar", "is-visible=true")
|
||||
else
|
||||
winset(usr, "mapwindow.status_bar", "is-visible=false")
|
||||
|
||||
Reference in New Issue
Block a user