@@ -7,7 +7,7 @@ local next = next
77-- local variables
88local indicators = {} -- indicators marked for update
99local registered = {} -- registered messages
10- local statuses = { playerSpec = {}, groupInstType = {}, instNameID = {} }
10+ local statuses = { playerClassSpec = {}, groupInstType = {}, instNameID = {} }
1111
1212-- local functions
1313local function RegisterMessage (message , enabled )
@@ -22,11 +22,11 @@ local function RegisterMessage(message, enabled)
2222end
2323
2424local function UpdateMessages (status , load )
25- statuses .playerSpec [status ] = load and load .playerSpec ~= nil or nil
25+ statuses .playerClassSpec [status ] = load and load .playerClassSpec ~= nil or nil
2626 statuses .instNameID [status ] = load and load .instNameID ~= nil or nil
2727 statuses .groupInstType [status ] = load and (load .groupType ~= nil or load .instType ~= nil ) or nil
2828 RegisterMessage ( " Grid_GroupTypeChanged" , next (statuses .groupInstType ) )
29- RegisterMessage ( " Grid_PlayerSpecChanged" , next (statuses .playerSpec ) )
29+ RegisterMessage ( " Grid_PlayerSpecChanged" , next (statuses .playerClassSpec ) )
3030 RegisterMessage ( " Grid_ZoneChangedNewArea" , next (statuses .instNameID ) )
3131end
3232
@@ -85,12 +85,17 @@ local function RefreshStatus(self)
8585end
8686
8787local function RefreshStatuses (filterType )
88+ local notify
8889 for status in pairs (statuses [filterType ]) do
8990 if UpdateStatus (status ) then
9091 RegisterIndicators (status )
92+ notify = true
9193 end
9294 end
9395 UpdateIndicators ()
96+ if notify then
97+ Grid2 :SendMessage (" Grid_StatusLoadChanged" )
98+ end
9499end
95100
96101-- message events
@@ -99,7 +104,7 @@ function Grid2:Grid_GroupTypeChanged()
99104end
100105
101106function Grid2 :Grid_PlayerSpecChanged ()
102- RefreshStatuses (' playerSpec ' )
107+ RefreshStatuses (' playerClassSpec ' )
103108end
104109
105110function Grid2 :Grid_ZoneChangedNewArea ()
0 commit comments