mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
## About The Pull Request 19x15 forever, or 15x15 if you're non widescreen user. ## Why It's Good For The Game Idek why this is a config
20 lines
704 B
Plaintext
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()
|