Back to Home

ESO Lua File v100030

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
ZO_WorldMapInfo_Shared = ZO_Object:Subclass()
function ZO_WorldMapInfo_Shared:New(...)
    local object = ZO_Object.New(self)
    object:Initialize(...)
    return object
end
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_HIDDEN then
            self:OnHidden()
        end
    end)
    self:InitializeTabs()
end
function ZO_WorldMapInfo_Shared:GetFragment()
    return self.worldMapInfoFragment
end
function ZO_WorldMapInfo_Shared:OnShowing()
    -- To be overridden
end
function ZO_WorldMapInfo_Shared:OnHidden()
    -- To be overridden
end