Skip to content

Commit

Permalink
Titan Panel Top bar detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Jul 24, 2018
1 parent 7796a25 commit f16195c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Modules/Style_War/Module-Artwork.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ function module:updateOffset()
end
end

TitanBarOrder = {[1] = 'AuxBar2', [2] = 'AuxBar'} -- Bottom 2 Bar names
local TitanTopBar = {[1] = 'Bar2', [2] = 'Bar'} -- Top 2 Bar names
for i = 1, 2 do
if (_G['Titan_Bar__Display_' .. TitanTopBar[i]] and TitanPanelGetVar(TitanTopBar[i] .. '_Show')) then
local PanelScale = TitanPanelGetVar('Scale') or 1
Top = Top + (PanelScale * _G['Titan_Bar__Display_' .. TitanTopBar[i]]:GetHeight())
end
end

local TitanBarOrder = {[1] = 'AuxBar2', [2] = 'AuxBar'} -- Bottom 2 Bar names

for i = 1, 2 do
if (_G['Titan_Bar__Display_' .. TitanBarOrder[i]] and TitanPanelGetVar(TitanBarOrder[i] .. '_Show')) then
Expand Down

0 comments on commit f16195c

Please sign in to comment.