mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
More optimizing
This commit is contained in:
@@ -46,6 +46,8 @@ var/list/VVpixelmovement = list("step_x", "step_y", "step_size", "bound_height",
|
||||
|
||||
else if(isfile(var_value))
|
||||
. = VV_FILE
|
||||
else if(istype(var_value, /regex))
|
||||
. = VV_REGEX
|
||||
else
|
||||
. = VV_NULL
|
||||
|
||||
@@ -66,6 +68,7 @@ var/list/VVpixelmovement = list("step_x", "step_y", "step_size", "bound_height",
|
||||
VV_DATUM_TYPE,
|
||||
VV_TYPE,
|
||||
VV_MATRIX,
|
||||
VV_REGEX,
|
||||
VV_FILE,
|
||||
VV_NEW_ATOM,
|
||||
VV_NEW_DATUM,
|
||||
@@ -141,6 +144,14 @@ var/list/VVpixelmovement = list("step_x", "step_y", "step_size", "bound_height",
|
||||
.["class"] = null
|
||||
return
|
||||
|
||||
if(VV_REGEX)
|
||||
var/reg = input("Enter regex", "Regex", "") as null|text
|
||||
if(!reg)
|
||||
return
|
||||
.["value"] = regex(reg)
|
||||
if(.["value"] == null)
|
||||
.["class"] = null
|
||||
|
||||
|
||||
if(VV_ATOM_REFERENCE)
|
||||
var/type = pick_closest_path(FALSE)
|
||||
|
||||
Reference in New Issue
Block a user