mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-30 18:17:00 +01:00
overhauls rendering + redoes some of widescreen/dynamic sizing + misc fixes (#4668)
Co-authored-by: VM_USER <VM_USER>
This commit is contained in:
co-authored by
VM_USER <VM_USER>
parent
798902257c
commit
bc5e0940a2
@@ -1,3 +1,30 @@
|
||||
/datum/config_entry/string/max_viewport_size
|
||||
default = "19x15"
|
||||
|
||||
/datum/config_entry/string/max_viewport_size/ValidateAndSet(str_val)
|
||||
if(!istext(str_val))
|
||||
return FALSE
|
||||
var/list/split = splittext(str_val, "x")
|
||||
if(length(split) != 2)
|
||||
return FALSE
|
||||
var/width = text2num(split[1])
|
||||
var/height = text2num(split[2])
|
||||
if(height < 1 || width < 1 || height > 67 || width > 67)
|
||||
return FALSE
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
config.update_player_viewsize()
|
||||
|
||||
/*
|
||||
/datum/config_entry/string/game_viewport_size
|
||||
default = "19x15"
|
||||
|
||||
/datum/config_entry/string/max_viewport_size/ValidateAndSet(str_val)
|
||||
. = ..()
|
||||
*/
|
||||
//! BYONd world.view is immutable, this config is left here as a todo. If it's still immutable by, say, 516, remove it.
|
||||
|
||||
/datum/config_entry/number/starlight
|
||||
default = 2
|
||||
|
||||
@@ -51,13 +78,3 @@
|
||||
|
||||
/datum/config_entry/flag/emojis
|
||||
default = TRUE
|
||||
|
||||
/datum/config_entry/number/max_client_view_x
|
||||
default = 21
|
||||
min_val = 15
|
||||
max_val = 50 // Byond (the) limits
|
||||
|
||||
/datum/config_entry/number/max_client_view_y
|
||||
default = 15
|
||||
min_val = 15
|
||||
max_val = 50 // Byond (the) limits
|
||||
|
||||
Reference in New Issue
Block a user