Commit a15c6404 authored by Tukz's avatar Tukz
Browse files

Update for 8.1.

parent dfdfec9f
......@@ -63,9 +63,11 @@ function TukuiActionBars:DisableBlizzard()
return true
end
-- Avoid Hiding Buttons on open/close spellbook
MultiActionBar_HideAllGrids = function() end
MultiActionBar_ShowAllGrids = function() end
if T.WoWBuild < 28724 then
-- Avoid Hiding Buttons on open/close spellbook
MultiActionBar_HideAllGrids = function() end
MultiActionBar_ShowAllGrids = function() end
end
ActionBarButtonEventsFrame:UnregisterEvent("ACTIONBAR_HIDEGRID")
end
......@@ -73,36 +75,41 @@ end
function TukuiActionBars:ShowGrid()
for i = 1, NUM_ACTIONBAR_BUTTONS do
local Button
local Reason = nil
if T.WoWBuild >= 28724 then
Reason = ACTION_BUTTON_SHOW_GRID_REASON_EVENT
end
Button = _G[format("ActionButton%d", i)]
Button:SetAttribute("showgrid", 1)
Button:SetAttribute("statehidden", true)
Button:Show()
ActionButton_ShowGrid(Button)
ActionButton_ShowGrid(Button, Reason)
Button = _G[format("MultiBarRightButton%d", i)]
Button:SetAttribute("showgrid", 1)
Button:SetAttribute("statehidden", true)
Button:Show()
ActionButton_ShowGrid(Button)
ActionButton_ShowGrid(Button, Reason)
Button = _G[format("MultiBarBottomRightButton%d", i)]
Button:SetAttribute("showgrid", 1)
Button:SetAttribute("statehidden", true)
Button:Show()
ActionButton_ShowGrid(Button)
ActionButton_ShowGrid(Button, Reason)
Button = _G[format("MultiBarLeftButton%d", i)]
Button:SetAttribute("showgrid", 1)
Button:SetAttribute("statehidden", true)
Button:Show()
ActionButton_ShowGrid(Button)
ActionButton_ShowGrid(Button, Reason)
Button = _G[format("MultiBarBottomLeftButton%d", i)]
Button:SetAttribute("showgrid", 1)
Button:SetAttribute("statehidden", true)
Button:Show()
ActionButton_ShowGrid(Button)
ActionButton_ShowGrid(Button, Reason)
end
end
......
......@@ -484,7 +484,10 @@ function Bags:CreateContainer(storagetype, ...)
for i = 1, 7 do
local Bag = BankSlotsFrame["Bag"..i]
Bag.HighlightFrame:Kill() -- Bugged Texture on Bank Bag Slot
if T.WoWBuild < 28724 then
Bag.HighlightFrame:Kill() -- Bugged Texture on Bank Bag Slot
end
Bag:SetParent(BankBagsContainer)
Bag:SetWidth(ButtonSize)
......
......@@ -518,7 +518,12 @@ function ObjectiveTracker:AddHooks()
hooksecurefunc("QuestPOI_GetButton", self.SkinPOI)
hooksecurefunc("QuestPOI_SelectButton", self.SelectPOI)
hooksecurefunc("BonusObjectiveTracker_AnimateReward", self.SkinRewards)
hooksecurefunc("WorldMap_SetupWorldQuestButton", self.SkinWorldQuestsPOI)
if T.WoWBuild < 28724 then
hooksecurefunc("WorldMap_SetupWorldQuestButton", self.SkinWorldQuestsPOI)
else
hooksecurefunc(QuestUtil, "SetupWorldQuestButton", self.SkinWorldQuestsPOI)
end
-- Currently there is display a bug with this hook
-- hooksecurefunc(QUEST_TRACKER_MODULE, "Update", self.ShowObjectiveTrackerLevel)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment