View Single Post
08-09-20, 03:54 AM   #7
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
I dont use Pitbull but I see that it has a modular setup.
Looking at the code I'd guess it is created on startup. But only when the group is enabled (dont know what that means in this context).

In the Main.lua the function OnProfileChanged calls MakeGroupHeader which is located in GroupHeader.lua . So my guess would be that the group 'party' is not enabled when you try to access it.
Lua Code:
  1. function PitBull4:OnProfileChanged()
  2. ...
  3.     for group, group_db in pairs(db.profile.groups) do
  4.         if group_db.enabled then
  5.             self:MakeGroupHeader(group)
  6.             for header in PitBull4:IterateHeadersForName(group) do
  7.                 header.group_db = group_db
  8.                 header:RefreshGroup()
  9.                 header:UpdateShownState()
  10.             end
  11.         end
  12.     end
  13. ...
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote