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 |
-- Ground Constants --
ZO_BADLANDS_SHOW_GROUND_FADE_DURATION_MS = 500
ZO_BADLANDS_GROUND_DARK_FADE_DELAY_MS = 1800
ZO_BADLANDS_GROUND_DARK_FADE_DURATION_MS = 800
ZO_BADLANDS_GROUND_CORRUPTION_UNMASK_DELAY_MS = 2300
ZO_BADLANDS_GROUND_CORRUPTION_UNMASK_DURATION_MS = 1000
ZO_BADLANDS_GROUND_CORRUPTION_MASK_THRESHOLD_EDGE = 1.0
ZO_BADLANDS_GROUND_CORRUPTION_MASK_THRESHOLD_THICKNESS = 0.2
ZO_BADLANDS_BURNT_LEAVES_UNMASK_DELAY_MS = 2500
ZO_BADLANDS_BURNT_LEAVES_UNMASK_DURATION_MS = 333
ZO_BADLANDS_BURNT_LEAVES_MASK_THRESHOLD_EDGE = 1.0
ZO_BADLANDS_BURNT_LEAVES_MASK_THRESHOLD_THICKNESS = 0.2
ZO_BADLANDS_BURNT_LEAVES_HIGHLIGHT_MIN_FADE_DURATION_MS = 333
ZO_BADLANDS_BURNT_LEAVES_HIGHLIGHT_MAX_FADE_DURATION_MS = 666
local GROUND_TEXTURE_WIDTH = 2048
local GROUND_TEXTURE_HEIGHT = 2048
local GROUND_TEXTURE_USED_WIDTH = 1920
local GROUND_TEXTURE_USED_HEIGHT = 1080
local GROUND_TEXTURE_MAX_U = GROUND_TEXTURE_USED_WIDTH / GROUND_TEXTURE_WIDTH
local GROUND_TEXTURE_MAX_V = GROUND_TEXTURE_USED_HEIGHT / GROUND_TEXTURE_HEIGHT
-- Title Constants --
ZO_BADLANDS_SHOW_TITLE_FADE_DELAY_MS = 0
ZO_BADLANDS_SHOW_TITLE_FADE_DURATION_MS = 750
ZO_BADLANDS_TITLE_DARK_FADE_DELAY_MS = 1666
ZO_BADLANDS_TITLE_DARK_FADE_DURATION_MS = 1000
ZO_BADLANDS_TITLE_CORRUPT_FADE_DELAY_MS = 2300
ZO_BADLANDS_TITLE_CORRUPT_FADE_DURATION_MS = 666
local TITLE_TEXTURE_WIDTH = 512
local TITLE_TEXTURE_HEIGHT = 256
local TITLE_TO_GROUND_WIDTH_RATIO = TITLE_TEXTURE_WIDTH / GROUND_TEXTURE_USED_WIDTH
local TITLE_TO_GROUND_HEIGHT_RATIO = TITLE_TEXTURE_HEIGHT / GROUND_TEXTURE_USED_HEIGHT
local TITLE_OFFSET_FROM_TOP_BASE_Y = 140
-- Logo Constants --
ZO_BADLANDS_LOGO_DARK_FADE_DELAY_MS = 1666
ZO_BADLANDS_LOGO_DARK_FADE_DURATION_MS = 1000
ZO_BADLANDS_LOGO_CORRUPT_FADE_DELAY_MS = 1730
ZO_BADLANDS_LOGO_CORRUPT_FADE_DURATION_MS = 1666
ZO_BADLANDS_LOGO_RUNES_UNMASK_DELAY_MS = 1750
ZO_BADLANDS_LOGO_RUNES_UNMASK_DURATION_MS = 1500
ZO_BADLANDS_LOGO_RUNES_MASK_THRESHOLD_EDGE = 1.0
ZO_BADLANDS_LOGO_RUNES_MASK_THRESHOLD_THICKNESS = 0.1
ZO_BADLANDS_LOGO_RUNES_HIGHLIGHT_MIN_FADE_DURATION_MS = 1500
ZO_BADLANDS_LOGO_RUNES_HIGHLIGHT_MAX_FADE_DURATION_MS = 1500
local LOGO_TEXTURE_WIDTH = 1024
local LOGO_TEXTURE_HEIGHT = 1024
local LOGO_TO_GROUND_WIDTH_RATIO = LOGO_TEXTURE_WIDTH / GROUND_TEXTURE_USED_WIDTH
local LOGO_TO_GROUND_HEIGHT_RATIO = LOGO_TEXTURE_HEIGHT / GROUND_TEXTURE_USED_HEIGHT
local IGNORE_ANIMATION_CALLBACKS = true
-- Bounce back and forth between a random high alpha and a random low alpha
if oldEndAlpha < 0.5 then
else
end
end
end
self . groundBurntLeavesHighlightTexture : SetTextureCoords ( 0 , GROUND_TEXTURE_MAX_U , 0 , GROUND_TEXTURE_MAX_V )
if newState == SCENE_SHOWING then
elseif newState == SCENE_HIDDEN then
end
end )
end
self . showTimeline = ANIMATION_MANAGER : CreateTimelineFromVirtual ( "ZO_BadlandsBackgroundShowAnimation" , self . containerControl )
self . logoRunesHighlightTimeline = ANIMATION_MANAGER : CreateTimelineFromVirtual ( "ZO_BadlandsBackgroundLogoRunesHighlightAnimation" , self . logoRunesHighlightTexture )
return ZO_BADLANDS_LOGO_RUNES_HIGHLIGHT_MIN_FADE_DURATION_MS , ZO_BADLANDS_LOGO_RUNES_HIGHLIGHT_MAX_FADE_DURATION_MS
end
self . burntLeavesHighlightTimeline = ANIMATION_MANAGER : CreateTimelineFromVirtual ( "ZO_BadlandsBackgroundBurntLeavesHighlightAnimation" , self . groundBurntLeavesHighlightTexture )
return ZO_BADLANDS_BURNT_LEAVES_HIGHLIGHT_MIN_FADE_DURATION_MS , ZO_BADLANDS_BURNT_LEAVES_HIGHLIGHT_MAX_FADE_DURATION_MS
end
end
end
local GROUND_ASPECT_RATIO = GROUND_TEXTURE_USED_WIDTH / GROUND_TEXTURE_USED_HEIGHT
local groundWidth = GROUND_ASPECT_RATIO * guiHeight
if groundWidth < guiWidth then
groundWidth = guiWidth
end
local titleOffsetY = TITLE_OFFSET_FROM_TOP_BASE_Y * ( groundHeight / GROUND_TEXTURE_USED_HEIGHT )
end
end
end
--Events
end
if completedPlaying then
end
end
if completedPlaying then
end
end
--Global XML Handlers
end
end
end
end
end |