some progress with the new UI

This commit is contained in:
Manuel Simon Hirsig
2015-10-23 02:16:08 +02:00
parent df04b4ec28
commit 7c7b14c246
4 changed files with 779 additions and 563 deletions
+23 -3
View File
@@ -84,7 +84,12 @@ function Aux_OnAddonLoaded()
Aux.tabs.buy.hiddenElements = {
-- AuctionFrameBrowse,
}
}
Aux.buy.elements = {
AuxBuyFilters,
AuxBuySheetFrame,
}
Aux.tabs.sell.recommendationElements = {
AuxRecommendText,
@@ -99,6 +104,7 @@ function Aux_OnAddonLoaded()
end
function Aux.log_frame_load()
this:SetFading(false)
this:EnableMouseWheel()
-- this.flashTimer = 0 TODO remove
end
@@ -141,8 +147,8 @@ end
function Aux.log(msg)
local info = ChatTypeInfo["SYSTEM"]
AuxLogFrame:AddMessage(msg, 1, 1, 0)
if not AuxLogFrame:IsVisible() and DEFAULT_CHAT_FRAME then
AuxLogFrameMessageFrame:AddMessage(msg, 1, 1, 0)
if not AuxLogFrameMessageFrame:IsVisible() and DEFAULT_CHAT_FRAME then
DEFAULT_CHAT_FRAME:AddMessage(msg, 1, 1, 0)
end
end
@@ -241,6 +247,20 @@ function Aux_OnAuctionHouseClosed()
end
function Aux.on_tab_click(button)
for i=1,4 do
getglobal('AuxTab'..i):SetAlpha(i == this:GetID() and 1 or 0.5)
end
Aux_HideElems(Aux.buy.elements)
AuxSellPanel:Hide()
if this:GetID() == 1 then
Aux_ShowElems(Aux.buy.elements)
end
end
function Aux_AuctionFrameTab_OnClick(index)
if not index then