Files
VOREStation/code/modules/mob/new_player/preferences_setup_vr.dm
T
Verkister c2c34b41dc Adds body shape traits and proper preview scaling
-Adds neutral height/width changing body shape traits available for all, based on the polaris modifier traits. (tall/taller/short/shorter and fat/obese/thin/thinner) The height traits are mutually exclusive only with other height traits, same with width traits so you can be extra tall and extra wide at the same time.
-Makes our mob size_multiplier stuff compatible with icon_scale_x/y stuff.
-Brings back proper tile alignment and adequate space for character previews, which now also scale correctly, and properly preview sharp/fuzzy scaling effects and the body shape traits.
2021-02-05 22:13:44 +02:00

16 lines
780 B
Plaintext

/datum/preferences/update_preview_icon() // Lines up and un-overlaps character edit previews. Also un-splits taurs.
var/mob/living/carbon/human/dummy/mannequin/mannequin = get_mannequin(client_ckey)
if(!mannequin.dna) // Special handling for preview icons before SSAtoms has initailized.
mannequin.dna = new /datum/dna(null)
mannequin.delete_inventory(TRUE)
dress_preview_mob(mannequin)
mannequin.update_transform()
mannequin.toggle_tail_vr(setting = TRUE)
mannequin.toggle_wing_vr(setting = TRUE)
COMPILE_OVERLAYS(mannequin)
update_character_previews(new /mutable_appearance(mannequin))
//TFF 5/8/19 - add randomised sensor setting for random button clicking
/datum/preferences/randomize_appearance_and_body_for(var/mob/living/carbon/human/H)
sensorpref = rand(1,5)