mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
-They swap upon every preview refresh. -Current selection comes with full black, full white, 'steel' floor tiles, white flor tiles, bare plating, and reinforced floor. -We'll see if I feel like figuring out how to make a proper selection button later.
24 lines
934 B
Plaintext
24 lines
934 B
Plaintext
//File isn't currently being used.
|
|
//It is now.
|
|
/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)
|
|
mannequin.delete_inventory(TRUE)
|
|
dress_preview_mob(mannequin)
|
|
var/icon/bgstate = pick("000", "FFF", "steel", "white", "plating", "reinforced")
|
|
|
|
preview_icon = icon('icons/effects/128x48_vr.dmi', bgstate)
|
|
preview_icon.Scale(64+64, 16+32)
|
|
|
|
mannequin.dir = NORTH
|
|
var/icon/stamp = getFlatIcon(mannequin)
|
|
preview_icon.Blend(stamp, ICON_OVERLAY, 49, 9)
|
|
|
|
mannequin.dir = WEST
|
|
stamp = getFlatIcon(mannequin)
|
|
preview_icon.Blend(stamp, ICON_OVERLAY, 1, 9)
|
|
|
|
mannequin.dir = SOUTH
|
|
stamp = getFlatIcon(mannequin)
|
|
preview_icon.Blend(stamp, ICON_OVERLAY, 83, 9)
|
|
|
|
preview_icon.Scale(preview_icon.Width() * 2, preview_icon.Height() * 2) // Scaling here to prevent blurring in the browser. |