From d0e0cdcb583e0b530195c4b48a411efb0298b35c Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 12 Sep 2009 23:22:20 +0200 Subject: [PATCH] Only allow leveled menues if player is leading group/not in a group --- dropdown.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dropdown.lua b/dropdown.lua index 32029a9..2122a15 100644 --- a/dropdown.lua +++ b/dropdown.lua @@ -49,17 +49,17 @@ local function initialize(self, level) if(InGroup()) then wipe(info) info.text = string.format(lootone[GetOptOutOfLoot() and 'ignore' or GetLootMethod()], select(4, GetItemQualityColor(GetLootThreshold()))) - info.value = 'loot' info.notCheckable = 1 - info.hasArrow = 1 + info.value = GroupLeader() and 'loot' + info.hasArrow = GroupLeader() and 1 UIDropDownMenu_AddButton(info, level) end wipe(info) info.text = string.format('Difficulty: %s', UnitInRaid('player') and raid[GetRaidDifficulty()] or party[GetDungeonDifficulty()]) - info.value = 'difficulty' info.notCheckable = 1 - info.hasArrow = 1 + info.value = GroupLeader() and 'difficulty' + info.hasArrow = GroupLeader() and 1 UIDropDownMenu_AddButton(info, level) if(GroupLeader()) then -- 1.7.9.5