There's a bounty for this right? i spent nearly two full days at this
This commit is contained in:
@@ -83,25 +83,25 @@
|
||||
if(extra_classes)
|
||||
classes += extra_classes
|
||||
|
||||
.["class"] = input(src, "What kind of data?", "Variable Type", default_class) as null|anything in classes
|
||||
.["class"] = tgui_input_list(src, "What kind of data?", "Variable Type", classes)
|
||||
if(holder && holder.marked_datum && .["class"] == markstring)
|
||||
.["class"] = VV_MARKED_DATUM
|
||||
|
||||
switch(.["class"])
|
||||
if(VV_TEXT)
|
||||
.["value"] = input("Enter new text:", "Text", current_value) as null|text
|
||||
.["value"] = tgui_input_text(src, "Enter new text:", "Text", current_value)
|
||||
if(.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
if(VV_MESSAGE)
|
||||
.["value"] = input("Enter new text:", "Text", current_value) as null|message
|
||||
.["value"] = tgui_input_message(src, "Enter new text:", "Text", current_value)
|
||||
if(.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
|
||||
|
||||
if(VV_NUM)
|
||||
.["value"] = input("Enter new number:", "Num", current_value) as null|num
|
||||
.["value"] = tgui_input_num(src, "Enter new number:", "Num", current_value)
|
||||
if(.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
@@ -128,7 +128,7 @@
|
||||
var/type = current_value
|
||||
var/error = ""
|
||||
do
|
||||
type = input("Enter type:[error]", "Type", type) as null|text
|
||||
type = tgui_input_text(src, "Enter type:[error]", "Type", type)
|
||||
if(!type)
|
||||
break
|
||||
type = text2path(type)
|
||||
@@ -146,7 +146,7 @@
|
||||
.["class"] = null
|
||||
return
|
||||
var/list/things = vv_reference_list(type, subtypes)
|
||||
var/value = input("Select reference:", "Reference", current_value) as null|anything in things
|
||||
var/value = tgui_input_list(src, "Select reference:", "Reference", things)
|
||||
if(!value)
|
||||
.["class"] = null
|
||||
return
|
||||
@@ -159,7 +159,7 @@
|
||||
.["class"] = null
|
||||
return
|
||||
var/list/things = vv_reference_list(type, subtypes)
|
||||
var/value = input("Select reference:", "Reference", current_value) as null|anything in things
|
||||
var/value = tgui_input_list(src, "Select reference:", "Reference", things)
|
||||
if(!value)
|
||||
.["class"] = null
|
||||
return
|
||||
@@ -172,14 +172,14 @@
|
||||
.["class"] = null
|
||||
return
|
||||
var/list/things = vv_reference_list(type, subtypes)
|
||||
var/value = input("Select reference:", "Reference", current_value) as null|anything in things
|
||||
var/value = tgui_input_list(src, "Select reference:", "Reference", things)
|
||||
if(!value)
|
||||
.["class"] = null
|
||||
return
|
||||
.["value"] = things[value]
|
||||
|
||||
if(VV_CLIENT)
|
||||
.["value"] = input("Select reference:", "Reference", current_value) as null|anything in GLOB.clients
|
||||
.["value"] = tgui_input_list(src, "Select reference:", "Reference", GLOB.clients)
|
||||
if(.["value"] == null)
|
||||
.["class"] = null
|
||||
return
|
||||
@@ -234,7 +234,7 @@
|
||||
var/type = current_value
|
||||
var/error = ""
|
||||
do
|
||||
type = input("Enter type:[error]", "Type", type) as null|text
|
||||
type = tgui_input_text(src, "Enter type:[error]", "Type", type)
|
||||
if(!type)
|
||||
break
|
||||
type = text2path(type)
|
||||
@@ -256,7 +256,7 @@
|
||||
if(VV_TEXT_LOCATE)
|
||||
var/datum/D
|
||||
do
|
||||
var/ref = input("Enter reference:", "Reference") as null|text
|
||||
var/ref = tgui_input_text(src, "Enter reference:", "Reference")
|
||||
if(!ref)
|
||||
break
|
||||
D = locate(ref)
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
names = sortList(names)
|
||||
|
||||
variable = input("Which var?", "Var") as null|anything in names
|
||||
variable = tgui_input_list(src, "Which var?", "Var", names)
|
||||
else
|
||||
variable = var_name
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
value = "null"
|
||||
names["#[i] [key] = [value]"] = i
|
||||
if (!index)
|
||||
var/variable = input("Which var?","Var") as null|anything in names + "(ADD VAR)" + "(CLEAR NULLS)" + "(CLEAR DUPES)" + "(SHUFFLE)"
|
||||
var/variable = tgui_input_list(src, "Which var?","Var",names + "(ADD VAR)" + "(CLEAR NULLS)" + "(CLEAR DUPES)" + "(SHUFFLE)")
|
||||
|
||||
if(variable == null)
|
||||
return
|
||||
@@ -308,7 +308,7 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
|
||||
names = sortList(names)
|
||||
|
||||
variable = input("Which var?","Var") as null|anything in names
|
||||
variable = tgui_input_list(src, "Which var?","Var",names)
|
||||
if(!variable)
|
||||
return
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
var/Text = href_list["adjustDamage"]
|
||||
|
||||
var/amount = input("Deal how much damage to mob? (Negative values here heal)","Adjust [Text]loss",0) as num|null
|
||||
var/amount = tgui_input_num(usr, "Deal how much damage to mob? (Negative values here heal)","Adjust [Text]loss",0)
|
||||
|
||||
if (isnull(amount))
|
||||
return
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
names += componentsubtypes
|
||||
names += "---Elements---"
|
||||
names += sortList(subtypesof(/datum/element), /proc/cmp_typepaths_asc)
|
||||
var/result = input(usr, "Choose a component/element to add","better know what ur fuckin doin pal") as null|anything in names
|
||||
var/result = tgui_input_list(usr, "Choose a component/element to add","better know what ur fuckin doin pal",names)
|
||||
if(!usr || !result || result == "---Components---" || result == "---Elements---")
|
||||
return
|
||||
if(QDELETED(src))
|
||||
|
||||
Reference in New Issue
Block a user