-
Notifications
You must be signed in to change notification settings - Fork 8
/
OrderHall.lua
582 lines (574 loc) · 17.7 KB
/
OrderHall.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
local pp=print
local me, ns = ...
ns.Configure()
local GetItemCount=GetItemCount
local addon=addon --#addon
local over=over --#over
local _G=_G
local G=C_Garrison
local pairs=pairs
local format=format
local strsplit=strsplit
local select=select
local generated
local GARRISON_CURRENCY=GARRISON_CURRENCY
local GARRISON_SHIP_OIL_CURRENCY=GARRISON_SHIP_OIL_CURRENCY
local GARRISON_FOLLOWER_MAX_LEVEL=45
local LE_FOLLOWER_TYPE_GARRISON_6_0=LE_FOLLOWER_TYPE_GARRISON_6_0
local LE_FOLLOWER_TYPE_SHIPYARD_6_2=LE_FOLLOWER_TYPE_SHIPYARD_6_2
local LE_FOLLOWER_TYPE_GARRISON_7_0=LE_FOLLOWER_TYPE_GARRISON_7_0
local GARRISON_FOLLOWER_MAX_UPGRADE_QUALITY=GARRISON_FOLLOWER_MAX_UPGRADE_QUALITY[LE_FOLLOWER_TYPE_GARRISON_7_0]
local module=addon:NewSubClass('OrderHall') --#Module
local GameTooltip=GameTooltip
local GCS
local GHF
local GHFMissions
local OHFFollowerTab
--*BEGIN
local UpgradeFrame
local UpgradeButtons={}
local pool={}
function module:OnInitialize(...)
if not ns.GHF then return end -- Waiting to be late initialized by init routine
OHFFollowerTab=OrderHallMissionFrame.FollowerTab -- Contains model view
if C_AddOns.GetAddOnEnableState(UnitName("player"),"OrderHallCommander") > 0 then
ns.ignoreHall=true
return
end
GHF=ns.GHF
GHFMissions=ns.GHFMissions
--GARRISON_SHIPYARD_NPC_OPEN
--GARRISON_SHIPYARD_NPC_CLOSE
self:SafeSecureHook("GarrisonFollowerButton_UpdateCounters")
local ref=GHFMissions.CompleteDialog.BorderFrame.ViewButton
local bt = CreateFrame('BUTTON','GCQuickHallMissionCompletionButton', ref, 'UIPanelButtonTemplate')
bt.missionType=LE_FOLLOWER_TYPE_GARRISON_7_0
bt:SetWidth(300)
bt:SetText(L["Garrison Comander Quick Mission Completion"])
bt:SetPoint("CENTER",0,-50)
addon:ActivateButton(bt,"MissionComplete",L["Complete all missions without confirmation"])
self:SafeSecureHookScript(GHF,"OnShow","Setup",true)
self:SafeRegisterEvent("ADVENTURE_MAP_CLOSE")
self:SafeRegisterEvent("GARRISON_MISSION_STARTED")
--GarrisonShipyardFrameFollowersListScrollFrameButton1
--GarrisonShipyardMapMission1
addon:AddLabel(L["OrderHall Appearance"])
addon:AddToggle("HALLMOVEPANEL",true,L["Unlock Panel"],L["Makes Order Hall Mission panel movable"])
--addon:AddToggle("BIGSCREEN",true,L["Use big screen"],L["Disabling this will give you the interface from 1.1.8, given or taken. Need to reload interface"])
addon:AddToggle("HALLPIN",true,L["Show Garrison Commander menu"],L["Disable if you dont want the full Garrison Commander Header."])
--addon:HallSort()
for _,b in ipairs(GHF.MissionTab.MissionList.listScroll.buttons) do
local scale=0.8
local f,h,s=b.Title:GetFont()
b.Title:SetFont(f,h*scale,s)
local f,h,s=b.Summary:GetFont()
b.Summary:SetFont(f,h*scale,s)
b:RegisterForClicks("LeftButtonUp","RightButtonUp")
b.hall=true
addon:SafeSecureHookScript(b,"OnEnter","ScriptGarrisonMissionButton_OnEnter")
self:SafeRawHookScript(b,"OnClick","ScriptGarrisonMissionButton_OnClick")
end
GHF.MissionTab.MissionList.Update=addon.HookedGarrisonMissionList_Update
GHF.MissionTab.MissionList.SetTab=addon.HookedGarrisonMissionList_SetTab
addon:AddLabel("Order Hall")
addon:AddSelect("MSORTH","Garrison_SortMissions_Original",
{
Garrison_SortMissions_Original=L["Original method"],
Garrison_SortMissions_Chance=L["Success Chance"],
Garrison_SortMissions_Followers=L["Number of followers"],
Garrison_SortMissions_Age=L["Expiration Time"],
Garrison_SortMissions_Xp=L["Global approx. xp reward"],
Garrison_SortMissions_Duration=L["Duration Time"],
Garrison_SortMissions_Class=L["Reward type"],
},
L["Sort missions by:"],L["Original sort restores original sorting method, whatever it was (If you have another addon sorting mission, it should kick in again)"])
-- Uprades management
UpgradeFrame=CreateFrame("Frame",nil,OHFFollowerTab)
local u=UpgradeFrame
u:SetPoint("TOPLEFT",OHFFollowerTab,"TOPLEFT",5,-72)
u:SetPoint("BOTTOMLEFT",OHFFollowerTab,"BOTTOMLEFT",5,7)
u:SetWidth(70)
u:Show()
---addon:SetBackdrop(u,C:Green())
self:SecureHook("GarrisonMission_SetFollowerModel","RefreshUpgrades")
self:RegisterEvent("GARRISON_FOLLOWER_UPGRADED")
self:RegisterEvent("GARRISON_FOLLOWER_LIST_UPDATE","GARRISON_FOLLOWER_UPGRADED")
self:RegisterEvent("GARRISON_FOLLOWER_XP_CHANGED","GARRISON_FOLLOWER_UPGRADED")
UpgradeFrame:EnableMouse(true)
end
function module:GARRISON_FOLLOWER_UPGRADED(event,followerType,followerId)
if OHFFollowerTab:IsVisible() then
self:ScheduleTimer("RefreshUpgrades",0.3)
end
end
function module:AddLevel(source,button,mission,missionID,bigscreen)
button.Level:SetPoint("CENTER", button, "TOPLEFT", 40, -36);
local quality=math.min(math.max(mission.level-UnitLevel("player")+3,0),6)
button.Level:SetText(mission.level)
button.Level:SetTextColor(self:GetQualityColor(quality))
button.ItemLevel:Show();
end
function module:ScriptGarrisonMissionButton_OnClick(this,...)
if this.info then
addon:AddExtraData(this.info)
local perc=addon:MatchMaker(this.info)
end
return addon:ScriptGarrisonMissionButton_OnClick(this,...)
end
function module:GetMain()
return GHF
end
function module:GetMissions()
return GHFMissions
end
function module:GetBigScreen()
return false
end
---
function module:AcquireButton()
local b=tremove(pool)
if not b then
b=CreateFrame("Button",nil,UpgradeFrame,"GarrisonCommanderUpgradeButton,SecureActionbuttonTemplate")
b:EnableMouse(true)
b:RegisterForClicks("LeftButtonDown")
b:SetAttribute("type","item")
b:SetSize(40,40)
b.Icon:SetSize(40,40)
b:EnableMouse(true)
b:RegisterForClicks("LeftButtonDown")
end
tinsert(UpgradeButtons,b)
return b
end
function module:ReleaseButton(u)
u:Hide()
u:ClearAllPoints()
tinsert(pool,u)
end
function module:RefreshUpgrades(model,followerID,displayID,showWeapon)
if not OHFFollowerTab:IsVisible() then return end
if model then
UpgradeFrame:SetFrameStrata(model:GetFrameStrata())
UpgradeFrame:SetFrameLevel(model:GetFrameLevel()+5)
end
if not followerID then followerID=OHFFollowerTab.followerID end
local follower=addon:GetHeroData(followerID)
for i=1,#UpgradeButtons do
self:ReleaseButton(UpgradeButtons[i])
end
wipe(UpgradeButtons)
if not follower then print("No follower for ",followerID) return end
if follower.isTroop then return end
if not follower.isCollected then return end
if follower.status==GARRISON_FOLLOWER_ON_MISSION then return end
if follower.status==GARRISON_FOLLOWER_COMBAT_ALLY then return end
if follower.status==GARRISON_FOLLOWER_INACTIVE then return end
local u=UpgradeFrame
local previous
if follower.iLevel <850 then
for _,id in pairs(addon:GetData("Upgrades")) do
previous=self:RenderUpgradeButton(id,previous)
end
end
if follower.isMaxLevel and follower.quality ~=LE_ITEM_QUALITY_EPIC then
for _,id in pairs(addon:GetData("Xp")) do
previous=self:RenderUpgradeButton(id,previous)
end
end
if follower.quality >=LE_ITEM_QUALITY_RARE then
for _,id in pairs(addon:GetData("Equipment")) do
previous=self:RenderUpgradeButton(id,previous)
end
end
end
function module:RenderUpgradeButton(id,previous)
local qt=GetItemCount(id)
if qt== 0 then return previous end --Not rendering empty buttons
print("Rendering",id,"for",qt,"pieces")
local b=self:AcquireButton()
if previous then
b:SetPoint("TOPLEFT",previous,"BOTTOMLEFT",0,-8)
else
b:SetPoint("TOPLEFT",5,-10)
end
previous=b
b.itemID=id
b:SetAttribute("item",select(2,GetItemInfo(id)))
GarrisonMissionFrame_SetItemRewardDetails(b)
b.Quantity:SetFormattedText("%d",qt)
b.Quantity:SetTextColor(C.Yellow())
b.Quantity:Show()
b:Show()
return b
end
function module:Setup(this,...)
--@debug@
print("Doing one time initialization for",this:GetName(),...)
--@end-debug@
addon:CheckMP()
self:SafeSecureHookScript("OrderHallMissionFrame","OnShow")
GCS=addon:CreateHeader(self,'HALLMOVEPANEL','HALLPIN')
GHF.FollowerStatusInfo=GHF:CreateFontString(nil, "BORDER", "GameFontNormal")
GHF.FollowerStatusInfo:SetPoint("TOPRIGHT",-30,0)
GHF.FollowerStatusInfo:SetHeight(25)
GHF.FollowerStatusInfo:Show()
self:ScriptOrderHallMissionFrame_OnShow()
self:RefreshParties()
self:FollowerSetup()
end
function module:ScriptOrderHallMissionFrame_OnShow()
--@debug@
print("Doing all time initialization")
print(GetTime())
--@end-debug@
GCS:Show()
GCS:SetWidth(GHF:GetWidth())
GHF:ClearAllPoints()
GHF:SetPoint("TOPLEFT",GCS,"BOTTOMLEFT",0,23)
GHF:SetPoint("TOPRIGHT",GCS,"BOTTOMRIGHT",0,23)
self:RefreshMenu()
self:RefreshFollowerStatus()
--@debug@
print("Done all time initialization")
print(GetTime())
--@end-debug@
end
function addon:EventADVENTURE_MAP_CLOSE(event,...)
--@debug@
print("NPC CLOSED")
--@end-debug@
if (GCS) then
self:RemoveMenu()
GCS:Hide()
end
end
function addon:ApplyMSORTH(value)
self:ApplyMSORT(value)
end
function module:EventGARRISON_MISSION_STARTED(event,missionType,missionID,...)
--@debug@
print(event,missionID)
--@end-debug@
self:RefreshFollowerStatus()
end
function module:RefreshParties()
if true then
addon:OnAllGarrisonMissions(function(missionID) addon:MatchMaker(missionID)end,false,LE_FOLLOWER_TYPE_GARRISON_7_0)
else
self:coroutineExecute(0.001,function()
addon:OnAllGarrisonMissions(function(missionID) addon:MatchMaker(missionID) coroutine.yield(true) end)
end
)
end
end
function module:RefreshMenu()
if not GCS then return end -- This could be called before header is built
if not self.currentmenu or not self.currentmenu:IsVisible() then
self:RemoveMenu()
self:AddMenu()
end
end
function module:AddMenu()
--@debug@
print("Adding Menu",GCS.Menu,GHF.MissionTab:IsVisible(),GHF.FollowerTab:IsVisible())
--@end-debug@
if GCS.Menu then
return
end
local menu,size
if GHF.MissionTab:IsVisible() then
self.currentmenu=GHF.MissionTab
menu,size=self:CreateOptionsLayer('HALLMOVEPANEL','MSORTH')
elseif GHF.FollowerTab:IsVisible() then
self.currentmenu=GHF.FollowerTab
menu,size=self:CreateOptionsLayer('HALLMOVEPANEL')
--elseif GSF.MissionControlTab:IsVisible() then
-- self.currentmenu=GSF.MissionControlTab
-- menu,size=self:CreateOptionsLayer('BIGSCREEN','GCSKIPRARE','GCSKIPEPIC')
else
self.currentmenu=nil
menu,size=self:CreateOptionsLayer('HALLMOVEPANEL')
end
--@debug@
self:AddOptionToOptionsLayer(menu,'DBG')
self:AddOptionToOptionsLayer(menu,'TRC')
--@end-debug@
local frame=menu.frame
frame:Show()
frame:SetParent(GCS)
frame:SetFrameStrata(GCS:GetFrameStrata())
frame:SetFrameLevel(GCS:GetFrameLevel()+2)
local label=AceGUI:Create("Label")
label:SetText(L["Support for Order Hall missions has been moved to OrderHallCommander.\nPlease install it NOW! (no need to remove GarrisoCommander)"])
label:SetColor(C.Red())
label:SetWidth(380)
menu:AddChild(label)
menu:ClearAllPoints()
menu:SetPoint("TOPLEFT",GCS,"TOPLEFT",25,-18)
menu:SetWidth(GCS:GetWidth()-50)
menu:SetHeight(GCS:GetHeight()-50)
menu:DoLayout()
GCS.Menu=menu
end
function module:RemoveMenu()
--@debug@
print("Removing menu")
--@end-debug@
if (GCS.Menu) then
local rc,message=pcall(GCS.Menu.Release,GCS.Menu)
--@debug@
print("Removed menu",rc,message)
--@end-debug@
GCS.Menu=nil
end
end
function module:OpenLastTab()
--@debug@
print("Should restore tab")
--@end-debug@
end
function addon:SetBackdrop(frame,r,g,b)
r=r or 1
g=g or 0
b=b or 0
frame:SetBackdrop({
bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4}
}
)
frame:SetBackdropColor(r,g,b,1)
end
do
local s=setmetatable({},{__index=function(t,k) return 0 end})
local FOLLOWER_STATUS_FORMAT=(ns.bigscreen and L["Followers status "] or "" )..
C(AVAILABLE..':%d ','green') ..
C(GARRISON_FOLLOWER_WORKING .. ":%d ",'cyan') ..
C(GARRISON_FOLLOWER_ON_MISSION .. ":%d ",'red')
function module:RefreshFollowerStatus()
wipe(s)
for _,followerID in self:GetHeroesIterator() do
local status=self:GetFollowerStatus(followerID)
s[status]=s[status]+1
end
if (GHF.FollowerStatusInfo) then
GHF.FollowerStatusInfo:SetWidth(0)
GHF.FollowerStatusInfo:SetFormattedText(
FOLLOWER_STATUS_FORMAT,
s[AVAILABLE],
s[GARRISON_FOLLOWER_WORKING],
s[GARRISON_FOLLOWER_ON_MISSION]
)
end
end
function module:GetTotFollowers(status)
if not status then
return s[AVAILABLE]+
s[GARRISON_FOLLOWER_WORKING]+
s[GARRISON_FOLLOWER_ON_MISSION]
else
return s[status] or 0
end
end
end
function module:DelayedRefresh(delay)
if GHF.FollowerTab:IsShown() then
if not tonumber(delay) then delay=0.5 end
return C_Timer.After(delay,function() module:ShowUpgradeButtons() end)
end
end
function module:FollowerSetup()
self:RegisterEvent("GARRISON_FOLLOWER_UPGRADED","DelayedRefresh")
self:RegisterEvent("CHAT_MSG_LOOT","DelayedRefresh")
self:ShowUpgradeButtons()
end
function module:ShowUpgradeButtons(force)
if InCombatLockdown() then
self:ScheduleLeaveCombatAction("ShowUpgradeButtons",force)
return
end
local gf=GHF.FollowerTab
if not self:GetBoolean("UPG") then
if not gf.upgradeButtons then return end
local b=gf.upgradeButtons
for i=1,#b do
b[i]:Hide()
end
return
end
if (not force and not gf:IsVisible()) then return end
if not gf.upgradeButtons then gf.upgradeButtons ={} end
--if not gf.upgradeFrame then gf.upgradeFrame=CreateFrame("Frame",nil,gf.model) end
local b=gf.upgradeButtons
local upgrades=self:GetUpgrades(LE_FOLLOWER_TYPE_GARRISON_7_0)
local axpos=self:GetBoolean("SWAPBUTTONS") and 7 or 243
local wxpos=self:GetBoolean("SWAPBUTTONS") and 243 or 7
local wypos=-85
local aypos=-85
local used=1
if not gf.followerID then
return self:DelayedRefresh(0.1)
end
local followerID=gf.followerID
local followerInfo = followerID and G.GetFollowerInfo(followerID);
-- gf.ItemWeapon.itemLevel=674
-- gf.ItemArmor.itemLevel=674
local overTheTop=false
if (not overTheTop and followerInfo and followerInfo.isCollected and not followerInfo.status and followerInfo.level == GARRISON_FOLLOWER_MAX_LEVEL ) then
ClearOverrideBindings(gf)
local binded={}
local currentType=""
local shown
local reuse
for i=#upgrades,1,-1 do
local tipo,itemID,level=strsplit(":",upgrades[i])
if not b[used] then
b[used]=CreateFrame("Button","GCUPGRADES"..used,gf,"GarrisonCommanderUpgradeButton,SecureActionbuttonTemplate")
end
level=tonumber(level)
local A=b[used]
local qt=GetItemCount(itemID)
--@debug@
print(tipo,level)
--@end-debug@
repeat
if (qt>0) then
A:ClearAllPoints()
A.tipo=tipo
if tipo ~=currentType then
shown=false
currentType=tipo
end
local currentlevel=tipo:sub(1,1)=="w" and gf.ItemWeapon.itemLevel or gf.ItemArmor.itemLevel
if currentlevel == GARRISON_FOLLOWER_MAX_ITEM_LEVEL then
break
end
if level > 600 and level <= currentlevel then
break -- Pointless item for this toon
end
if level<600 and level + currentlevel > GARRISON_FOLLOWER_MAX_ITEM_LEVEL then
if shown then
reuse=true
end
end
if (not binded[tipo]) then
binded[tipo]=true
local kb=GetBindingKey("GC" .. tipo:upper())
if (kb ) then
SetOverrideBindingClick(gf,false,kb,A:GetName())
A.Shortcut:SetText(GetBindingText(kb,"",true))
else
A.Shortcut:SetText('')
end
else
A.Shortcut:SetText('')
end
shown=true
if reuse then
A=b[used-1]
reuse=false
else
used=used+1
if (tipo:sub(1,1)=="a") then
A:SetPoint("TOPLEFT",axpos,aypos)
aypos=aypos-45
else
A:SetPoint("TOPLEFT",wxpos,wypos)
wypos=wypos-45
end
end
A:SetSize(40,40)
A.Icon:SetSize(40,40)
A.itemID=itemID
GarrisonMissionFrame_SetItemRewardDetails(A)
A.rawlevel=level
A.Level:SetText(level < 600 and (currentlevel+level) or level)
local c=colors[level]
A.Level:SetTextColor(C[c]())
A.Quantity:SetFormattedText("%d",qt)
A.Quantity:SetTextColor(C.Yellow())
if toc <70000 then
A:SetFrameLevel(gf.Model:GetFrameLevel()+1)
else
A:SetFrameLevel(20)
end
A.Quantity:Show()
A.Level:Show()
A:EnableMouse(true)
A:RegisterForClicks("LeftButtonDown")
A:SetAttribute("type","item")
A:SetAttribute("item",select(2,GetItemInfo(itemID)))
A:Show()
if tipo=="at" or tipo =="wt" then
A.Level:Hide()
A:SetScript("PostClick",nil)
else
A.Level:Show()
A:SetScript("PostClick",UpgradeFollower)
end
end
until true -- Continue dei poveri
end
end
for i=used,#b do
b[i]:Hide()
end
end
--[[ Follower
displayHeight = 0.25
followerTypeID = 2
iLevel = 600
isCollected = true
classAtlas = Ships_TroopTransport-List
garrFollowerID = 0x00000000000001E2
displayScale = 95
level = 100
quality = 3
portraitIconID = 0
isFavorite = false
xp = 1500
texPrefix = Ships_TroopTransport
className = Transport
classSpec = 53
name = Chen's Favorite Brew
followerID = 0x00000000011E4D8F
height = 0.30000001192093
displayID = 63894
scale = 110
levelXP = 40000
--]]
--[[ Mission
followerTypeID = 2
description = Hellscream has posted a sub near the Horde's main base on Ashran. Take that sub out. Alliance, that means you, too. Factional hatreds have no place here.
cost = 150
adjustedPosX = 798
duration = 8 hr
adjustedPosY = -246
durationSeconds = 28800
state = -2
inProgress=false
typePrefix = ShipMissionIcon-Treasure
typeAtlas = ShipMissionIcon-Treasure-Mission
offerTimeRemaining = 19 days 1 hr
level = 100
offeredGarrMissionTextureID = 0
offerEndTime = 1681052.25
mapPosY = -246
type = Ship-Treasure
name = Warspear Fishing
iLevel = 0
numRewards = 1
rewards = [table: 000000004D079210]
hasBonusEffect = false
numFollowers = 2
costCurrencyTypesID = 1101
followers = [table: 000000004D0791C0]
missionID = 563
canStart = false
location = [ph]
isRare = false
mapPosX = 798
locPrefix = GarrMissionLocation-TannanSea
--]]
--view mission button GSF.MissionTab.MissionList.CompleteDialog.BorderFrame.ViewButton