Back to Home

ESO Lua File v101044

ingame/map/worldmapinfo_shared.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
ZO_WorldMapInfo_Shared = ZO_InitializingObject:Subclass()
function ZO_WorldMapInfo_Shared:Initialize(control, fragmentClass)
    self.control = control
    self.worldMapInfoFragment = fragmentClass:New(control)
    self.worldMapInfoFragment:RegisterCallback("StateChange", function(oldState, newState)
        if newState == SCENE_FRAGMENT_SHOWING then
            self:OnShowing()
        elseif newState == SCENE_FRAGMENT_SHOWN then
            self:OnShown()
        elseif newState == SCENE_FRAGMENT_HIDING then
            self:OnHiding()
        elseif newState == SCENE_FRAGMENT_HIDDEN then
            self:OnHidden()
        end
    end)
    self:InitializeTabs()
end
function ZO_WorldMapInfo_Shared:GetFragment()
    return self.worldMapInfoFragment
end
function ZO_WorldMapInfo_Shared:OnShowing()
    -- Optional override
end
function ZO_WorldMapInfo_Shared:OnShown()
    -- Optional override
end
function ZO_WorldMapInfo_Shared:OnHiding()
    -- Optional override
end
function ZO_WorldMapInfo_Shared:OnHidden()
    -- Optional override
end