Lukas 45 |
02-05-19 07:26 AM |
[Half-broken, with fix] Grid layout names has changed
If you update your addons reguarly, Grid2 will stop working properly, due to a change in layout names.
In the file AddOns\nibRealUI\Modules\GridLayout.lua, from line 54 to 79, it should look like this:
Lua Code:
-- Solo - Adjust w/pets if groupType == "solo" then isHoriz = LayoutDB.hGroups.normal if LayoutDB.showSolo then self:debug("Show frames") if _G.UnitExists("pet") and LayoutDB.showPet then self:debug("with pets") NewLayout = "By Group w/Pets" else NewLayout = "By Group" end else self:debug("Don't show frames") NewLayout = "None" end -- Party - Adjust w/pets elseif (groupType == "party") then isHoriz = LayoutDB.hGroups.normal local HasPet = _G.UnitExists("pet") or _G.UnitExists("partypet1") or _G.UnitExists("partypet2") or _G.UnitExists("partypet3") or _G.UnitExists("partypet4") if HasPet and LayoutDB.showPet then self:debug("Show pets") NewLayout = "By Group w/Pets" else self:debug("Don't show pets") NewLayout = "By Group" end
What was changed?
NewLayout = "Solo" to NewLayout = "By Group"
NewLayout = "Solo w/Pets" to NewLayout = "By Group w/Pets"
NewLayout = "Party" to NewLayout = "By Group"
NewLayout = "Party w/Pets" to NewLayout = "By Group w/Pets"
|