remove old inputs (#17008)

This commit is contained in:
Kashargul
2025-02-01 20:23:25 +01:00
committed by GitHub
parent de67cc1f74
commit bbed406b2e
63 changed files with 151 additions and 131 deletions
+1 -1
View File
@@ -324,7 +324,7 @@
if(input)
new_light_intensity = input
if("Color")
var/input = input(usr, "New light color.","Light Maker",3) as null|color
var/input = tgui_color_picker(usr, "New light color.","Light Maker",new_light_color)
if(input)
new_light_color = input
if(BUILDMODE_DROP)
@@ -48,26 +48,26 @@
return
if(tgui_alert(usr, "Are you sure you wish to edit this mob's appearance? Skrell, Unathi, Tajaran can result in unintended consequences.","Danger!",list("Yes","No")) != "Yes")
return
var/new_facial = input(usr, "Please select facial hair color.", "Character Generation") as color
var/new_facial = tgui_color_picker(usr, "Please select facial hair color.", "Character Generation")
if(new_facial)
M.r_facial = hex2num(copytext(new_facial, 2, 4))
M.g_facial = hex2num(copytext(new_facial, 4, 6))
M.b_facial = hex2num(copytext(new_facial, 6, 8))
var/new_hair = input(usr, "Please select hair color.", "Character Generation") as color
var/new_hair = tgui_color_picker(usr, "Please select hair color.", "Character Generation")
if(new_facial)
M.r_hair = hex2num(copytext(new_hair, 2, 4))
M.g_hair = hex2num(copytext(new_hair, 4, 6))
M.b_hair = hex2num(copytext(new_hair, 6, 8))
var/new_eyes = input(usr, "Please select eye color.", "Character Generation") as color
var/new_eyes = tgui_color_picker(usr, "Please select eye color.", "Character Generation")
if(new_eyes)
M.r_eyes = hex2num(copytext(new_eyes, 2, 4))
M.g_eyes = hex2num(copytext(new_eyes, 4, 6))
M.b_eyes = hex2num(copytext(new_eyes, 6, 8))
M.update_eyes()
var/new_skin = input(usr, "Please select body color. This is for Tajaran, Unathi, and Skrell only!", "Character Generation") as color
var/new_skin = tgui_color_picker(usr, "Please select body color. This is for Tajaran, Unathi, and Skrell only!", "Character Generation")
if(new_skin)
M.r_skin = hex2num(copytext(new_skin, 2, 4))
M.g_skin = hex2num(copytext(new_skin, 4, 6))
+3 -3
View File
@@ -813,11 +813,11 @@ Traitors and the like can also be revived with the previous role mostly intact.
switch(tgui_alert(usr, "Temporary Ban?","Temporary Ban",list("Yes","No")))
if("Yes")
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num
var/mins = tgui_input_number(usr,"How long (in minutes)?","Ban time",1440) as num
if(!mins)
return
if(mins >= 525600) mins = 525599
var/reason = input(usr,"Reason?","reason","Griefer") as text
var/reason = tgui_input_text(usr,"Reason?","reason","Griefer")
if(!reason)
return
if(M)
@@ -833,7 +833,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
else
if("No")
var/reason = input(usr,"Reason?","reason","Griefer") as text
var/reason = tgui_input_text(usr,"Reason?","reason","Griefer")
if(!reason)
return
AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0)