Commit 359d2fda authored by Ivaria's avatar Ivaria
Browse files

Fixed visibility of empty panels containing only target/focus models

parent b5abe1f0
......@@ -77,9 +77,15 @@ local function VUHDO_hasPanelVisibleButtons(aPanelNum)
else
for _, tButton in pairs(VUHDO_getPanelButtons(aPanelNum)) do
tUnit = tButton:GetAttribute("unit");
if not tUnit then return false;
elseif UnitExists(tUnit) then return true; end
if not tUnit then
return false;
elseif UnitExists(tUnit) then
return true;
end
end
return false;
end
end
......
......@@ -110,6 +110,14 @@ function VUHDO_isPanelVisible(aPanelNum)
return true;
end
if VUHDO_isModelInPanel(aPanelNum, 82) then -- VUHDO_ID_TARGET
return true;
end
if VUHDO_isModelInPanel(aPanelNum, 83) then -- VUHDO_ID_FOCUS
return true;
end
if VUHDO_isModelInPanel(aPanelNum, 44) then -- VUHDO_ID_BOSSES
return true;
end
......
......@@ -13,6 +13,7 @@ Known issues:
Bugfixes:
-- Fixed visibility of empty panels containing only target/focus models
Improvements:
......
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