mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] remove old inputs (#10038)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f3ebea3af1
commit
965f8f4a61
@@ -16,14 +16,14 @@
|
||||
if(content != null)
|
||||
coords += content
|
||||
if(coords.len>3)
|
||||
alert("You entered too many coordinates! Only 3 are required.")
|
||||
tgui_alert(src, "You entered too many coordinates! Only 3 are required.")
|
||||
return
|
||||
if(coords.len<3)
|
||||
alert("You didn't enter enough coordinates! 3 are required.")
|
||||
tgui_alert(src, "You didn't enter enough coordinates! 3 are required.")
|
||||
return
|
||||
destination = locate(coords[1],coords[2],coords[3])
|
||||
if(!destination)
|
||||
alert("Invalid coordinates!")
|
||||
tgui_alert(src, "Invalid coordinates!")
|
||||
return
|
||||
if("atom")
|
||||
value = vv_get_value(VV_ATOM_REFERENCE)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
if(!check_rights(R_ADMIN|R_EVENT|R_DEBUG)) //CHOMPStation Edit TFF 24/4/19: Allow Devs to use Quick-NIF verb.
|
||||
return
|
||||
|
||||
var/mob/living/carbon/human/H = input("Pick a mob with a player","Quick Authentic NIF") as null|anything in player_list
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Pick a mob with a player","Quick Authentic NIF", player_list)
|
||||
|
||||
if(!H)
|
||||
return
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user