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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
--------------------------
-- Zone Stories Manager --
--------------------------
ZO_ZONE_STORY_ACTIVITY_COMPLETION_TYPES_SORTED_LIST =
{
ZONE_COMPLETION_TYPE_PRIORITY_QUESTS ,
ZONE_COMPLETION_TYPE_WAYSHRINES ,
ZONE_COMPLETION_TYPE_DELVES ,
ZONE_COMPLETION_TYPE_GROUP_DELVES ,
ZONE_COMPLETION_TYPE_POINTS_OF_INTEREST ,
ZONE_COMPLETION_TYPE_STRIKING_LOCALES ,
ZONE_COMPLETION_TYPE_SET_STATIONS ,
ZONE_COMPLETION_TYPE_MUNDUS_STONES ,
ZONE_COMPLETION_TYPE_PUBLIC_DUNGEONS ,
ZONE_COMPLETION_TYPE_WORLD_EVENTS ,
ZONE_COMPLETION_TYPE_GROUP_BOSSES ,
ZONE_COMPLETION_TYPE_SKYSHARDS ,
ZONE_COMPLETION_TYPE_MAGES_GUILD_BOOKS ,
}
EVENT_MANAGER : RegisterForEvent ( "ZoneStoriesManager" , EVENT_SHOW_ZONE_STORIES_SCENE , function ( eventCode , zoneId ) self : ShowZoneStoriesScene ( zoneId ) end )
EVENT_MANAGER : RegisterForEvent ( "ZoneStoriesManager" , EVENT_QUEST_ADDED , function ( eventCode , ... ) ZO_ZoneStories_Manager . OnQuestAdded ( ... ) end )
end
end
else
end
end
end
end
end
end
do
end
local zoneData =
{
id = zoneId ,
}
end
end )
end
end
end
end
do
local CATEGORY_DATA =
{
keyboardData =
{
priority = ZO_ACTIVITY_FINDER_SORT_PRIORITY . ZONE_STORIES ,
normalIcon = "EsoUI/Art/LFG/LFG_indexIcon_zoneStories_up.dds" ,
pressedIcon = "EsoUI/Art/LFG/LFG_indexIcon_zoneStories_down.dds" ,
mouseoverIcon = "EsoUI/Art/LFG/LFG_indexIcon_zoneStories_over.dds" ,
isZoneStories = true ,
} ,
gamepadData =
{
priority = ZO_ACTIVITY_FINDER_SORT_PRIORITY . ZONE_STORIES ,
menuIcon = "EsoUI/Art/LFG/Gamepad/LFG_menuIcon_zoneStories.dds" ,
sceneName = "zoneStoriesGamepad" ,
isZoneStories = true ,
end ,
} ,
}
return CATEGORY_DATA
end
end
local numCompletedActivities = 0
local totalActivities = 0
local numUnblockedActivities = 0
local blockingBranchErrorStringId = 0
numUnblockedActivities , blockingBranchErrorStringId = GetNumUnblockedZoneStoryActivitiesForZoneCompletionType ( zoneId , completionType )
return numCompletedActivities , totalActivities , numUnblockedActivities , blockingBranchErrorStringId
end
local numCompletedActivities , totalActivities , numUnblockedActivities , blockingBranchErrorStringId = ZO_ZoneStories_Manager . GetActivityCompletionProgressValues ( zoneId , completionType )
text = zo_strformat ( SI_ZONE_STORY_ACTIVITY_COMPLETION_VALUES_TOTAL_PLUS , numCompletedActivities , totalActivities )
else
text = zo_strformat ( SI_ZONE_STORY_ACTIVITY_COMPLETION_VALUES , numCompletedActivities , totalActivities )
end
return numCompletedActivities , totalActivities , numUnblockedActivities , blockingBranchErrorStringId , text
end
return select ( 5 , ZO_ZoneStories_Manager . GetActivityCompletionProgressValuesAndText ( zoneId , completionType ) )
end
end
end
return isZoneAvailable , errorString
end
local blockingErrorStringText = nil
local isCompletionTypeBlocked = not ZO_ZoneStories_Manager . IsZoneCompletionTypeComplete ( zoneId , completionType )
if isCompletionTypeBlocked then
local numUnblockedActivities , blockingBranchErrorStringId = GetNumUnblockedZoneStoryActivitiesForZoneCompletionType ( zoneId , completionType )
if blockingBranchErrorStringId ~= 0 then
end
end
return isCompletionTypeBlocked , blockingErrorStringText
end
do
local ZONE_COMPLETION_TYPE_ICON_MAP =
{
[ ZONE_COMPLETION_TYPE_PRIORITY_QUESTS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_priorityQuest.dds" ,
[ ZONE_COMPLETION_TYPE_POINTS_OF_INTEREST ] = "EsoUI/Art/ZoneStories/completionTypeIcon_pointOfInterest.dds" ,
[ ZONE_COMPLETION_TYPE_WAYSHRINES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_wayshrine.dds" ,
[ ZONE_COMPLETION_TYPE_DELVES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_delve.dds" ,
[ ZONE_COMPLETION_TYPE_GROUP_DELVES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_groupDelve.dds" ,
[ ZONE_COMPLETION_TYPE_SKYSHARDS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_skyshard.dds" ,
[ ZONE_COMPLETION_TYPE_WORLD_EVENTS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_worldEvents.dds" ,
[ ZONE_COMPLETION_TYPE_GROUP_BOSSES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_groupBoss.dds" ,
[ ZONE_COMPLETION_TYPE_STRIKING_LOCALES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_strikingLocales.dds" ,
[ ZONE_COMPLETION_TYPE_MAGES_GUILD_BOOKS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_lorebooks.dds" ,
[ ZONE_COMPLETION_TYPE_MUNDUS_STONES ] = "EsoUI/Art/ZoneStories/completionTypeIcon_mundusStone.dds" ,
[ ZONE_COMPLETION_TYPE_PUBLIC_DUNGEONS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_publicDungeon.dds" ,
[ ZONE_COMPLETION_TYPE_SET_STATIONS ] = "EsoUI/Art/ZoneStories/completionTypeIcon_setStation.dds" ,
}
return ZONE_COMPLETION_TYPE_ICON_MAP [ zoneCompletionType ]
end
end
|