TGUI list input conversions (#63315)

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
Co-authored-by: Sealed101 <75863639+Sealed101@users.noreply.github.com>
This commit is contained in:
Jeremiah
2021-12-10 02:20:01 -08:00
committed by GitHub
co-authored by tralezab Sealed101
parent 78cc356987
commit 60922e7cfc
30 changed files with 49 additions and 46 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ INITIALIZE_IMMEDIATE(/mob/dead)
if(1)
pick = csa[1]
else
pick = input(src, "Pick a server to jump to", "Server Hop") as null|anything in csa
pick = tgui_input_list(src, "Server to jump to", "Server Hop", csa)
if(!pick)
return
+5 -5
View File
@@ -439,7 +439,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/area/A = V
if(!(A.area_flags & HIDDEN_AREA))
filtered += A
var/area/thearea = input("Area to jump to", "BOOYEA") as null|anything in filtered
var/area/thearea = tgui_input_list(usr, "Area to jump to", "BOOYEA", filtered)
if(!thearea)
return
@@ -509,7 +509,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/list/possible_destinations = SSpoints_of_interest.get_mob_pois()
var/target = null
target = input("Please, select a player!", "Jump to Mob", null, null) as null|anything in possible_destinations
target = tgui_input_list(usr, "Please, select a player!", "Jump to Mob", possible_destinations)
if (!target || !isobserver(usr))
return
@@ -543,7 +543,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/list/views = list()
for(var/i in 7 to max_view)
views |= i
var/new_view = input("Choose your new view", "Modify view range", 0) as null|anything in views
var/new_view = tgui_input_list(usr, "New view", "Modify view range", views)
if(new_view)
client.view_size.setTo(clamp(new_view, 7, max_view) - 7)
else
@@ -649,7 +649,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!(L in GLOB.player_list) && !L.mind)
possessible += L
var/mob/living/target = input("Your new life begins today!", "Possess Mob", null, null) as null|anything in sort_names(possessible)
var/mob/living/target = tgui_input_list(usr, "Your new life begins today!", "Possess Mob", sort_names(possessible))
if(!target)
return FALSE
@@ -878,7 +878,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/list/possible_destinations = SSpoints_of_interest.get_mob_pois()
var/target = null
target = input("Please, select a player!", "Jump to Mob", null, null) as null|anything in possible_destinations
target = tgui_input_list(usr, "Please, select a player!", "Jump to Mob", possible_destinations)
if (!target || !isobserver(usr))
return