fix datum verbs

This commit is contained in:
LetterJay
2017-06-15 10:04:27 -05:00
committed by GitHub
parent 3ba1ea18cf
commit b4b439ce95
+2 -6
View File
@@ -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