From f5bf3af10d19aeb40db64ffe61c60c0feb0877bc Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sat, 30 Oct 2010 10:52:04 -0400 Subject: [PATCH] -Updated library for patch 4.0. -Updated addon for patch 4.0 --- libs/LibXMenu-1.0.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/LibXMenu-1.0.lua b/libs/LibXMenu-1.0.lua index 2a0b175..249fc63 100644 --- a/libs/LibXMenu-1.0.lua +++ b/libs/LibXMenu-1.0.lua @@ -42,7 +42,7 @@ --]] -local MAJOR, MINOR = "LibXMenu-1.0", 4 +local MAJOR, MINOR = "LibXMenu-1.0", 5 local lib = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end @@ -121,7 +121,7 @@ end value - menuList value, used in UIDROPDOWNMENU_MENU_VALUE when lvl > 1. --]] -local function AddList(self, lvl, text, value) +local function AddList(self, lvl, text, value, notCheckable) if not lvl then return end if not text then return end if not value then return end @@ -129,6 +129,12 @@ local function AddList(self, lvl, text, value) self.info.value = value self.info.hasArrow = true self.info.func = HideCheck + if notCheckable ~= nil then + self.info.notCheckable = notCheckable + else + self.info.notCheckable = true + end + self.info.notCheckable = notCheckable or true AddButton(self, lvl, text, 1) end @@ -260,6 +266,7 @@ local function AddTitle(self, lvl, text) if not lvl then return end if not text then return end self.info.isTitle = true + self.info.notCheckable = true AddButton(self, lvl, text) end @@ -272,6 +279,7 @@ end local function AddCloseButton(self, lvl, text) if not lvl then return end if not text then return end + self.info.notCheckable = true self.info.func = function() CloseDropDownMenus() end AddButton(self, lvl, text) end -- 1.7.9.5