Back to Home

ESO Lua File v100029

ingame/map/keyboard/worldmapkeepinfo_keyboard.lua

[◄ back to folders ]
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
--Keep Upgrade Type
local KeepUpgrade = ZO_KeepUpgrade_Shared:Subclass()
--Resource Upgrade Type
local ResourceUpgrade = ZO_ResourceUpgrade_Shared:Subclass()
--World Map Keep Info
local WorldMapKeepInfo = ZO_WorldMapKeepInfo_Shared:Subclass()
function WorldMapKeepInfo:New(...)
    return ZO_WorldMapKeepInfo_Shared.New(self, ...)
end
function WorldMapKeepInfo:Initialize(control)
    self.modeBar = ZO_SceneFragmentBar:New(control:GetNamedChild("MenuBar"))
    ZO_WorldMapKeepInfo_Shared.Initialize(self, control, ZO_FadeSceneFragment)
    self.keepUpgrade = KeepUpgrade:New()
    self.resourceUpgrade = ResourceUpgrade:New()
end
function WorldMapKeepInfo:GetBackgroundFragment()
    return MEDIUM_LEFT_PANEL_BG_FRAGMENT
end
function WorldMapKeepInfo:PreShowKeep()
    ZO_WorldMapKeepInfo_Shared.PreShowKeep(self)
    self.modeBar:RemoveAll()
end
function WorldMapKeepInfo:PostShowKeep()
    self.modeBar:SelectFragment(SI_MAP_KEEP_INFO_MODE_SUMMARY)
end
function WorldMapKeepInfo:BeginBar()
end
function WorldMapKeepInfo:AddBar(text, fragments, buttonData)
    self.modeBar:Add(text, fragments, buttonData)
end
function WorldMapKeepInfo:FinishBar()
end
function WorldMapKeepInfo:OnHidden()
    ZO_WorldMapKeepInfo_Shared.OnHidden(self)
    self.keepUpgradeObject = nil
    self.modeBar:Clear()
end
--Global
    WORLD_MAP_KEEP_INFO = WorldMapKeepInfo:New(control)
    SYSTEMS:RegisterKeyboardObject("world_map_keep_info", WORLD_MAP_KEEP_INFO)
end