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 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_KEYBOARD = 40
ZO_BUFF_DEBUFF_ICON_DIMENSIONS_KEYBOARD = ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_KEYBOARD - 4
ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_GAMEPAD = 46
ZO_BUFF_DEBUFF_ICON_DIMENSIONS_GAMEPAD = ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_GAMEPAD - 8
ZO_BUFF_DEBUFF_KEYBOARD_STYLE =
{
CONTAINER_HEIGHT = ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_KEYBOARD ,
}
ZO_BUFF_DEBUFF_GAMEPAD_STYLE =
{
CONTAINER_HEIGHT = ZO_BUFF_DEBUFF_FRAME_DIMENSIONS_GAMEPAD ,
}
local PLAYER_UNIT_TAG = "player"
local TARGET_UNIT_TAG = "reticleover"
local BUFF_PADDING = 5
-------------------------
--Unit Container Object--
-------------------------
return object
end
self . fadeTimeline = ANIMATION_MANAGER : CreateTimelineFromVirtual ( "ZO_BuffDebuff_FadeAnimation" , control )
{
[ BUFFS_SETTING_ALL_ENABLED ] = BUFF_DEBUFF_ENABLED_CHOICE_DONT_SHOW ,
[ BUFFS_SETTING_BUFFS_ENABLED ] = true ,
[ BUFFS_SETTING_DEBUFFS_ENABLED ] = true ,
[ BUFFS_SETTING_LONG_EFFECTS ] = true ,
[ BUFFS_SETTING_PERMANENT_EFFECTS ] = true ,
[ BUFFS_SETTING_DEBUFFS_ENABLED_FOR_TARGET_FROM_OTHERS ] = false ,
[ BUFFS_SETTING_BUFFS_ENABLED_FOR_TARGET ] = false ,
}
end
if initEvent then
end
end
end
if unitTag == PLAYER_UNIT_TAG then
end
ZO_PlatformStyle : New ( function ( style ) self : ApplyPlatformStyle ( style ) end , ZO_BUFF_DEBUFF_KEYBOARD_STYLE , ZO_BUFF_DEBUFF_GAMEPAD_STYLE )
end
metaPool . container = container
end
if not metaPool . firstControl then
else
end
end
end
return metaPool
end
pool . firstControl = nil
end
-- TODO: Investigate a more performant solution if necessary
end
if shouldContextuallyShow then
else
end
end
end
self . buffPool . container : SetHidden ( not shouldContextuallyShow or not self . buffPool : HasActiveObjects ( ) )
self . debuffPool . container : SetHidden ( not shouldContextuallyShow or not self . debuffPool : HasActiveObjects ( ) )
end
end
end
if not shouldBlockUpdate then
end
end
end
end
end
else
return false
end
end
--Don't show while the wheels are up
return false
end
return true
else
end
else
end
end
end
end
end
-------------------
--Top Level Class--
-------------------
return object
end
local selfContainer = ZO_BuffDebuff_ContainerObject : New ( control : GetNamedChild ( "SelfContainer" ) , self . controlPool , PLAYER_UNIT_TAG , EVENT_PLAYER_ACTIVATED )
local targetContainer = ZO_BuffDebuff_ContainerObject : New ( control : GetNamedChild ( "TargetContainer" ) , self . controlPool , TARGET_UNIT_TAG , EVENT_RETICLE_TARGET_CHANGED )
{
[ PLAYER_UNIT_TAG ] = selfContainer ,
[ TARGET_UNIT_TAG ] = targetContainer ,
}
local BLOCK_UPDATE = true
end
if settingId == BUFFS_SETTING_ALL_ENABLED then
else
end
end
if settingId == BUFFS_SETTING_ALL_ENABLED or settingId == BUFFS_SETTING_BUFFS_ENABLED or settingId == BUFFS_SETTING_DEBUFFS_ENABLED
or settingId == BUFFS_SETTING_LONG_EFFECTS or settingId == BUFFS_SETTING_PERMANENT_EFFECTS or settingId == BUFFS_SETTING_DEBUFFS_ENABLED_FOR_TARGET_FROM_OTHERS then
end
else
local parentSettingId
local relevantContainer
if settingId == BUFFS_SETTING_BUFFS_ENABLED_FOR_SELF or settingId == BUFFS_SETTING_DEBUFFS_ENABLED_FOR_SELF then
parentSettingId = ( settingId == BUFFS_SETTING_BUFFS_ENABLED_FOR_SELF ) and BUFFS_SETTING_BUFFS_ENABLED or BUFFS_SETTING_DEBUFFS_ENABLED
else
parentSettingId = ( settingId == BUFFS_SETTING_BUFFS_ENABLED_FOR_TARGET ) and BUFFS_SETTING_BUFFS_ENABLED or BUFFS_SETTING_DEBUFFS_ENABLED
end
end
end
for i = BUFFS_SETTING_ITERATION_BEGIN , BUFFS_SETTING_ITERATION_END do
end
end
end
targetContainerControl : SetAnchor ( CENTER , targetFrameControl : GetNamedChild ( "Caption" ) , BOTTOM , 0 , 40 )
end
self . control : RegisterForEvent ( EVENT_INTERFACE_SETTING_CHANGED , function ( _ , _ , settingId ) OnInterfaceSettingChanged ( settingId ) end )
self . control : AddFilterForEvent ( EVENT_INTERFACE_SETTING_CHANGED , REGISTER_FILTER_SETTING_SYSTEM_TYPE , SETTING_TYPE_BUFFS )
end
end
end
end
end
end
-- XML Handlers
end
local blinkAnimation = GetAnimationManager ( ) : CreateTimelineFromVirtual ( "ZO_BuffDebuffIcon_BlinkAnimation" )
end
end
end
end |