mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
The One Where I Port Modals
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
/obj/item/weapon/mining_scanner/advanced/verb/change_size()
|
||||
set name = "Set Scanner Range"
|
||||
set category = "Object"
|
||||
var/custom_range = input("Scanner Range","Pick a range to scan. ") as null|anything in list(0,1,2,3,4,5,6,7)
|
||||
var/custom_range = tgui_input_list(usr, "Scanner Range","Pick a range to scan. ", list(0,1,2,3,4,5,6,7))
|
||||
if(custom_range)
|
||||
range = custom_range
|
||||
to_chat(usr, "<span class='notice'>Scanner will now look up to [range] tile(s) away.</span>")
|
||||
@@ -30,7 +30,7 @@ var/global/list/total_extraction_beacons = list()
|
||||
else
|
||||
var/A
|
||||
|
||||
A = input("Select a beacon to connect to", "Balloon Extraction Pack", A) as null|anything in possible_beacons
|
||||
A = tgui_input_list(usr, "Select a beacon to connect to", "Balloon Extraction Pack", possible_beacons)
|
||||
|
||||
if(!A)
|
||||
return
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
var/ore = params["ore"]
|
||||
var/new_setting = params["set"]
|
||||
if(new_setting == null)
|
||||
new_setting = input("What setting do you wish to use for processing [ore]]?") as null|anything in list("Smelting","Compressing","Alloying","Nothing")
|
||||
new_setting = tgui_input_list(usr, "What setting do you wish to use for processing [ore]]?", "Process Setting", list("Smelting","Compressing","Alloying","Nothing"))
|
||||
if(!new_setting)
|
||||
return
|
||||
switch(new_setting)
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
* * redeemer - The person holding it
|
||||
*/
|
||||
/obj/machinery/mineral/equipment_vendor/proc/redeem_voucher(obj/item/mining_voucher/voucher, mob/redeemer)
|
||||
var/selection = input(redeemer, "Pick your equipment", "Mining Voucher Redemption") as null|anything in list("Kinetic Accelerator", "Resonator", "Mining Drone", "Advanced Scanner", "Crusher")
|
||||
var/selection = tgui_input_list(redeemer, "Pick your equipment", "Mining Voucher Redemption", list("Kinetic Accelerator", "Resonator", "Mining Drone", "Advanced Scanner", "Crusher"))
|
||||
if(!selection || !Adjacent(redeemer) || voucher.loc != redeemer)
|
||||
return
|
||||
//VOREStation Edit Start - Uncommented these
|
||||
|
||||
Reference in New Issue
Block a user