mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
TGUI input box conversions 1 (#63313)
This commit is contained in:
@@ -188,14 +188,14 @@ SUBSYSTEM_DEF(vote)
|
||||
for(var/valid_map in maps)
|
||||
choices.Add(valid_map)
|
||||
if("custom")
|
||||
question = stripped_input(usr,"What is the vote for?")
|
||||
question = tgui_input_text(usr, "What is the vote for?", "Custom Vote")
|
||||
if(!question)
|
||||
return FALSE
|
||||
for(var/i in 1 to 10)
|
||||
var/option = capitalize(stripped_input(usr,"Please enter an option or hit cancel to finish"))
|
||||
var/option = tgui_input_text(usr, "Please enter an option or hit cancel to finish", "Options", max_length = MAX_NAME_LEN)
|
||||
if(!option || mode || !usr.client)
|
||||
break
|
||||
choices.Add(option)
|
||||
choices.Add(capitalize(option))
|
||||
else
|
||||
return FALSE
|
||||
mode = vote_type
|
||||
|
||||
Reference in New Issue
Block a user