mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 07:03:05 +00:00
* pixel perfect 4x (#79660) ## About The Pull Request Adds pixel perfect 4x and 4.5x scaling. I tested it and it seems to work though 4.5 scaling causes very slightly distorted pixel sizes. There's also a bit of letterboxing but I think that happens with all of the pixel perfect settings. ## Why It's Good For The Game better fits 4k monitors and isn't stretch to fit ## Changelog 🆑 qol: adds pixel perfect 4x, 4.5x, and 5x /🆑 * pixel perfect 4x --------- Co-authored-by: aaaa1023 <74441292+aaaa1023@users.noreply.github.com>
16 lines
377 B
Plaintext
16 lines
377 B
Plaintext
/datum/preference/numeric/pixel_size
|
|
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
|
savefile_key = "pixel_size"
|
|
savefile_identifier = PREFERENCE_PLAYER
|
|
|
|
minimum = 0
|
|
maximum = 5
|
|
|
|
step = 0.5
|
|
|
|
/datum/preference/numeric/pixel_size/create_default_value()
|
|
return 0
|
|
|
|
/datum/preference/numeric/pixel_size/apply_to_client(client/client, value)
|
|
client?.view_size?.resetFormat()
|