From bdeba89536122f235a59fd3054bedf3d93bc0d53 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sat, 14 Aug 2010 11:09:59 +0200 Subject: [PATCH] forced sell button strata, fixed plus-button in config --- core.lua | 2 +- options.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core.lua b/core.lua index ff2b175..1a63c88 100644 --- a/core.lua +++ b/core.lua @@ -154,7 +154,7 @@ function BrokerGarbage:UpdateRepairButton(...) -- show auto-sell icon on vendor frame if not _G["BrokerGarbage_SellIcon"] then sellIcon = CreateFrame("Button", "BrokerGarbage_SellIcon", MerchantFrame) - -- sellIcon:Raise() -- sellIcon:SetFrameStrata("DIALOG") + sellIcon:SetFrameStrata("DIALOG") -- sellIcon:Raise() sellIcon:SetWidth(36); sellIcon:SetHeight(36) sellIcon:SetNormalTexture("Interface\\Icons\\achievement_bg_returnxflags_def_wsg") sellIcon:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square") diff --git a/options.lua b/options.lua index 00bf7f9..28a7da7 100644 --- a/options.lua +++ b/options.lua @@ -929,14 +929,15 @@ local function ShowListOptions(frame) if type(itemID) ~= "number" then -- this is an item category itemLink = nil button.tiptext = itemID -- category description string + button.itemID = nil texture = "Interface\\Icons\\Trade_engineering" else -- this is an explicit item _, itemLink, _, _, _, _, _, _, _, texture, _ = GetItemInfo(itemID) + button.itemID = itemID button.tiptext = nil end if texture then -- everything's fine - button.itemID = itemID button.itemLink = itemLink button:SetNormalTexture(texture) @@ -960,7 +961,6 @@ local function ShowListOptions(frame) button.tiptext = button.tiptext .. "\n|cffff0000"..BrokerGarbage.locale.LPTNotLoaded end else -- an item the server has not seen - button.itemID = itemID button.tiptext = "ID: "..itemID button:SetNormalTexture("Interface\\Icons\\Inv_misc_questionmark") end @@ -1177,7 +1177,7 @@ local function ShowListOptions(frame) [1] = key } info.func = function(...) - AddItem(BrokerGarbage.menuFrame.clickTarget, key) + AddItem(key) BrokerGarbage:ListOptionsUpdate() end UIDropDownMenu_AddButton(info, level) @@ -1244,7 +1244,7 @@ local function ShowListOptions(frame) -- add action if self == plus then - AddItem(self) + AddItem() -- remove action elseif self == minus then for i, button in ipairs(BrokerGarbage.listButtons) do -- 1.7.9.5