mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 17:15:25 +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:
@@ -69,8 +69,8 @@
|
||||
// Just uncomment this and get rid of all of the TGUI bullshit lol
|
||||
// if(!in_range(user, src))
|
||||
// return
|
||||
// var/new_color = input(user, "Pick a color", "Color Selection", detail_color) as color|null
|
||||
// var/new_color = tgui_color_picker(user, "Pick a color", "Color Selection", detail_color)
|
||||
// if(!new_color)
|
||||
// return
|
||||
// detail_color = new_color
|
||||
// update_icon()
|
||||
// update_icon()
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
power_draw_per_use = 4
|
||||
|
||||
/obj/item/integrated_circuit/input/colorpad/ask_for_input(mob/user)
|
||||
var/new_color = input(user, "Enter a color, please.", "Color pad", get_pin_data(IC_OUTPUT, 1)) as color|null
|
||||
var/new_color = tgui_color_picker(user, "Enter a color, please.", "Color pad", get_pin_data(IC_OUTPUT, 1))
|
||||
if(new_color && CanInteract(user, GLOB.tgui_physical_state))
|
||||
set_pin_data(IC_OUTPUT, 1, new_color)
|
||||
push_data()
|
||||
|
||||
Reference in New Issue
Block a user