mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
ports tgui color input from bubbers (#16934)
* ports tgui color input from monkeystation * . * push that real quick * . * . * cleanup * fix for 516 * port bubbers pre set selection * also this * allow 20 saved states * oups * regex replace * urg * use the update by type * . * . * highlight? * larger? * fix those * keep anyone below 516 on old style
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/datum/gear_tweak/color/get_metadata(var/user, var/metadata, var/title = "Character Preference")
|
||||
if(valid_colors)
|
||||
return tgui_input_list(user, "Choose a color.", title, valid_colors, metadata)
|
||||
return input(user, "Choose a color.", title, metadata) as color|null
|
||||
return tgui_color_picker(user, "Choose a color.", title, metadata)
|
||||
|
||||
/datum/gear_tweak/color/tweak_item(var/obj/item/I, var/metadata)
|
||||
if(valid_colors && !(metadata in valid_colors))
|
||||
@@ -614,4 +614,4 @@ var/datum/gear_tweak/custom_desc/gear_tweak_free_desc = new()
|
||||
else
|
||||
C.initialize_tag(metadata)
|
||||
|
||||
#undef LOADOUT_BAN_STRING
|
||||
#undef LOADOUT_BAN_STRING
|
||||
|
||||
Reference in New Issue
Block a user