mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-14 09:43:49 +01:00
[MIRROR] Fix multiple pref issues (#11373)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b7c79d4a6a
commit
ae778b99ee
@@ -69,19 +69,14 @@
|
||||
set category = "IC.Game"
|
||||
set desc = "Switch tail layer to show below/above/between clothing or other things such as wings!."
|
||||
|
||||
var/input = tgui_input_list(src, "Select a tail layer.", "Set Tail Layer", list(SWITCH_TAIL_LAYER_UPPER, SWITCH_TAIL_LAYER_STANDARD, SWITCH_TAIL_LAYER_LOWER))
|
||||
if(isnull(input))
|
||||
var/input = tgui_input_list(src, "Select a tail layer.", "Set Tail Layer", GLOB.tail_layer_options, read_preference(/datum/preference/choiced/human/tail_layering))
|
||||
if(!input)
|
||||
return
|
||||
switch(input)
|
||||
if(SWITCH_TAIL_LAYER_UPPER)
|
||||
tail_layering = input
|
||||
write_preference_directly(/datum/preference/numeric/human/tail_layering, TAIL_UPPER_LAYER_HIGH)
|
||||
if(SWITCH_TAIL_LAYER_STANDARD)
|
||||
tail_layering = input
|
||||
write_preference_directly(/datum/preference/numeric/human/tail_layering, TAIL_UPPER_LAYER)
|
||||
if(SWITCH_TAIL_LAYER_LOWER)
|
||||
tail_layering = input
|
||||
write_preference_directly(/datum/preference/numeric/human/tail_layering, TAIL_UPPER_LAYER_LOW)
|
||||
var/tail_option = GLOB.tail_layer_options[input]
|
||||
if(!tail_option)
|
||||
return
|
||||
tail_layering = tail_option
|
||||
write_preference_directly(/datum/preference/choiced/human/tail_layering, input)
|
||||
|
||||
update_tail_showing()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user