Added custom option

Added custom option to the color selection
This commit is contained in:
CalamaBanana
2019-05-15 13:13:17 +02:00
parent 7cd74e6601
commit 9e00562e68
@@ -26,7 +26,8 @@
"light blue" = COLOR_ASSEMBLY_LBLUE,
"blue" = COLOR_ASSEMBLY_BLUE,
"purple" = COLOR_ASSEMBLY_PURPLE,
"pink" = COLOR_ASSEMBLY_PINK
"pink" = COLOR_ASSEMBLY_PINK,
"custom" = "#ffffff"
)
/obj/item/integrated_electronics/detailer/Initialize()
@@ -44,6 +45,9 @@
if(!color_list[color_choice])
return
if(!in_range(src, user))
return
detail_color = color_list[color_choice]
return
if(color_choice == "custom")
detail_color = input(user,"","Choose Color",detail_color) as color|null
else
detail_color = color_list[color_choice]
update_icon()