Files
John WillardandRoxy 2a79d6424e Removes widescreen config (#91419)
19x15 forever, or 15x15 if you're non widescreen user.

Idek why this is a config
2025-06-21 22:38:18 -04:00

20 lines
704 B
Plaintext

/datum/preference/toggle/widescreen
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "widescreenpref"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/widescreen/apply_to_client(client/client, value)
client.view_size?.setDefault(VIEWPORT_USE_PREF)
/datum/preference/toggle/fullscreen_mode
default_value = FALSE
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "fullscreen_mode"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/fullscreen_mode/apply_to_client(client/client, value)
//let's not apply unless the client is fully logged in, therefore manually triggering it.
if(!client.fully_created)
return
client.set_fullscreen()