mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
TGUI Input Conversions
This commit is contained in:
@@ -85,19 +85,19 @@
|
||||
|
||||
switch(.["class"])
|
||||
if (VV_TEXT)
|
||||
.["value"] = input(usr, "Enter new text:", "Text", current_value) as null|text
|
||||
.["value"] = tgui_input_text(usr, "Enter new text:", "Text", current_value)
|
||||
if (.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
if (VV_MESSAGE)
|
||||
.["value"] = input(usr, "Enter new text:", "Text", current_value) as null|message
|
||||
.["value"] = tgui_input_text(usr, "Enter new text:", "Text", current_value, multiline = TRUE)
|
||||
if (.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
|
||||
|
||||
if (VV_NUM)
|
||||
.["value"] = input(usr, "Enter new number:", "Num", current_value) as null|num
|
||||
.["value"] = tgui_input_number(usr, "Enter new number:", "Num", current_value)
|
||||
if (.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
@@ -124,7 +124,7 @@
|
||||
var/type = current_value
|
||||
var/error = ""
|
||||
do
|
||||
type = input(usr, "Enter type:[error]", "Type", type) as null|text
|
||||
type = tgui_input_text(usr, "Enter type:[error]", "Type", type)
|
||||
if (!type)
|
||||
break
|
||||
type = text2path(type)
|
||||
@@ -229,7 +229,7 @@
|
||||
var/type = current_value
|
||||
var/error = ""
|
||||
do
|
||||
type = input(usr, "Enter type:[error]", "Type", type) as null|text
|
||||
type = tgui_input_text(usr, "Enter type:[error]", "Type", type)
|
||||
if (!type)
|
||||
break
|
||||
type = text2path(type)
|
||||
|
||||
@@ -475,7 +475,7 @@
|
||||
|
||||
var/Text = href_list["adjustDamage"]
|
||||
|
||||
var/amount = input(usr, "Deal how much damage to mob? (Negative values here heal)","Adjust [Text]loss",0) as num
|
||||
var/amount = tgui_input_number(usr, "Deal how much damage to mob? (Negative values here heal)","Adjust [Text]loss",0)
|
||||
|
||||
if(!L)
|
||||
to_chat(usr, "Mob doesn't exist anymore")
|
||||
|
||||
Reference in New Issue
Block a user