Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Mar 21, 2022
1 parent 33c4115 commit c25974f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Libs/DF/auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function DF:LoadAllSpells (hashMap, indexTable, allSpellsSameName)

DF.LoadingAuraAlertFrame:Show()

C_Timer.After (0.1, function()
C_Timer.After (0, function()
if (hashMap and not indexTable) then
for i = 1, CONST_MAX_SPELLS do
local spellName = GetSpellInfo (i)
Expand Down
2 changes: 1 addition & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 292
local dversion = 294
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)

Expand Down
9 changes: 7 additions & 2 deletions Libs/DF/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3972,6 +3972,10 @@ DF.TabContainerFunctions.SelectIndex = function (self, fixedParam, menuIndex)
mainFrame.AllButtons[menuIndex].selectedUnderlineGlow:Show()
end
mainFrame.CurrentIndex = menuIndex

if (mainFrame.hookList.OnSelectIndex) then
DF:QuickDispatch(mainFrame.hookList.OnSelectIndex, mainFrame, mainFrame.AllButtons[menuIndex])
end
end

DF.TabContainerFunctions.SetIndex = function (self, index)
Expand All @@ -3983,7 +3987,7 @@ local tab_container_on_show = function (self)
self.SelectIndex (self.AllButtons[index], nil, index)
end

function DF:CreateTabContainer (parent, title, frame_name, frameList, options_table)
function DF:CreateTabContainer (parent, title, frame_name, frameList, options_table, hookList)

local options_text_template = DF:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE")
local options_dropdown_template = DF:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE")
Expand All @@ -4004,6 +4008,7 @@ function DF:CreateTabContainer (parent, title, frame_name, frameList, options_ta
local mainFrame = CreateFrame ("frame", frame_name, parent.widget or parent, "BackdropTemplate")
mainFrame:SetAllPoints()
DF:Mixin (mainFrame, DF.TabContainerFunctions)
mainFrame.hookList = hookList

local mainTitle = DF:CreateLabel (mainFrame, title, 24, "white")
mainTitle:SetPoint ("topleft", mainFrame, "topleft", 10, -30 + y_offset)
Expand Down Expand Up @@ -4032,7 +4037,7 @@ function DF:CreateTabContainer (parent, title, frame_name, frameList, options_ta
local title = DF:CreateLabel (f, frame.title, 16, "silver")
title:SetPoint ("topleft", mainTitle, "bottomleft", 0, 0)

local tabButton = DF:CreateButton (mainFrame, DF.TabContainerFunctions.SelectIndex, button_width, button_height, frame.title, i, nil, nil, nil, nil, false, button_tab_template)
local tabButton = DF:CreateButton (mainFrame, DF.TabContainerFunctions.SelectIndex, button_width, button_height, frame.title, i, nil, nil, nil, "$parentTabButton" .. frame.name, false, button_tab_template)
PixelUtil.SetSize (tabButton, button_width, button_height)
tabButton:SetFrameLevel (220)
tabButton.textsize = button_text_size
Expand Down
6 changes: 3 additions & 3 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

local version, build, date, tocversion = GetBuildInfo()

_detalhes.build_counter = 9720
_detalhes.alpha_build_counter = 9720 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 9721
_detalhes.alpha_build_counter = 9721 --if this is higher than the regular counter, use it instead
_detalhes.bcc_counter = 31
_detalhes.dont_open_news = true
_detalhes.game_version = version
Expand Down Expand Up @@ -424,7 +424,7 @@ do
_detalhes.playerdetailwindow_skins = {}

_detalhes.BitfieldSwapDebuffsIDs = {265646, 272407, 269691, 273401, 269131, 260900, 260926, 284995, 292826, 311367, 310567, 308996, 307832, 327414, 337253,
36797, 37122}
36797, 37122, 362397}

--> auto run code
_detalhes.RunCodeTypes = {
Expand Down

0 comments on commit c25974f

Please sign in to comment.