fix datum verbs
This commit is contained in:
+2
-6
@@ -15,12 +15,7 @@ GLOBAL_LIST_EMPTY(menulist)
|
||||
|
||||
/datum/verbs/menu/GetList()
|
||||
return GLOB.menulist
|
||||
|
||||
/datum/verbs/menu/Generate_list()
|
||||
. = ..()
|
||||
for(var/I in .)
|
||||
.[I] = list2params(.[I])
|
||||
|
||||
|
||||
/datum/verbs/menu/HandleVerb(list/entry, verbpath, client/C)
|
||||
var/datum/verbs/menu/verb_true_parent = GLOB.menulist[verblist[verbpath]]
|
||||
var/true_checkbox = verb_true_parent.checkbox
|
||||
@@ -37,6 +32,7 @@ GLOBAL_LIST_EMPTY(menulist)
|
||||
entry["command"] = ".updatemenuchecked \"[verb_true_parent.type]\" \"[verbpath]\"\n[entry["command"]]"
|
||||
entry["can-check"] = TRUE
|
||||
entry["group"] = "[verb_true_parent.type]"
|
||||
return list2params(entry)
|
||||
|
||||
/datum/verbs/menu/proc/Get_checked(client/C)
|
||||
return C.prefs.menuoptions[type] || default || FALSE
|
||||
|
||||
Reference in New Issue
Block a user