mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Input Conversion Part 1
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
return
|
||||
|
||||
user.visible_message("<span class='notice'>[user] lifts [src] bottle over [comp]!</span>")
|
||||
var/shuttle_name = input(usr, "Choose a name for the shuttle", "New Shuttle Name") as null|text
|
||||
var/shuttle_name = tgui_input_text(usr, "Choose a name for the shuttle", "New Shuttle Name")
|
||||
if(!shuttle_name || QDELETED(src) || QDELETED(comp) || comp.shuttle_tag || user.incapacitated())
|
||||
return // After input() safety re-checks
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
|
||||
switch(action)
|
||||
if("add")
|
||||
var/datum/computer_file/data/waypoint/R = new()
|
||||
var/sec_name = input(usr, "Input navigation entry name", "New navigation entry", "Sector #[known_sectors.len]") as text
|
||||
var/sec_name = tgui_input_text(usr, "Input navigation entry name", "New navigation entry", "Sector #[known_sectors.len]")
|
||||
if(tgui_status(usr, state) != STATUS_INTERACTIVE)
|
||||
return FALSE
|
||||
if(!sec_name)
|
||||
|
||||
Reference in New Issue
Block a user