fixed fuzzy match bug and removed browse tab

This commit is contained in:
Manuel Simon Hirsig
2015-10-07 21:07:39 +02:00
parent 27faf026bd
commit 3d38b9085e
2 changed files with 7 additions and 15 deletions
+4 -12
View File
@@ -12,7 +12,7 @@ Aux = {
index = 4
},
buy = {
index = 5
index = 1
}
},
last_picked_up = {},
@@ -75,6 +75,7 @@ function Aux_OnAddonLoaded()
}
Aux.tabs.buy.hiddenElements = {
AuctionFrameBrowse,
BidTitle,
BidScrollFrame,
BidButton1,
@@ -187,7 +188,7 @@ function Aux_OnAuctionHouseShow()
if AUX_OPEN_SELL then
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
elseif AUX_OPEN_BUY then
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
-- AuctionFrameTab_OnClick(Aux.tabs.buy.index)
end
end
@@ -297,28 +298,19 @@ end
function Aux_AddTabs()
Aux.tabs.sell.index = AuctionFrame.numTabs + 1
Aux.tabs.buy.index = AuctionFrame.numTabs + 2
local sellTabName = "AuctionFrameTab"..Aux.tabs.sell.index
local buyTabName = "AuctionFrameTab"..Aux.tabs.buy.index
local sellTab = CreateFrame("Button", sellTabName, AuctionFrame, "AuctionTabTemplate")
local buyTab = CreateFrame("Button", buyTabName, AuctionFrame, "AuctionTabTemplate")
setglobal(sellTabName, sellTab)
setglobal(buyTabName, buyTab)
sellTab:SetID(Aux.tabs.sell.index)
sellTab:SetText("Sell")
sellTab:SetPoint("LEFT", getglobal("AuctionFrameTab"..AuctionFrame.numTabs), "RIGHT", -8, 0)
buyTab:SetID(Aux.tabs.buy.index)
buyTab:SetText("Buy")
buyTab:SetPoint("LEFT", getglobal("AuctionFrameTab"..Aux.tabs.sell.index), "RIGHT", -8, 0)
PanelTemplates_SetNumTabs(AuctionFrame, Aux.tabs.buy.index)
PanelTemplates_SetNumTabs(AuctionFrame, Aux.tabs.sell.index)
PanelTemplates_EnableTab(AuctionFrame, Aux.tabs.sell.index)
PanelTemplates_EnableTab(AuctionFrame, Aux.tabs.buy.index)
end
-----------------------------------------