mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Click background in character preview to change it
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user