mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Fixes char setup tail layering.
Guess we aint goin a bit elephant style for much longer.
This commit is contained in:
@@ -278,7 +278,7 @@ var/list/preferences_datums = list()
|
|||||||
popup.open(FALSE) // Skip registring onclose on the browser pane
|
popup.open(FALSE) // Skip registring onclose on the browser pane
|
||||||
onclose(user, "preferences_window", src) // We want to register on the window itself
|
onclose(user, "preferences_window", src) // We want to register on the window itself
|
||||||
|
|
||||||
/datum/preferences/proc/update_character_previews(mutable_appearance/MA)
|
/*datum/preferences/proc/update_character_previews(mutable_appearance/MA) //CHOMPEdit _ch override.
|
||||||
if(!client)
|
if(!client)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ var/list/preferences_datums = list()
|
|||||||
client.screen |= O
|
client.screen |= O
|
||||||
O.appearance = MA
|
O.appearance = MA
|
||||||
O.dir = D
|
O.dir = D
|
||||||
O.screen_loc = preview_screen_locs["[D]"]
|
O.screen_loc = preview_screen_locs["[D]"]*/
|
||||||
|
|
||||||
/datum/preferences/proc/show_character_previews()
|
/datum/preferences/proc/show_character_previews()
|
||||||
if(!client || !char_render_holders)
|
if(!client || !char_render_holders)
|
||||||
|
|||||||
@@ -27,3 +27,39 @@
|
|||||||
SScharacter_setup.queue_preferences_save(prefs)
|
SScharacter_setup.queue_preferences_save(prefs)
|
||||||
|
|
||||||
feedback_add_details("admin_verb", "TSleepMusic")
|
feedback_add_details("admin_verb", "TSleepMusic")
|
||||||
|
|
||||||
|
/datum/preferences/proc/update_character_previews(var/mob/living/carbon/human/mannequin)
|
||||||
|
if(!client)
|
||||||
|
return
|
||||||
|
|
||||||
|
var/obj/screen/setup_preview/pm_helper/PMH = LAZYACCESS(char_render_holders, "PMH")
|
||||||
|
if(!PMH)
|
||||||
|
PMH = new
|
||||||
|
LAZYSET(char_render_holders, "PMH", PMH)
|
||||||
|
client.screen |= PMH
|
||||||
|
PMH.screen_loc = preview_screen_locs["PMH"]
|
||||||
|
|
||||||
|
var/obj/screen/setup_preview/bg/BG = LAZYACCESS(char_render_holders, "BG")
|
||||||
|
if(!BG)
|
||||||
|
BG = new
|
||||||
|
BG.plane = TURF_PLANE
|
||||||
|
BG.icon = 'icons/effects/setup_backgrounds_vr.dmi'
|
||||||
|
BG.pref = src
|
||||||
|
LAZYSET(char_render_holders, "BG", BG)
|
||||||
|
client.screen |= BG
|
||||||
|
BG.icon_state = bgstate
|
||||||
|
BG.screen_loc = preview_screen_locs["BG"]
|
||||||
|
|
||||||
|
for(var/D in global.cardinal)
|
||||||
|
var/obj/screen/setup_preview/O = LAZYACCESS(char_render_holders, "[D]")
|
||||||
|
if(!O)
|
||||||
|
O = new
|
||||||
|
O.pref = src
|
||||||
|
LAZYSET(char_render_holders, "[D]", O)
|
||||||
|
client.screen |= O
|
||||||
|
mannequin.set_dir(D)
|
||||||
|
mannequin.update_tail_showing()
|
||||||
|
mannequin.ImmediateOverlayUpdate()
|
||||||
|
var/mutable_appearance/MA = new(mannequin)
|
||||||
|
O.appearance = MA
|
||||||
|
O.screen_loc = preview_screen_locs["[D]"]
|
||||||
@@ -261,10 +261,10 @@
|
|||||||
mannequin.update_transform() //VOREStation Edit to update size/shape stuff.
|
mannequin.update_transform() //VOREStation Edit to update size/shape stuff.
|
||||||
mannequin.toggle_tail(setting = animations_toggle)
|
mannequin.toggle_tail(setting = animations_toggle)
|
||||||
mannequin.toggle_wing(setting = animations_toggle)
|
mannequin.toggle_wing(setting = animations_toggle)
|
||||||
mannequin.update_tail_showing()
|
//mannequin.update_tail_showing() //CHOMPEdit. Moved to preferences_ch.dm
|
||||||
mannequin.ImmediateOverlayUpdate()
|
//mannequin.ImmediateOverlayUpdate() //CHOMPEdit
|
||||||
|
|
||||||
update_character_previews(new /mutable_appearance(mannequin))
|
update_character_previews(mannequin) //CHOMPEdit
|
||||||
|
|
||||||
/datum/preferences/proc/get_highest_job()
|
/datum/preferences/proc/get_highest_job()
|
||||||
var/datum/job/highJob
|
var/datum/job/highJob
|
||||||
|
|||||||
Reference in New Issue
Block a user