Thread Tools Display Modes
02-05-19, 07:26 AM   #1
Lukas 45
A Murloc Raider
Join Date: Feb 2011
Posts: 7
Exclamation [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:
  1. -- Solo - Adjust w/pets
  2.     if groupType == "solo" then
  3.         isHoriz = LayoutDB.hGroups.normal
  4.         if LayoutDB.showSolo then
  5.             self:debug("Show frames")
  6.             if _G.UnitExists("pet") and LayoutDB.showPet then
  7.                 self:debug("with pets")
  8.                 NewLayout = "By Group w/Pets"
  9.             else
  10.                 NewLayout = "By Group"
  11.             end
  12.         else
  13.             self:debug("Don't show frames")
  14.             NewLayout = "None"
  15.         end
  16.     -- Party - Adjust w/pets
  17.     elseif (groupType == "party") then
  18.         isHoriz = LayoutDB.hGroups.normal
  19.         local HasPet = _G.UnitExists("pet") or _G.UnitExists("partypet1") or _G.UnitExists("partypet2") or _G.UnitExists("partypet3") or _G.UnitExists("partypet4")
  20.         if HasPet and LayoutDB.showPet then
  21.             self:debug("Show pets")
  22.             NewLayout = "By Group w/Pets"
  23.         else
  24.             self:debug("Don't show pets")
  25.             NewLayout = "By Group"
  26.         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"

Last edited by Lukas 45 : 02-05-19 at 06:15 PM.
  Reply With Quote

WoWInterface » Featured Projects » RealUI » [Half-broken, with fix] Grid layout names has changed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off