View Single Post
08-29-12, 02:34 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
okay found the problem.

As my brother told me earlier when I mentioned the problem to him. It seems nUI has been informed that when we join a group we are automatically shown as being in raid. Which means nUI is going through the raid group checks to decide which frames to display. Adding the check that there are more than 5 people in the group before switching to raid10 resolves the problem back to how it worked before ...

oooh deja vu effect ... Im sure I've done this all before rofl.


AddOns/nUI/Units/nUI_UnitPanel.lua

Before:
Lua Code:
  1. if unit_info.in_raid then
  2.            
  3.                 -- 5.0.1 Change Start - Function name change
  4.                 -- local size = GetNumRaidMembers();       
  5.                 local size = GetNumGroupMembers();     
  6.                 -- 5.0.1 Change End
  7.                
  8.                 if size > 25 and AutoSwitchPanels["raid40"] then
  9.                     panel_mode = "raid40";
  10.                 elseif size > 20 and AutoSwitchPanels["raid25"] then
  11.                     panel_mode = "raid25";
  12.                 elseif size > 15 and AutoSwitchPanels["raid20"] then
  13.                     panel_mode = "raid20";
  14.                 elseif size > 10 and AutoSwitchPanels["raid15"] then
  15.                     panel_mode = "raid15";
  16.                 elseif AutoSwitchPanels["raid10"] then
  17.                     panel_mode = "raid10";
  18.                 else
  19.                     panel_mode = "party";
  20.                 end
  21.                
  22.             elseif unit_info.in_party then
  23.                 panel_mode = "party";
  24.             end

After:
Lua Code:
  1. if unit_info.in_raid then
  2.            
  3.                 -- 5.0.1 Change Start - Function name change
  4.                 -- local size = GetNumRaidMembers();       
  5.                 local size = GetNumGroupMembers();     
  6.                 -- 5.0.1 Change End
  7.                
  8.                 if size > 25 and AutoSwitchPanels["raid40"] then
  9.                     panel_mode = "raid40";
  10.                 elseif size > 20 and AutoSwitchPanels["raid25"] then
  11.                     panel_mode = "raid25";
  12.                 elseif size > 15 and AutoSwitchPanels["raid20"] then
  13.                     panel_mode = "raid20";
  14.                 elseif size > 10 and AutoSwitchPanels["raid15"] then
  15.                     panel_mode = "raid15";
  16.                 elseif size > 5 and AutoSwitchPanels["raid10"] then
  17.                     panel_mode = "raid10";
  18.                 else
  19.                     panel_mode = "party";
  20.                 end
  21.                
  22.             elseif unit_info.in_party then
  23.                 panel_mode = "party";
  24.             end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 09-01-12 at 04:53 PM.