Revert "TGUI alerts, lists, inputs"

This commit is contained in:
Letter N
2021-10-28 12:17:29 +08:00
committed by GitHub
parent 853ff1d8ad
commit bcdf96f274
362 changed files with 1149 additions and 1570 deletions
+4 -4
View File
@@ -22,7 +22,7 @@
name = rename_msg
return
else if(user.a_intent == INTENT_GRAB)
var/force_fee_input = tgui_input_num(user,"Set the fee!","Set a fee!",force_fee)
var/force_fee_input = input(user,"Set the fee!","Set a fee!",0) as num|null
if(isnull(force_fee_input) || !user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return
force_fee = force_fee_input
@@ -46,7 +46,7 @@
if(vbucks.registered_account)
var/momsdebitcard = 0
if(!force_fee)
momsdebitcard = tgui_input_num(user, "How much would you like to deposit?", "Money Deposit", force_fee)
momsdebitcard = input(user, "How much would you like to deposit?", "Money Deposit") as null|num
else
momsdebitcard = force_fee
if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
@@ -66,7 +66,7 @@
return
if(istype(W, /obj/item/holochip))
var/obj/item/holochip/H = W
var/cashmoney = tgui_input_num(user, "How much would you like to deposit?", "Money Deposit", force_fee)
var/cashmoney = input(user, "How much would you like to deposit?", "Money Deposit") as null|num
if(H.spend(cashmoney, FALSE))
purchase(user, cashmoney)
to_chat(user, "Thanks for purchasing! The vendor has been informed.")
@@ -89,7 +89,7 @@
to_chat(user, "<span class='warning'>ERROR: No identification card has been assigned to this paystand yet!</span>")
return
if(!signaler)
var/cash_limit = tgui_input_num(user, "Enter the minimum amount of cash needed to deposit before the signaler is activated.", "Signaler Activation Threshold", signaler_threshold)
var/cash_limit = input(user, "Enter the minimum amount of cash needed to deposit before the signaler is activated.", "Signaler Activation Threshold") as null|num
if(cash_limit < 1)
to_chat(user, "<span class='warning'>ERROR: Invalid amount designated.</span>")
return