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 |
-----------------
-- Leaderboard Campaign Selector Shared
-----------------
CAMPAIGN_LEADERBOARD_SYSTEM_NAME = "campaignLeaderboards"
return selector
end
control : RegisterForEvent ( EVENT_CURRENT_CAMPAIGN_CHANGED , function ( ) self : OnCurrentCampaignChanged ( ) end )
control : RegisterForEvent ( EVENT_ASSIGNED_CAMPAIGN_CHANGED , function ( ) self : OnAssignedCampaignChanged ( ) end )
end
-- Should be overridden
end
-- Should be overridden
end
-- Should be overridden
end
local selectedQueryType = tabData . queryType
end
end
-----------------
-- Campaign Leaderboards Shared
-----------------
end
end
local UPDATE_INTERVAL_SECS = 1
if secsUntilStart > 0 then
self . timerLabelData = ZO_FormatTime ( secsUntilStart , TIME_FORMAT_STYLE_COLONS , TIME_FORMAT_PRECISION_TWELVE_HOUR )
elseif secsUntilEnd > 0 then
self . timerLabelData = ZO_FormatTime ( secsUntilEnd , TIME_FORMAT_STYLE_COLONS , TIME_FORMAT_PRECISION_TWELVE_HOUR )
else
end
end
end
end
end
local playerCanHaveRank
playerCanHaveRank = true
else
end
local displayedScore
else
end
local displayedRank
else
displayedRank = playerCanHaveRank and GetString ( SI_LEADERBOARDS_NOT_RANKED ) or GetString ( SI_LEADERBOARDS_STAT_NOT_AVAILABLE )
end
return displayedScore , displayedRank
end
if not ( isInCampaign or homeCampaignAssigned ) then
return
end
local header = self . leaderboardSystem : AddCategory ( GetString ( SI_CAMPAIGN_LEADERBOARDS_CATEGORIES_HEADER ) , "EsoUI/Art/Journal/leaderboard_indexIcon_ava_up.dds" , "EsoUI/Art/Journal/leaderboard_indexIcon_ava_down.dds" , "EsoUI/Art/Journal/leaderboard_indexIcon_ava_over.dds" )
end
end
local isPlayer , rank , name , points , class , alliance , displayName = GetCampaignLeaderboardEntryInfo ( self . campaignId , entryIndex )
if isPlayer then
end
end
end
self . leaderboardSystem : AddEntry ( self , GetString ( SI_CAMPAIGN_LEADERBOARDS_OVERALL ) , nil , header , nil , GetOverallCount , GetMaxRank , GetOverallInfo , nil , nil , GetOverallConsoleIdRequestParams , "EsoUI/Art/Leaderboards/gamepad/gp_leaderBoards_menuIcon_overall.dds" , LEADERBOARD_TYPE_OVERALL )
end
local isPlayer , rank , name , points , class , displayName = GetCampaignAllianceLeaderboardEntryInfo ( self . campaignId , alliance , entryIndex )
if isPlayer then
end
end
end
self . leaderboardSystem : AddEntry ( self , zo_strformat ( SI_ALLIANCE_NAME , GetAllianceName ( alliance ) ) , nil , header , alliance , GetSingleAllianceCount , GetMaxRank , GetSingleAllianceInfo , nil , nil , GetSingleAllianceConsoleIdRequestParams , iconPath , LEADERBOARD_TYPE_ALLIANCE )
end
AddAllianceEntryToLeaderboard ( ALLIANCE_ALDMERI_DOMINION , "EsoUI/Art/Leaderboards/gamepad/gp_leaderBoards_menuIcon_aldmeri.dds" )
AddAllianceEntryToLeaderboard ( ALLIANCE_DAGGERFALL_COVENANT , "EsoUI/Art/Leaderboards/gamepad/gp_leaderBoards_menuIcon_daggerfall.dds" )
AddAllianceEntryToLeaderboard ( ALLIANCE_EBONHEART_PACT , "EsoUI/Art/Leaderboards/gamepad/gp_leaderBoards_menuIcon_ebonheart.dds" )
end
end |