overhauls rendering + redoes some of widescreen/dynamic sizing + misc fixes (#4668)

Co-authored-by: VM_USER <VM_USER>
This commit is contained in:
silicons
2022-11-17 17:31:54 -06:00
committed by GitHub
co-authored by VM_USER <VM_USER>
parent 798902257c
commit bc5e0940a2
50 changed files with 1475 additions and 754 deletions
@@ -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