mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
remove old inputs (#17008)
This commit is contained in:
@@ -880,19 +880,19 @@
|
||||
remove_verb(src, /mob/living/carbon/human/proc/morph)
|
||||
return
|
||||
|
||||
var/new_facial = input(src, "Please select facial hair color.", "Character Generation",rgb(r_facial,g_facial,b_facial)) as color
|
||||
var/new_facial = tgui_color_picker(src, "Please select facial hair color.", "Character Generation",rgb(r_facial,g_facial,b_facial))
|
||||
if(new_facial)
|
||||
r_facial = hex2num(copytext(new_facial, 2, 4))
|
||||
g_facial = hex2num(copytext(new_facial, 4, 6))
|
||||
b_facial = hex2num(copytext(new_facial, 6, 8))
|
||||
|
||||
var/new_hair = input(src, "Please select hair color.", "Character Generation",rgb(r_hair,g_hair,b_hair)) as color
|
||||
var/new_hair = tgui_color_picker(src, "Please select hair color.", "Character Generation",rgb(r_hair,g_hair,b_hair))
|
||||
if(new_facial)
|
||||
r_hair = hex2num(copytext(new_hair, 2, 4))
|
||||
g_hair = hex2num(copytext(new_hair, 4, 6))
|
||||
b_hair = hex2num(copytext(new_hair, 6, 8))
|
||||
|
||||
var/new_eyes = input(src, "Please select eye color.", "Character Generation",rgb(r_eyes,g_eyes,b_eyes)) as color
|
||||
var/new_eyes = tgui_color_picker(src, "Please select eye color.", "Character Generation",rgb(r_eyes,g_eyes,b_eyes))
|
||||
if(new_eyes)
|
||||
r_eyes = hex2num(copytext(new_eyes, 2, 4))
|
||||
g_eyes = hex2num(copytext(new_eyes, 4, 6))
|
||||
@@ -1078,7 +1078,7 @@
|
||||
set name = "sim"
|
||||
set background = 1
|
||||
|
||||
var/damage = input(src, "Wound damage","Wound damage") as num
|
||||
var/damage = tgui_input_number(src, "Wound damage","Wound damage")
|
||||
|
||||
var/germs = 0
|
||||
var/tdamage = 0
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
last_special = world.time + 50
|
||||
|
||||
var/new_skin = input(src, "Please select a new body color.", "Shapeshifter Colour", rgb(r_skin, g_skin, b_skin)) as null|color
|
||||
var/new_skin = tgui_color_picker(src, "Please select a new body color.", "Shapeshifter Colour", rgb(r_skin, g_skin, b_skin))
|
||||
if(!new_skin)
|
||||
return
|
||||
lleill_set_colour(new_skin)
|
||||
|
||||
@@ -179,7 +179,7 @@ var/list/wrapped_species_by_ref = list()
|
||||
|
||||
last_special = world.time + 50
|
||||
|
||||
var/new_skin = input(src, "Please select a new body color.", "Shapeshifter Colour", rgb(r_skin, g_skin, b_skin)) as null|color
|
||||
var/new_skin = tgui_color_picker(src, "Please select a new body color.", "Shapeshifter Colour", rgb(r_skin, g_skin, b_skin))
|
||||
if(!new_skin)
|
||||
return
|
||||
shapeshifter_set_colour(new_skin)
|
||||
@@ -217,15 +217,15 @@ var/list/wrapped_species_by_ref = list()
|
||||
|
||||
last_special = world.time + 50
|
||||
|
||||
var/new_hair = input(src, "Please select a new hair color.", "Hair Colour") as color
|
||||
var/new_hair = tgui_color_picker(src, "Please select a new hair color.", "Hair Colour")
|
||||
if(!new_hair)
|
||||
return
|
||||
shapeshifter_set_hair_color(new_hair)
|
||||
var/new_grad = input(src, "Please select a new hair gradient color.", "Hair Gradient Colour") as color
|
||||
var/new_grad = tgui_color_picker(src, "Please select a new hair gradient color.", "Hair Gradient Colour")
|
||||
if(!new_grad)
|
||||
return
|
||||
shapeshifter_set_grad_color(new_grad)
|
||||
var/new_fhair = input(src, "Please select a new facial hair color.", "Facial Hair Color") as color
|
||||
var/new_fhair = tgui_color_picker(src, "Please select a new facial hair color.", "Facial Hair Color")
|
||||
if(!new_fhair)
|
||||
return
|
||||
shapeshifter_set_facial_color(new_fhair)
|
||||
@@ -317,7 +317,7 @@ var/list/wrapped_species_by_ref = list()
|
||||
last_special = world.time + 50
|
||||
|
||||
var/current_color = rgb(r_eyes,g_eyes,b_eyes)
|
||||
var/new_eyes = input(src, "Pick a new color for your eyes.","Eye Color", current_color) as null|color
|
||||
var/new_eyes = tgui_color_picker(src, "Pick a new color for your eyes.","Eye Color", current_color)
|
||||
if(!new_eyes)
|
||||
return
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//Allow color picks
|
||||
var/current_pri_color = rgb(r_ears,g_ears,b_ears)
|
||||
|
||||
var/new_pri_color = input(src, "Pick primary ear color:","Ear Color (Pri)", current_pri_color) as null|color
|
||||
var/new_pri_color = tgui_color_picker(src, "Pick primary ear color:","Ear Color (Pri)", current_pri_color)
|
||||
if(new_pri_color)
|
||||
var/list/new_color_rgb_list = hex2rgb(new_pri_color)
|
||||
r_ears = new_color_rgb_list[1]
|
||||
@@ -38,7 +38,7 @@
|
||||
//Indented inside positive primary color choice, don't bother if they clicked cancel
|
||||
var/current_sec_color = rgb(r_ears2,g_ears2,b_ears2)
|
||||
|
||||
var/new_sec_color = input(src, "Pick secondary ear color (only applies to some ears):","Ear Color (sec)", current_sec_color) as null|color
|
||||
var/new_sec_color = tgui_color_picker(src, "Pick secondary ear color (only applies to some ears):","Ear Color (sec)", current_sec_color)
|
||||
if(new_sec_color)
|
||||
new_color_rgb_list = hex2rgb(new_sec_color)
|
||||
r_ears2 = new_color_rgb_list[1]
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
var/current_ter_color = rgb(r_ears3,g_ears3,b_ears3)
|
||||
|
||||
var/new_ter_color = input(src, "Pick tertiary ear color (only applies to some ears):","Ear Color (sec)", current_ter_color) as null|color
|
||||
var/new_ter_color = tgui_color_picker(src, "Pick tertiary ear color (only applies to some ears):","Ear Color (sec)", current_ter_color)
|
||||
if(new_ter_color)
|
||||
new_color_rgb_list = hex2rgb(new_sec_color)
|
||||
r_ears3 = new_color_rgb_list[1]
|
||||
@@ -114,7 +114,7 @@
|
||||
//Allow color picks
|
||||
var/current_pri_color = rgb(r_tail,g_tail,b_tail)
|
||||
|
||||
var/new_pri_color = input(src, "Pick primary tail color:","Tail Color (Pri)", current_pri_color) as null|color
|
||||
var/new_pri_color = tgui_color_picker(src, "Pick primary tail color:","Tail Color (Pri)", current_pri_color)
|
||||
if(new_pri_color)
|
||||
var/list/new_color_rgb_list = hex2rgb(new_pri_color)
|
||||
r_tail = new_color_rgb_list[1]
|
||||
@@ -124,7 +124,7 @@
|
||||
//Indented inside positive primary color choice, don't bother if they clicked cancel
|
||||
var/current_sec_color = rgb(r_tail2,g_tail2,b_tail2)
|
||||
|
||||
var/new_sec_color = input(src, "Pick secondary tail color (only applies to some tails):","Tail Color (sec)", current_sec_color) as null|color
|
||||
var/new_sec_color = tgui_color_picker(src, "Pick secondary tail color (only applies to some tails):","Tail Color (sec)", current_sec_color)
|
||||
if(new_sec_color)
|
||||
new_color_rgb_list = hex2rgb(new_sec_color)
|
||||
r_tail2 = new_color_rgb_list[1]
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
var/current_ter_color = rgb(r_tail3,g_tail3,b_tail3)
|
||||
|
||||
var/new_ter_color = input(src, "Pick tertiary tail color (only applies to some tails):","Tail Color (sec)", current_ter_color) as null|color
|
||||
var/new_ter_color = tgui_color_picker(src, "Pick tertiary tail color (only applies to some tails):","Tail Color (sec)", current_ter_color)
|
||||
if(new_ter_color)
|
||||
new_color_rgb_list = hex2rgb(new_ter_color)
|
||||
r_tail3 = new_color_rgb_list[1]
|
||||
@@ -168,7 +168,7 @@
|
||||
//Allow color picks
|
||||
var/current_color = rgb(r_wing,g_wing,b_wing)
|
||||
|
||||
var/new_color = input(src, "Pick wing color:","Wing Color", current_color) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick wing color:","Wing Color", current_color)
|
||||
if(new_color)
|
||||
var/list/new_color_rgb_list = hex2rgb(new_color)
|
||||
r_wing = new_color_rgb_list[1]
|
||||
@@ -178,7 +178,7 @@
|
||||
//Indented inside positive primary color choice, don't bother if they clicked cancel
|
||||
var/current_sec_color = rgb(r_wing2,g_wing2,b_wing2)
|
||||
|
||||
var/new_sec_color = input(src, "Pick secondary wing color (only applies to some wings):","Wing Color (sec)", current_sec_color) as null|color
|
||||
var/new_sec_color = tgui_color_picker(src, "Pick secondary wing color (only applies to some wings):","Wing Color (sec)", current_sec_color)
|
||||
if(new_sec_color)
|
||||
new_color_rgb_list = hex2rgb(new_sec_color)
|
||||
r_wing2 = new_color_rgb_list[1]
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
var/current_ter_color = rgb(r_wing3,g_wing3,b_wing3)
|
||||
|
||||
var/new_ter_color = input(src, "Pick tertiary wing color (only applies to some wings):","Wing Color (sec)", current_ter_color) as null|color
|
||||
var/new_ter_color = tgui_color_picker(src, "Pick tertiary wing color (only applies to some wings):","Wing Color (sec)", current_ter_color)
|
||||
if(new_ter_color)
|
||||
new_color_rgb_list = hex2rgb(new_ter_color)
|
||||
r_wing3 = new_color_rgb_list[1]
|
||||
|
||||
@@ -309,7 +309,7 @@
|
||||
|
||||
last_special = world.time + 25
|
||||
|
||||
var/new_skin = input(src, "Please select a new body color.", "Shapeshifter Colour", color) as null|color
|
||||
var/new_skin = tgui_color_picker(src, "Please select a new body color.", "Shapeshifter Colour", color)
|
||||
if(!new_skin)
|
||||
return
|
||||
color = new_skin
|
||||
|
||||
@@ -457,7 +457,7 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick underbelly color:","Underbelly Color", S.dragon_overlays[1]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick underbelly color:","Underbelly Color", S.dragon_overlays[1])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[1] = choice
|
||||
@@ -470,7 +470,7 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick body color:","Body Color", S.dragon_overlays[2]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick body color:","Body Color", S.dragon_overlays[2])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[2] = choice
|
||||
@@ -483,7 +483,7 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick ear color:","Ear Color", S.dragon_overlays[3]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick ear color:","Ear Color", S.dragon_overlays[3])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[3] = choice
|
||||
@@ -496,7 +496,7 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick mane color:","Mane Color", S.dragon_overlays[4]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick mane color:","Mane Color", S.dragon_overlays[4])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[4] = choice
|
||||
@@ -509,7 +509,7 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick horn color:","Horn Color", S.dragon_overlays[5]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick horn color:","Horn Color", S.dragon_overlays[5])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[5] = choice
|
||||
@@ -522,19 +522,19 @@
|
||||
choice = show_radial_menu(protie, protie, options, radius = 90)
|
||||
if(!choice || QDELETED(protie) || protie.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick eye color:","Eye Color", S.dragon_overlays[6]) as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick eye color:","Eye Color", S.dragon_overlays[6])
|
||||
if(!new_color)
|
||||
return 0
|
||||
S.dragon_overlays[6] = choice
|
||||
S.dragon_overlays[S.dragon_overlays[6]] = new_color
|
||||
S.blob_appearance = "dragon"
|
||||
if("Primary")
|
||||
var/new_color = input("Pick primary color:","Protean Primary", "#FF0000") as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick primary color:","Protean Primary", "#FF0000")
|
||||
if(!new_color)
|
||||
return
|
||||
S.blob_color_1 = new_color
|
||||
if("Highlight")
|
||||
var/new_color = input("Pick highlight color:","Protean Highlight", "#FF0000") as null|color
|
||||
var/new_color = tgui_color_picker(protie, "Pick highlight color:","Protean Highlight", "#FF0000")
|
||||
if(!new_color)
|
||||
return
|
||||
S.blob_color_2 = new_color
|
||||
|
||||
+1
-1
@@ -1112,7 +1112,7 @@
|
||||
to_chat(src, span_warning("You are not a weaver! How are you doing this? Tell a developer!"))
|
||||
return
|
||||
|
||||
var/new_silk_color = input(src, "Pick a color for your woven products:","Silk Color", species.silk_color) as null|color
|
||||
var/new_silk_color = tgui_color_picker(src, "Pick a color for your woven products:","Silk Color", species.silk_color)
|
||||
if(new_silk_color)
|
||||
species.silk_color = new_silk_color
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
|
||||
qdel(M)
|
||||
|
||||
var/newname = sanitize(input(user, "Would you like to give the slime a name?", "Name your new pet", "pet slime") as null|text, MAX_NAME_LEN)
|
||||
var/newname = sanitize(tgui_input_text(user, "Would you like to give the slime a name?", "Name your new pet", "pet slime", MAX_NAME_LEN))
|
||||
|
||||
if (!newname)
|
||||
newname = "pet slime"
|
||||
@@ -203,7 +203,7 @@
|
||||
pet.colour = "[M.colour]"
|
||||
to_chat(user, "You feed the slime the potion, removing it's powers and calming it.")
|
||||
qdel(M)
|
||||
var/newname = sanitize(input(user, "Would you like to give the slime a name?", "Name your new pet", "pet slime") as null|text, MAX_NAME_LEN)
|
||||
var/newname = sanitize(tgui_input_text(user, "Would you like to give the slime a name?", "Name your new pet", "pet slime", MAX_NAME_LEN))
|
||||
|
||||
if (!newname)
|
||||
newname = "pet slime"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
set category = "IC.Settings"
|
||||
set desc = "Set your flavour text."
|
||||
set src = usr
|
||||
var/new_flavour_text = sanitize((input("Please describe yourself.", "Flavour Text", flavor_text) as message|null), MAX_MESSAGE_LEN)
|
||||
var/new_flavour_text = sanitize((tgui_input_text(src, "Please describe yourself.", "Flavour Text", flavor_text, MAX_MESSAGE_LEN, TRUE)))
|
||||
if(length(new_flavour_text) && !QDELETED(src))
|
||||
flavor_text = new_flavour_text
|
||||
to_chat(src, span_notice("Your flavour text has been updated."))
|
||||
|
||||
@@ -426,7 +426,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick underbelly color:","Underbelly Color", overlay_colors["Underbelly"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick underbelly color:","Underbelly Color", overlay_colors["Underbelly"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
under = choice
|
||||
@@ -439,7 +439,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick body color:","Body Color", overlay_colors["Body"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick body color:","Body Color", overlay_colors["Body"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
body = choice
|
||||
@@ -452,7 +452,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick ear color:","Ear Color", overlay_colors["Ears"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick ear color:","Ear Color", overlay_colors["Ears"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
ears = choice
|
||||
@@ -465,7 +465,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick mane color:","Mane Color", overlay_colors["Mane"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick mane color:","Mane Color", overlay_colors["Mane"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
mane = choice
|
||||
@@ -478,7 +478,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick horn color:","Horn Color", overlay_colors["Horns"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick horn color:","Horn Color", overlay_colors["Horns"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
horns = choice
|
||||
@@ -491,7 +491,7 @@ I think I covered everything.
|
||||
choice = show_radial_menu(src, src, options, radius = 90)
|
||||
if(!choice || QDELETED(src) || src.incapacitated())
|
||||
return 0
|
||||
var/new_color = input("Pick eye color:","Eye Color", overlay_colors["Eyes"]) as null|color
|
||||
var/new_color = tgui_color_picker(src, "Pick eye color:","Eye Color", overlay_colors["Eyes"])
|
||||
if(!new_color)
|
||||
return 0
|
||||
eyes = choice
|
||||
|
||||
Reference in New Issue
Block a user