TGUI input box conversions 1 (#63313)

This commit is contained in:
Jeremiah
2021-12-11 14:21:35 -08:00
committed by GitHub
parent f6d15afaa1
commit 1052bc19ed
32 changed files with 81 additions and 79 deletions

View File

@@ -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