mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
[TGUI v6] Migration to CSS Variables, styles refactor & React 19 (#17487)
* Initial Port of tg's tgui 2.0 * initial * first UI fixes * fix retro theme * rd console * wiki theme * better tgui say handling * Ui scaling port * smaller gap * guh * reset subcats on main cat change * blink a bit later * tofixed * fixed * currently not fully supported * increase that * fix powermonitor chart * typescript up * tgui core up
This commit is contained in:
@@ -114,3 +114,16 @@
|
||||
|
||||
/datum/preference/text/preset_colors/apply_to_client(client/client, value)
|
||||
return
|
||||
|
||||
/datum/preference/toggle/ui_scale
|
||||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
||||
savefile_key = "ui_scale"
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
default_value = FALSE // Set to true once lobby screen is migrated to tgui and browse are replaced with datum browser
|
||||
|
||||
/datum/preference/toggle/ui_scale/apply_to_client(client/client, value)
|
||||
if(!istype(client))
|
||||
return
|
||||
|
||||
INVOKE_ASYNC(client, TYPE_VERB_REF(/client, refresh_tgui))
|
||||
client.tgui_say?.load()
|
||||
|
||||
Reference in New Issue
Block a user