@@ -23,8 +23,8 @@ function Details222.StartUp.StartMeUp()
23
23
return Details .AddOnStartTime or GetTime ()
24
24
end
25
25
26
+ -- load custom spells on login
26
27
C_Timer .After (3 , function ()
27
- -- load custom spells on login
28
28
Details :FillUserCustomSpells ()
29
29
end )
30
30
@@ -143,7 +143,8 @@ function Details222.StartUp.StartMeUp()
143
143
return
144
144
end
145
145
Details .scheduled_window_update = nil
146
- Details :RefreshMainWindow (- 1 , true )
146
+ local bForceRefresh = true
147
+ Details :RefreshMainWindow (- 1 , bForceRefresh )
147
148
end
148
149
149
150
function Details :ScheduleWindowUpdate (time , bIsForced )
@@ -154,7 +155,8 @@ function Details222.StartUp.StartMeUp()
154
155
Details .scheduled_window_update = Details .Schedules .NewTimer (time or 1 , Details .ScheduledWindowUpdate , Details , bIsForced )
155
156
end
156
157
157
- Details :RefreshMainWindow (- 1 , true )
158
+ local bForceRefresh = true
159
+ Details :RefreshMainWindow (- 1 , bForceRefresh )
158
160
Details :RefreshUpdater ()
159
161
160
162
for instanceId = 1 , Details :GetNumInstances () do
@@ -183,7 +185,7 @@ function Details222.StartUp.StartMeUp()
183
185
local refreshAllInstances = - 1
184
186
local forceRefresh = true
185
187
Details :RefreshMainWindow (refreshAllInstances , forceRefresh )
186
- local lowerInstance = Details :GetLowerInstanceNumber ()
188
+ local lowerInstanceId = Details :GetLowerInstanceNumber ()
187
189
188
190
for id = 1 , Details :GetNumInstances () do
189
191
local instance = Details :GetInstance (id )
@@ -201,7 +203,7 @@ function Details222.StartUp.StartMeUp()
201
203
end
202
204
203
205
-- refresh desaturated icons if is lower instance because plugins shall have installed their icons at this point
204
- if (id == lowerInstance ) then
206
+ if (id == lowerInstanceId ) then
205
207
instance :DesaturateMenu ()
206
208
instance :SetAutoHideMenu (nil , nil , true )
207
209
end
@@ -212,8 +214,8 @@ function Details222.StartUp.StartMeUp()
212
214
Details .ToolBar :ReorganizeIcons ()
213
215
214
216
-- refresh skin for other windows
215
- if (lowerInstance ) then
216
- for instanceId = lowerInstance + 1 , Details :GetNumInstances () do
217
+ if (lowerInstanceId ) then
218
+ for instanceId = lowerInstanceId + 1 , Details :GetNumInstances () do
217
219
local instance = Details :GetInstance (instanceId )
218
220
if (instance and instance .baseframe and instance .ativa ) then
219
221
instance :ChangeSkin ()
@@ -230,8 +232,8 @@ function Details222.StartUp.StartMeUp()
230
232
Details .Schedules .NewTimer (5 , Details .CheckWallpaperAfterStartup , Details )
231
233
end
232
234
233
- for id = 1 , Details .instances_amount do
234
- local instance = Details :GetInstance (id )
235
+ for instanceId = 1 , Details .instances_amount do
236
+ local instance = Details :GetInstance (instanceId )
235
237
if (instance and instance :IsEnabled ()) then
236
238
if (not instance .wallpaper .enabled ) then
237
239
instance :InstanceWallpaper (false )
@@ -312,17 +314,17 @@ function Details222.StartUp.StartMeUp()
312
314
-- scan pets
313
315
Details :SchedulePetUpdate (1 )
314
316
315
- -- send messages gathered on initialization
317
+ -- send messages gathered on initialization, these messages contain warnings and errors
316
318
Details .Schedules .NewTimer (10 , Details .ShowDelayMsg , Details )
317
319
318
- -- send instance open signal
320
+ -- send instance open event for each instance opened
319
321
for id , instancia in Details :ListInstances () do
320
322
if (instancia .ativa ) then
321
323
Details :SendEvent (" DETAILS_INSTANCE_OPEN" , nil , instancia )
322
324
end
323
325
end
324
326
325
- -- send details startup done signal
327
+ -- send details startup done event, this signal that details is ready to work
326
328
function Details :AnnounceStartup ()
327
329
Details :SendEvent (" DETAILS_STARTED" , " SEND_TO_ALL" )
328
330
@@ -344,7 +346,7 @@ function Details222.StartUp.StartMeUp()
344
346
Details .failed_to_load = nil
345
347
end
346
348
347
- -- announce alpha version
349
+ -- display the version right after the startup, this will fade out after a few seconds
348
350
function Details :AnnounceVersion ()
349
351
for index , instancia in Details :ListInstances () do
350
352
if (instancia .ativa ) then
@@ -356,7 +358,7 @@ function Details222.StartUp.StartMeUp()
356
358
-- check version
357
359
Details :CheckVersion (true )
358
360
359
- -- restore cooltip anchor position, this is for the custom anchor in the screen
361
+ -- restore cooltip anchor position, this is for the custom anchor in the screen set in the tooltip options
360
362
DetailsTooltipAnchor :Restore ()
361
363
362
364
-- check is this is the first run ever
@@ -423,6 +425,17 @@ function Details222.StartUp.StartMeUp()
423
425
Details :AddDefaultCustomDisplays ()
424
426
end
425
427
428
+ if (C_AddOns ) then
429
+ hooksecurefunc (C_AddOns , " LoadAddOn" , function (addOnName )
430
+ if (addOnName == " Blizzard_GarrisonUI" ) then
431
+ GarrisonMissionTutorialFrame :HookScript (" OnShow" , function (self )
432
+ GarrisonMissionTutorialFrame :Hide ()
433
+ end )
434
+ GarrisonMissionTutorialFrame :Hide ()
435
+ end
436
+ end )
437
+ end
438
+
426
439
local lowerInstanceId = Details :GetLowerInstanceNumber ()
427
440
if (lowerInstanceId ) then
428
441
local instance = Details :GetInstance (lowerInstanceId )
0 commit comments