Makes TGUI strip menu size toggleable (#25763)

* toggleable fullsize strip menu

* name.

* TGUI rebuild

* tgui rebuild

* TGUI rebuild

* TGUI rebuild

* TGUI rebuild

* TGUI rebuild

* TGUI rebuild
This commit is contained in:
HMBGERDO
2024-07-06 08:42:40 +00:00
committed by GitHub
parent 608b4223b9
commit 7764d13257
7 changed files with 255 additions and 73 deletions
@@ -1130,6 +1130,9 @@
toggles2 ^= PREFTOGGLE_2_PARALLAX_IN_DARKNESS
parent.mob?.hud_used?.update_parallax_pref()
if("tgui_strip_menu")
toggles2 ^= PREFTOGGLE_2_BIG_STRIP_MENU
if("screentip_mode")
var/desired_screentip_mode = tgui_input_number(user, "Pick a screentip size, pick 0 to disable screentips. (We suggest a number between 8 and 15):", "Screentip Size", screentip_mode, 20, 0)
if(isnull(desired_screentip_mode))
@@ -435,6 +435,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts
dat += "High"
dat += "</a><br>"
dat += "<b>Parallax in darkness:</b> <a href='byond://?_src_=prefs;preference=parallax_darkness'>[toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS ? "Enabled" : "Disabled"]</a><br>"
dat += "<b>TGUI strip menu size:</b> <a href='byond://?_src_=prefs;preference=tgui_strip_menu'>[toggles2 & PREFTOGGLE_2_BIG_STRIP_MENU ? "Full-size" : "Miniature"]</a><br>"
dat += "<b>Play Admin MIDIs:</b> <a href='byond://?_src_=prefs;preference=hear_midis'><b>[(sound & SOUND_MIDI) ? "Yes" : "No"]</b></a><br>"
dat += "<b>Play Lobby Music:</b> <a href='byond://?_src_=prefs;preference=lobby_music'><b>[(sound & SOUND_LOBBY) ? "Yes" : "No"]</b></a><br>"
dat += "<b>Randomized Character Slot:</b> <a href='byond://?_src_=prefs;preference=randomslot'><b>[toggles2 & PREFTOGGLE_2_RANDOMSLOT ? "Yes" : "No"]</b></a><br>"
@@ -222,6 +222,16 @@
. = ..()
usr.hud_used?.update_parallax_pref()
/datum/preference_toggle/toggle_strip_tgui_size
name = "Toggle TGUI strip menu size"
description = "Toggles TGUI strip menu size between miniature and full-size."
preftoggle_bitflag = PREFTOGGLE_2_BIG_STRIP_MENU
preftoggle_toggle = PREFTOGGLE_TOGGLE2
preftoggle_category = PREFTOGGLE_CATEGORY_GENERAL
enable_message = "You will see full-size TGUI strip menu."
disable_message = "You will see minuature TGUI strip menu."
blackbox_message = "Toggle TGUI strip menu size"
/datum/preference_toggle/toggle_white_noise
name = "Toggle White Noise"
description = "Toggles hearing White Noise"