mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
@@ -261,5 +261,14 @@
|
||||
return mannequin
|
||||
|
||||
/datum/preferences/proc/update_preview_icon()
|
||||
var/mannequin = update_mannequin()
|
||||
update_character_previews(new /mutable_appearance(mannequin))
|
||||
var/mob/living/carbon/human/dummy/mannequin/mannequin = update_mannequin()
|
||||
var/mutable_appearance/MA = new /mutable_appearance(mannequin)
|
||||
MA.appearance_flags = PIXEL_SCALE
|
||||
if(mannequin.species?.icon_x_offset)
|
||||
MA.pixel_x = mannequin.species.icon_x_offset
|
||||
if(mannequin.species?.icon_y_offset)
|
||||
MA.pixel_y = mannequin.species.icon_y_offset
|
||||
var/matrix/M = matrix()
|
||||
M.Scale(scale_x, scale_y)
|
||||
MA.transform = M
|
||||
update_character_previews(MA, (MA.pixel_x != 0 || MA.pixel_y != 0))
|
||||
|
||||
@@ -435,6 +435,7 @@ There are several things that need to be remembered:
|
||||
var/icon/face_standing = SSicon_cache.human_hair_cache[cache_key]
|
||||
if (!face_standing) // Not cached, generate it from scratch.
|
||||
face_standing = new /icon(species.canvas_icon, "blank")
|
||||
|
||||
// Beard.
|
||||
if(f_style)
|
||||
var/datum/sprite_accessory/facial_hair_style = facial_hair_styles_list[f_style]
|
||||
@@ -454,9 +455,10 @@ There are several things that need to be remembered:
|
||||
if(hair_style.do_colouration)
|
||||
if(g_style)
|
||||
var/datum/sprite_accessory/gradient_style = hair_gradient_styles_list[g_style]
|
||||
grad_s = new/icon("icon" = gradient_style.icon, "icon_state" = gradient_style.icon_state)
|
||||
grad_s.Blend(hair_s, ICON_AND)
|
||||
grad_s.Blend(rgb(r_grad, g_grad, b_grad), ICON_MULTIPLY)
|
||||
if(gradient_style && gradient_style.species_allowed && (species.type in gradient_style.species_allowed))
|
||||
grad_s = new/icon("icon" = gradient_style.icon, "icon_state" = gradient_style.icon_state)
|
||||
grad_s.Blend(hair_s, ICON_AND)
|
||||
grad_s.Blend(rgb(r_grad, g_grad, b_grad), ICON_MULTIPLY)
|
||||
hair_s.Blend(rgb(r_hair, g_hair, b_hair), hair_style.icon_blend_mode)
|
||||
if(!isnull(grad_s))
|
||||
var/icon/grad_s_final = new/icon("icon" = hair_style.icon, "icon_state" = hair_style.icon_state)
|
||||
|
||||
Reference in New Issue
Block a user