mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Adds sorting to most input() lists (#47117)
* Adds sorting to most input() lists. * Sorted some global lists, added more input sorting * Should now use correct sort everywhere. * compiles * Last fixes.
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
|
||||
|
||||
/obj/structure/sign/barsign/proc/pick_sign(mob/user)
|
||||
var/picked_name = input(user, "Available Signage", "Bar Sign", name) as null|anything in get_bar_names()
|
||||
var/picked_name = input(user, "Available Signage", "Bar Sign", name) as null|anything in sortList(get_bar_names())
|
||||
if(!picked_name)
|
||||
return
|
||||
chosen_sign = set_sign_by_name(picked_name)
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
var/datum/species/S = speciestype
|
||||
if(initial(S.changesource_flags) & MIRROR_MAGIC)
|
||||
choosable_races += initial(S.id)
|
||||
choosable_races = sortList(choosable_races)
|
||||
..()
|
||||
|
||||
/obj/structure/mirror/magic/lesser/New()
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
var/list/sign_types = list("Secure Area", "Biohazard", "High Voltage", "Radiation", "Hard Vacuum Ahead", "Disposal: Leads To Space", "Danger: Fire", "No Smoking", "Medbay", "Science", "Chemistry", \
|
||||
"Hydroponics", "Xenobiology")
|
||||
var/obj/structure/sign/sign_type
|
||||
switch(input(user, "Select a sign type.", "Sign Customization") as null|anything in sign_types)
|
||||
switch(input(user, "Select a sign type.", "Sign Customization") as null|anything in sortList(sign_types))
|
||||
if("Blank")
|
||||
sign_type = /obj/structure/sign/basic
|
||||
if("Secure Area")
|
||||
|
||||
Reference in New Issue
Block a user