Click background in character preview to change it

This commit is contained in:
Aronai Sieyes
2020-05-22 11:07:43 -04:00
parent 70251e83f9
commit 67a5ead927
3 changed files with 22 additions and 3 deletions

View File

@@ -617,3 +617,20 @@
/obj/screen/component_button/Click(params)
if(parent)
parent.component_click(src, params)
// Character setup stuff
/obj/screen/setup_preview
var/datum/preferences/pref
/obj/screen/setup_preview/Destroy()
pref = null
return ..()
// Background 'floor'
/obj/screen/setup_preview/bg
mouse_over_pointer = MOUSE_HAND_POINTER
/obj/screen/setup_preview/bg/Click(params)
pref?.bgstate = next_in_list(pref.bgstate, pref.bgstate_options)
pref?.update_preview_icon()