mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
HAWT
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
var_edited = TRUE
|
||||
vars[var_name] = var_value
|
||||
|
||||
. = TRUE
|
||||
|
||||
|
||||
/client/proc/vv_edit_var(var_name, var_value) //called whenever a var is edited
|
||||
switch(var_name)
|
||||
if("vars")
|
||||
@@ -27,6 +30,8 @@
|
||||
var_edited = TRUE
|
||||
vars[var_name] = var_value
|
||||
|
||||
. = TRUE
|
||||
|
||||
/datum/proc/vv_get_var(var_name)
|
||||
switch(var_name)
|
||||
if("vars")
|
||||
@@ -458,15 +463,15 @@
|
||||
#else
|
||||
item = "[name] = /icon (<span class='value'>[value]</span>)"
|
||||
#endif
|
||||
|
||||
|
||||
else if(istype(value, /image))
|
||||
var/image/I = value
|
||||
#ifdef VARSICON
|
||||
item = "<a href='?_src_=vars;Vars=[I.UID()]'>[name] \ref[value]</a> = /image (<span class='value'>[value]</span>) [bicon(value, use_class=0)]"
|
||||
#else
|
||||
item = "<a href='?_src_=vars;Vars=[I.UID()]'>[name] \ref[value]</a> = /image (<span class='value'>[value]</span>)"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
else if(isfile(value))
|
||||
item = "[VV_HTML_ENCODE(name)] = <span class='value'>'[value]'</span>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user