Back to Home

ESO Lua File v100018

ingame/campaign/campaignscoring.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
local ZO_CampaignScoringManager = ZO_CampaignScoringManager_Shared:Subclass()
function ZO_CampaignScoringManager:New(control)
    local manager = ZO_CampaignScoringManager_Shared.New(self, control)
    CAMPAIGN_SCORING_FRAGMENT = ZO_FadeSceneFragment:New(ZO_CampaignScoring)
    CAMPAIGN_SCORING_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
                                                                    if(newState == SCENE_FRAGMENT_SHOWN) then
                                                                        manager.shown = true
                                                                        QueryCampaignLeaderboardData()
                                                                        manager:UpdateRewardTier()
                                                                        manager:UpdateScores()
                                                                    elseif(newState == SCENE_FRAGMENT_HIDDEN) then
                                                                        manager.shown = false
                                                                    end
                                                                end)
    return manager
end
--Global XML
    InitializeTooltip(InformationTooltip, control, BOTTOM, 0, 0)
    SetTooltipText(InformationTooltip, control.tooltipText)
end
    ClearTooltip(InformationTooltip)
end
    CAMPAIGN_SCORING = ZO_CampaignScoringManager:New(self)
end
    CAMPAIGN_SCORING:OnTimeControlUpdate(control, timeFunction)
end