mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +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:
@@ -129,7 +129,7 @@
|
||||
|
||||
if(usr.incapacitated())
|
||||
return
|
||||
var/new_colour = input(usr, "Choose a colour.", name, paint_colour) as color|null
|
||||
var/new_colour = tgui_color_picker(usr, "Choose a colour.", name, paint_colour)
|
||||
if(new_colour && new_colour != paint_colour)
|
||||
paint_colour = new_colour
|
||||
to_chat(usr, span_notice("You set \the [src] to paint with <font color='[paint_colour]'>a new colour</font>."))
|
||||
|
||||
@@ -318,7 +318,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
if(href_list["track_color"])
|
||||
var/obj/item/gps/gps = locate(href_list["track_color"])
|
||||
if(istype(gps) && !QDELETED(gps))
|
||||
var/new_colour = input(usr, "Enter a new tracking color.", "GPS Waypoint Color") as color|null
|
||||
var/new_colour = tgui_color_picker(usr, "Enter a new tracking color.", "GPS Waypoint Color")
|
||||
if(new_colour && istype(gps) && !QDELETED(gps) && holder == usr && !usr.incapacitated())
|
||||
to_chat(usr, span_notice("You adjust the colour \the [src] is using to highlight [gps.gps_tag]."))
|
||||
LAZYSET(tracking_devices, href_list["track_color"], new_colour)
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
return
|
||||
*/
|
||||
to_chat(user, "It has [uses] lights remaining.")
|
||||
var/new_color = input(user, "Choose a color to set the light to! (Default is [LIGHT_COLOR_INCANDESCENT_TUBE])", "", selected_color) as color|null
|
||||
var/new_color = tgui_color_picker(user, "Choose a color to set the light to! (Default is [LIGHT_COLOR_INCANDESCENT_TUBE])", "", selected_color)
|
||||
if(new_color)
|
||||
selected_color = new_color
|
||||
to_chat(user, "The light color has been changed.")
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
to_chat(user, span_notice("You remove the cell from \the [src]."))
|
||||
update_icon()
|
||||
else if(istype(W,/obj/item/multitool))
|
||||
var/new_color = input(usr, "Choose a color to set the shield to!", "", effect_color) as color|null
|
||||
var/new_color = tgui_color_picker(usr, "Choose a color to set the shield to!", "", effect_color)
|
||||
if(new_color)
|
||||
effect_color = new_color
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user