mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Part 1
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
procedure = S
|
||||
break
|
||||
else
|
||||
procedure = input("Begin which procedure?", "Surgery", null, null) as null|anything in available_surgeries
|
||||
procedure = tgui_input_list(usr, "Begin which procedure?", "Surgery", available_surgeries)
|
||||
|
||||
if(!procedure)
|
||||
return
|
||||
|
||||
@@ -492,7 +492,7 @@
|
||||
user.visible_message("<span class='notice'>[user]'s pinpointer fails to detect a signal.</span>", "<span class='notice'>Your pinpointer fails to detect a signal.</span>")
|
||||
return
|
||||
|
||||
var/A = input(user, "Person to track", "Pinpoint") in names
|
||||
var/A = tgui_input_list(user, "Person to track", "Pinpoint", names)
|
||||
if(!src || !user || (user.get_active_hand() != src) || user.incapacitated() || !A)
|
||||
return
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"Standard" = /obj/machinery/door/airlock)
|
||||
|
||||
/datum/painter/airlock/pick_color(mob/user)
|
||||
var/choice = input(user, "Please select a paintjob.") as null|anything in available_paint_jobs
|
||||
var/choice = tgui_input_list(user, "Please select a paintjob.", "Airlock painter", available_paint_jobs)
|
||||
if(!choice)
|
||||
return
|
||||
paint_setting = choice
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
paint_setting = pick(modes)
|
||||
|
||||
/datum/painter/pipe/pick_color(mob/user)
|
||||
paint_setting = input("Which color do you want to use?", null, paint_setting) in modes
|
||||
paint_setting = tgui_input_list(user, "Which color do you want to use?", "Pick color", paint_setting)
|
||||
|
||||
/datum/painter/pipe/paint_atom(atom/target, mob/user)
|
||||
if(!istype(target, /obj/machinery/atmospherics/pipe))
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
turfs += T
|
||||
if(turfs.len)
|
||||
L["None (Dangerous)"] = pick(turfs)
|
||||
var/t1 = input(user, "Please select a teleporter to lock in on.", "Hand Teleporter") as null|anything in L
|
||||
var/t1 = tgui_input_list(user, "Please select a teleporter to lock in on.", "Hand Teleporter", L)
|
||||
if(!t1 || (!user.is_in_active_hand(src) || user.stat || user.restrained()))
|
||||
return
|
||||
if(active_portals >= 3)
|
||||
|
||||
@@ -78,10 +78,10 @@
|
||||
qdel(src)
|
||||
return
|
||||
if(is_pen(W))
|
||||
var/decalselection = input("Please select a decal") as null|anything in list("Atmospherics", "Bartender", "Barber", "Blueshield", "Captain",
|
||||
var/decalselection = tgui_input_list(user, "Please select a decal", "Paint Box", list("Atmospherics", "Bartender", "Barber", "Blueshield", "Captain",
|
||||
"Cargo", "Chief Engineer", "Chaplain", "Chef", "Chemist", "Assistant", "Clown", "CMO", "Coroner", "Detective", "Engineering", "Genetics", "HOP",
|
||||
"HOS", "Hydroponics", "Internal Affairs Agent", "Janitor", "Magistrate", "Medical", "Mime", "Mining", "NT Representative", "Paramedic",
|
||||
"Prisoner", "Research Director", "Security", "Syndicate", "Therapist", "Virology", "Warden", "Xenobiology")
|
||||
"Prisoner", "Research Director", "Security", "Syndicate", "Therapist", "Virology", "Warden", "Xenobiology"))
|
||||
if(!decalselection)
|
||||
return
|
||||
if(user.incapacitated())
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
if(ishuman(user) && anchored)
|
||||
var/mob/living/carbon/human/H = user
|
||||
|
||||
var/choice = input(user, "Underwear, Undershirt, or Socks?", "Changing") as null|anything in list("Underwear","Undershirt","Socks")
|
||||
var/choice = tgui_input_list(user, "Underwear, Undershirt, or Socks?", "Changing", list("Underwear","Undershirt","Socks"))
|
||||
|
||||
if(!Adjacent(user))
|
||||
return
|
||||
@@ -24,7 +24,7 @@
|
||||
if(!(H.dna.species.name in S.species_allowed))
|
||||
continue
|
||||
valid_underwear[underwear] = GLOB.underwear_list[underwear]
|
||||
var/new_underwear = input(user, "Choose your underwear:", "Changing") as null|anything in valid_underwear
|
||||
var/new_underwear = tgui_input_list(user, "Choose your underwear:", "Changing", valid_underwear)
|
||||
if(new_underwear)
|
||||
H.underwear = new_underwear
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
if(!(H.dna.species.name in S.species_allowed))
|
||||
continue
|
||||
valid_undershirts[undershirt] = GLOB.undershirt_list[undershirt]
|
||||
var/new_undershirt = input(user, "Choose your undershirt:", "Changing") as null|anything in valid_undershirts
|
||||
var/new_undershirt = tgui_input_list(user, "Choose your undershirt:", "Changing", valid_undershirts)
|
||||
if(new_undershirt)
|
||||
H.undershirt = new_undershirt
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
if(!(H.dna.species.name in S.species_allowed))
|
||||
continue
|
||||
valid_sockstyles[sockstyle] = GLOB.socks_list[sockstyle]
|
||||
var/new_socks = input(user, "Choose your socks:", "Changing") as null|anything in valid_sockstyles
|
||||
var/new_socks = tgui_input_list(user, "Choose your socks:", "Changing", valid_sockstyles)
|
||||
if(new_socks)
|
||||
H.socks = new_socks
|
||||
|
||||
|
||||
@@ -223,7 +223,10 @@
|
||||
if(can_use_species(user, _species))
|
||||
new_species += _species
|
||||
|
||||
active_character.species = input("Please select a species", "Character Generation", null) in sortTim(new_species, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
active_character.species = tgui_input_list(user, "Please select a species", "Character Generation", new_species)
|
||||
if(!active_character.species)
|
||||
active_character.species = prev_species
|
||||
return
|
||||
var/datum/species/NS = GLOB.all_species[active_character.species]
|
||||
if(!istype(NS)) //The species was invalid. Notify the user and fail out.
|
||||
active_character.species = prev_species
|
||||
@@ -309,12 +312,14 @@
|
||||
if(!(lang.flags & RESTRICTED))
|
||||
new_languages += lang.name
|
||||
|
||||
active_character.language = input("Please select a secondary language", "Character Generation", null) in sortTim(new_languages, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
active_character.language = tgui_input_list(user, "Please select a secondary language", "Character Generation", new_languages)
|
||||
if(!active_character.language)
|
||||
return
|
||||
|
||||
if("autohiss_mode")
|
||||
if(S.autohiss_basic_map)
|
||||
var/list/autohiss_choice = list("Off" = AUTOHISS_OFF, "Basic" = AUTOHISS_BASIC, "Full" = AUTOHISS_FULL)
|
||||
var/new_autohiss_pref = input(user, "Choose your character's auto-accent level:", "Character Preference") as null|anything in autohiss_choice
|
||||
var/new_autohiss_pref = tgui_input_list(user, "Choose your character's auto-accent level", "Character Preference", autohiss_choice)
|
||||
if(new_autohiss_pref)
|
||||
active_character.autohiss_mode = autohiss_choice[new_autohiss_pref]
|
||||
|
||||
@@ -324,7 +329,7 @@
|
||||
active_character.metadata = sanitize(copytext(new_metadata,1,MAX_MESSAGE_LEN))
|
||||
|
||||
if("b_type")
|
||||
var/new_b_type = input(user, "Choose your character's blood-type:", "Character Preference") as null|anything in list( "A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-" )
|
||||
var/new_b_type = tgui_input_list(user, "Choose your character's blood-type", "Character Preference", list( "A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-"))
|
||||
if(new_b_type)
|
||||
active_character.b_type = new_b_type
|
||||
|
||||
@@ -369,12 +374,12 @@
|
||||
valid_hairstyles += hairstyle
|
||||
|
||||
sortTim(valid_hairstyles, GLOBAL_PROC_REF(cmp_text_asc)) //this alphabetizes the list
|
||||
var/new_h_style = input(user, "Choose your character's hair style:", "Character Preference") as null|anything in valid_hairstyles
|
||||
var/new_h_style = tgui_input_list(user, "Choose your character's hair style:", "Character Preference", valid_hairstyles)
|
||||
if(new_h_style)
|
||||
active_character.h_style = new_h_style
|
||||
|
||||
if("h_grad_style")
|
||||
var/result = input(user, "Choose your character's hair gradient style:", "Character Preference") as null|anything in GLOB.hair_gradients_list
|
||||
var/result = tgui_input_list(user, "Choose your character's hair gradient style", "Character Preference", GLOB.hair_gradients_list)
|
||||
if(result)
|
||||
active_character.h_grad_style = result
|
||||
|
||||
@@ -414,7 +419,7 @@
|
||||
valid_head_accessory_styles += head_accessory_style
|
||||
|
||||
sortTim(valid_head_accessory_styles, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_head_accessory_style = input(user, "Choose the style of your character's head accessory:", "Character Preference") as null|anything in valid_head_accessory_styles
|
||||
var/new_head_accessory_style = tgui_input_list(user, "Choose the style of your character's head accessory", "Character Preference", valid_head_accessory_styles)
|
||||
if(new_head_accessory_style)
|
||||
active_character.ha_style = new_head_accessory_style
|
||||
|
||||
@@ -423,7 +428,6 @@
|
||||
return
|
||||
if(S.bodyflags & HAS_ALT_HEADS) //Species with alt heads.
|
||||
var/list/valid_alt_heads = list()
|
||||
valid_alt_heads["None"] = GLOB.alt_heads_list["None"] //The only null entry should be the "None" option
|
||||
for(var/alternate_head in GLOB.alt_heads_list)
|
||||
var/datum/sprite_accessory/alt_heads/head = GLOB.alt_heads_list[alternate_head]
|
||||
if(!(active_character.species in head.species_allowed))
|
||||
@@ -431,7 +435,7 @@
|
||||
|
||||
valid_alt_heads += alternate_head
|
||||
|
||||
var/new_alt_head = input(user, "Choose your character's alternate head style:", "Character Preference") as null|anything in valid_alt_heads
|
||||
var/new_alt_head = tgui_input_list(user, "Choose your character's alternate head style", "Character Preference", valid_alt_heads)
|
||||
if(new_alt_head)
|
||||
active_character.alt_head = new_alt_head
|
||||
if(active_character.m_styles["head"])
|
||||
@@ -443,7 +447,6 @@
|
||||
if("m_style_head")
|
||||
if(S.bodyflags & HAS_HEAD_MARKINGS) //Species with head markings.
|
||||
var/list/valid_markings = list()
|
||||
valid_markings["None"] = GLOB.marking_styles_list["None"]
|
||||
for(var/markingstyle in GLOB.marking_styles_list)
|
||||
var/datum/sprite_accessory/body_markings/head/M = GLOB.marking_styles_list[markingstyle]
|
||||
if(!(active_character.species in M.species_allowed))
|
||||
@@ -472,7 +475,7 @@
|
||||
|
||||
valid_markings += markingstyle
|
||||
sortTim(valid_markings, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_marking_style = input(user, "Choose the style of your character's head markings:", "Character Preference", active_character.m_styles["head"]) as null|anything in valid_markings
|
||||
var/new_marking_style = tgui_input_list(user, "Choose the style of your character's head markings:", "Character Preference", valid_markings)
|
||||
if(new_marking_style)
|
||||
active_character.m_styles["head"] = new_marking_style
|
||||
|
||||
@@ -486,7 +489,6 @@
|
||||
if("m_style_body")
|
||||
if(S.bodyflags & HAS_BODY_MARKINGS) //Species with body markings/tattoos.
|
||||
var/list/valid_markings = list()
|
||||
valid_markings["None"] = GLOB.marking_styles_list["None"]
|
||||
for(var/markingstyle in GLOB.marking_styles_list)
|
||||
var/datum/sprite_accessory/M = GLOB.marking_styles_list[markingstyle]
|
||||
if(!(active_character.species in M.species_allowed))
|
||||
@@ -496,7 +498,7 @@
|
||||
|
||||
valid_markings += markingstyle
|
||||
sortTim(valid_markings, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_marking_style = input(user, "Choose the style of your character's body markings:", "Character Preference", active_character.m_styles["body"]) as null|anything in valid_markings
|
||||
var/new_marking_style = tgui_input_list(user, "Choose the style of your character's body markings:", "Character Preference", valid_markings)
|
||||
if(new_marking_style)
|
||||
active_character.m_styles["body"] = new_marking_style
|
||||
|
||||
@@ -510,7 +512,6 @@
|
||||
if("m_style_tail")
|
||||
if(S.bodyflags & HAS_TAIL_MARKINGS) //Species with tail markings.
|
||||
var/list/valid_markings = list()
|
||||
valid_markings["None"] = GLOB.marking_styles_list["None"]
|
||||
for(var/markingstyle in GLOB.marking_styles_list)
|
||||
var/datum/sprite_accessory/body_markings/tail/M = GLOB.marking_styles_list[markingstyle]
|
||||
if(M.marking_location != "tail")
|
||||
@@ -526,7 +527,7 @@
|
||||
|
||||
valid_markings += markingstyle
|
||||
sortTim(valid_markings, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_marking_style = input(user, "Choose the style of your character's tail markings:", "Character Preference", active_character.m_styles["tail"]) as null|anything in valid_markings
|
||||
var/new_marking_style = tgui_input_list(user, "Choose the style of your character's tail markings:", "Character Preference", valid_markings)
|
||||
if(new_marking_style)
|
||||
active_character.m_styles["tail"] = new_marking_style
|
||||
|
||||
@@ -601,7 +602,7 @@
|
||||
if(active_character.species in SA.species_allowed) //If the user's head is of a species the facial hair style allows, add it to the list.
|
||||
valid_facial_hairstyles += facialhairstyle
|
||||
sortTim(valid_facial_hairstyles, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_f_style = input(user, "Choose your character's facial-hair style:", "Character Preference") as null|anything in valid_facial_hairstyles
|
||||
var/new_f_style = tgui_input_list(user, "Choose your character's facial-hair style", "Character Preference", valid_facial_hairstyles)
|
||||
if(new_f_style)
|
||||
active_character.f_style = new_f_style
|
||||
|
||||
@@ -617,7 +618,7 @@
|
||||
continue
|
||||
valid_underwear[underwear] = GLOB.underwear_list[underwear]
|
||||
sortTim(valid_underwear, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_underwear = input(user, "Choose your character's underwear:", "Character Preference") as null|anything in valid_underwear
|
||||
var/new_underwear = tgui_input_list(user, "Choose your character's underwear", "Character Preference", valid_underwear)
|
||||
ShowChoices(user)
|
||||
if(new_underwear)
|
||||
active_character.underwear = new_underwear
|
||||
@@ -633,7 +634,7 @@
|
||||
continue
|
||||
valid_undershirts[undershirt] = GLOB.undershirt_list[undershirt]
|
||||
sortTim(valid_undershirts, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_undershirt = input(user, "Choose your character's undershirt:", "Character Preference") as null|anything in valid_undershirts
|
||||
var/new_undershirt = tgui_input_list(user, "Choose your character's undershirt", "Character Preference", valid_undershirts)
|
||||
ShowChoices(user)
|
||||
if(new_undershirt)
|
||||
active_character.undershirt = new_undershirt
|
||||
@@ -650,7 +651,7 @@
|
||||
continue
|
||||
valid_sockstyles[sockstyle] = GLOB.socks_list[sockstyle]
|
||||
sortTim(valid_sockstyles, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/new_socks = input(user, "Choose your character's socks:", "Character Preference") as null|anything in valid_sockstyles
|
||||
var/new_socks = tgui_input_list(user, "Choose your character's socks", "Character Preference", valid_sockstyles)
|
||||
ShowChoices(user)
|
||||
if(new_socks)
|
||||
active_character.socks = new_socks
|
||||
@@ -691,22 +692,22 @@
|
||||
ooccolor = new_ooccolor
|
||||
|
||||
if("bag")
|
||||
var/new_backbag = input(user, "Choose your character's style of bag:", "Character Preference") as null|anything in GLOB.backbaglist
|
||||
var/new_backbag = tgui_input_list(user, "Choose your character's style of bag", "Character Preference", GLOB.backbaglist)
|
||||
if(new_backbag)
|
||||
active_character.backbag = new_backbag
|
||||
|
||||
if("nt_relation")
|
||||
var/new_relation = input(user, "Choose your relation to NT. Note that this represents what others can find out about your character by researching your background, not what your character actually thinks.", "Character Preference") as null|anything in list("Loyal", "Supportive", "Neutral", "Skeptical", "Opposed")
|
||||
var/new_relation = tgui_input_list(user, "Choose your relation to NT. Note that this represents what others can find out about your character by researching your background, not what your character actually thinks.", "Character Preference", list("Loyal", "Supportive", "Neutral", "Skeptical", "Opposed"))
|
||||
if(new_relation)
|
||||
active_character.nanotrasen_relation = new_relation
|
||||
|
||||
if("physique")
|
||||
var/new_physique = input(user, "Choose your descriptor for how built your character is on glance.", "Character Preference") as null|anything in GLOB.character_physiques
|
||||
var/new_physique = tgui_input_list(user, "Choose your descriptor for how built your character is on glance.", "Character Preference", GLOB.character_physiques)
|
||||
if(new_physique)
|
||||
active_character.physique = new_physique
|
||||
|
||||
if("height")
|
||||
var/new_height = input(user, "Choose your descriptor for how tall your character is on glance.", "Character Preference") as null|anything in GLOB.character_heights
|
||||
var/new_height = tgui_input_list(user, "Choose your descriptor for how tall your character is on glance.", "Character Preference", GLOB.character_heights)
|
||||
if(new_height)
|
||||
active_character.height = new_height
|
||||
|
||||
@@ -723,7 +724,7 @@
|
||||
var/valid_limbs = list("Left Leg", "Right Leg", "Left Arm", "Right Arm", "Left Foot", "Right Foot", "Left Hand", "Right Hand")
|
||||
if(S.bodyflags & ALL_RPARTS)
|
||||
valid_limbs = list("Torso", "Lower Body", "Head", "Left Leg", "Right Leg", "Left Arm", "Right Arm", "Left Foot", "Right Foot", "Left Hand", "Right Hand")
|
||||
var/limb_name = input(user, "Which limb do you want to change?") as null|anything in valid_limbs
|
||||
var/limb_name = tgui_input_list(user, "Which limb do you want to change?", "Limbs and Parts", valid_limbs)
|
||||
if(!limb_name) return
|
||||
|
||||
var/limb = null
|
||||
|
||||
@@ -311,7 +311,7 @@
|
||||
return
|
||||
|
||||
var/list/modes = list("Off", "Binary sensors", "Vitals tracker", "Tracking beacon")
|
||||
var/switchMode = input("Select a sensor mode:", "Suit Sensor Mode", modes[sensor_mode + 1]) in modes
|
||||
var/switchMode = tgui_input_list(user, "Select a sensor mode.", "Suit Sensor Mode", modes)
|
||||
|
||||
if(!user.Adjacent(src))
|
||||
to_chat(user, "<span class='warning'>You have moved too far away!</span>")
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
if(!length(contents))
|
||||
return
|
||||
|
||||
var/obj/item/book/choice = input(user, "Which book would you like to remove from [src]?") as null|anything in contents
|
||||
var/obj/item/book/choice = tgui_input_list(user, "Which book would you like to remove from [src]?", "Bookcase", contents)
|
||||
if(!choice)
|
||||
return
|
||||
if(user.incapacitated() || !Adjacent(user))
|
||||
|
||||
@@ -401,7 +401,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
if(!QDELETED(mind.current)) // Could change while they're choosing
|
||||
mind.current.remove_status_effect(STATUS_EFFECT_REVIVABLE)
|
||||
SEND_SIGNAL(mind.current, COMSIG_LIVING_SET_DNR)
|
||||
|
||||
|
||||
|
||||
/mob/dead/observer/proc/dead_tele()
|
||||
set category = "Ghost"
|
||||
@@ -697,15 +697,22 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
update_sight()
|
||||
to_chat(usr, "You [(ghostvision?"now":"no longer")] have ghost vision.")
|
||||
|
||||
/mob/dead/observer/verb/pick_darkness(desired_dark as num)
|
||||
/mob/dead/observer/verb/pick_darkness()
|
||||
set name = "Pick Darkness"
|
||||
set desc = "Choose how much darkness you want to see, (0 - 255). Higher numbers being darker."
|
||||
set category = "Ghost"
|
||||
if(isnull(desired_dark))
|
||||
return
|
||||
if(!client)
|
||||
return
|
||||
client.prefs.ghost_darkness_level = clamp(desired_dark, 0, 255)
|
||||
var/darkness_level = tgui_input_list(usr, "Choose your darkness.", "Pick Darkness", list("Darkness", "Twilight", "Brightness", "Custom"))
|
||||
switch(darkness_level)
|
||||
if("Darkness")
|
||||
client.prefs.ghost_darkness_level = 255
|
||||
if("Twilight")
|
||||
client.prefs.ghost_darkness_level = 210
|
||||
if("Brightness")
|
||||
client.prefs.ghost_darkness_level = 0
|
||||
if("Custom")
|
||||
client.prefs.ghost_darkness_level = input(usr, "Select a new value (0 - 255). Higher numbers being darker.", "Pick Darkness") as null|num
|
||||
client.prefs.save_preferences(src)
|
||||
lighting_alpha = client.prefs.ghost_darkness_level
|
||||
update_sight()
|
||||
|
||||
@@ -227,7 +227,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist)
|
||||
for(var/obj/machinery/photocopier/faxmachine/F in GLOB.allfaxes)
|
||||
if(F.emagged)//we can contact emagged faxes on the station
|
||||
combineddepartments |= F.department
|
||||
destination = input(usr, "To which department?", "Choose a department", "") as null|anything in combineddepartments
|
||||
destination = tgui_input_list(usr, "To which department?", "Choose a department", combineddepartments)
|
||||
if(!destination)
|
||||
destination = lastdestination
|
||||
if("send") // actually send the fax
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
update_icon()
|
||||
|
||||
/obj/item/pen/multi/proc/select_colour(mob/user as mob)
|
||||
var/newcolour = input(user, "Which colour would you like to use?", name, colour) as null|anything in colour_choices
|
||||
var/newcolour = tgui_input_list(user, "Which colour would you like to use?", name, colour_choices)
|
||||
if(newcolour)
|
||||
colour = newcolour
|
||||
playsound(loc, 'sound/effects/pop.ogg', 50, 1)
|
||||
|
||||
@@ -215,7 +215,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
|
||||
change_size(user)
|
||||
|
||||
/obj/item/camera/proc/change_size(mob/user)
|
||||
var/nsize = input("Photo Size","Pick a size of resulting photo.") as null|anything in list(1,3,5,7)
|
||||
var/nsize = tgui_input_list(user, "Photo Size", "Pick a size of resulting photo.", list(1,3,5,7))
|
||||
if(nsize)
|
||||
size = nsize
|
||||
to_chat(user, "<span class='notice'>Camera will now take [size]x[size] photos.</span>")
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
if(emagged) // Add an 'Unknown' entry at the end if it's emagged
|
||||
L += "**Unknown**"
|
||||
|
||||
var/select = input("Please select a telepad.", "RCS") in L
|
||||
var/select = tgui_input_list(user, "Please select a telepad.", "RCS", L)
|
||||
if(select == "**Unknown**") // Randomise the teleport location
|
||||
pad = random_coords()
|
||||
else // Else choose the value of the selection
|
||||
|
||||
Reference in New Issue
Block a user