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 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
local DATA_ENTRY_TYPE_COLLAPSED = 1
local DATA_ENTRY_TYPE_EXPANDED = 2
local DATA_ENTRY_TYPE_UNLOCK_BUILD = 3
ZO_ARMORY_KEYBOARD_COLLAPSED_ENTRY_HEIGHT = 96
ZO_ARMORY_KEYBOARD_EXPANDED_ENTRY_HEIGHT = 550
ZO_ARMORY_KEYBOARD_UNLOCK_ENTRY_HEIGHT = 96
ZO_ARMORY_KEYBOARD_MISC_ROW_LABEL_OFFSET_X = 20
local DEFAULT_SELECTED_BUILD_INDEX = 1
ARMORY_KEYBOARD_SCENE = ZO_InteractScene : New ( "armoryKeyboard" , SCENE_MANAGER , ZO_ARMORY_MANAGER : GetInteraction ( ) )
if newState == SCENE_FRAGMENT_SHOWING then
elseif newState == SCENE_FRAGMENT_SHOWN then
elseif newState == SCENE_FRAGMENT_HIDDEN then
end
end )
ARMORY_KEYBOARD_SCENE : SetHideSceneConfirmationCallback ( function ( scene , nextSceneName , bypassHideSceneConfirmationReason )
--If we tried to hide the scene because the gamepad preferred mode changed, close the armory when the build operation completes to prevent the user from getting stuck in a bad state
if bypassHideSceneConfirmationReason == ZO_BHSCR_GAMEPAD_MODE_CHANGED then
end
else
end
end )
end
end )
end
end )
end
end )
end
{
--Equip build
{
end ,
ZO_ARMORY_MANAGER : ShowBuildOperationConfirmationDialog ( ARMORY_BUILD_OPERATION_TYPE_RESTORE , self . selectedBuildIndex )
end ,
end ,
return zo_strformat ( SI_ARMORY_BUILD_OPERATION_COOLDOWN_ALERT , ZO_FormatTimeMilliseconds ( GetArmoryOperationsCooldownDurationMs ( ) , TIME_FORMAT_STYLE_SHOW_LARGEST_UNIT_DESCRIPTIVE , TIME_FORMAT_PRECISION_SECONDS ) )
end
end ,
} ,
--Save build
{
end ,
ZO_ARMORY_MANAGER : ShowBuildOperationConfirmationDialog ( ARMORY_BUILD_OPERATION_TYPE_SAVE , self . selectedBuildIndex )
end ,
end ,
return zo_strformat ( SI_ARMORY_BUILD_OPERATION_COOLDOWN_ALERT , ZO_FormatTimeMilliseconds ( GetArmoryOperationsCooldownDurationMs ( ) , TIME_FORMAT_STYLE_SHOW_LARGEST_UNIT_DESCRIPTIVE , TIME_FORMAT_PRECISION_SECONDS ) )
end
end ,
} ,
{
ZO_Dialogs_ShowDialog ( "ArmorySettingsDialog" , { selectedBuildData = ZO_ARMORY_MANAGER : GetBuildDataByIndex ( self . selectedBuildIndex ) , confirmCallback = function ( ) self : RefreshBuilds ( ) end } )
end ,
end ,
end ,
} ,
}
end
end
--Setup the header
--Set the attribute values
--Setup the champion bar data
--Setup the weapon and skills row data
--Setup the equipment row data
if slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_VALID then
else
end
if slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_MISSING or slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_INACCESSIBLE then
else
end
end
--Set the mundus stones
control . mundusLabel : SetText ( zo_strformat ( SI_ARMORY_MUNDUS_STONE_LABEL , ZO_SELECTED_TEXT : Colorize ( mundusStoneList ) ) )
--Set the curse type
control . curseTypeLabel : SetText ( zo_strformat ( SI_ARMORY_CURSE_TYPE_LABEL , ZO_SELECTED_TEXT : Colorize ( curseType ) ) )
--Set the outfit name
control . outfitNameLabel : SetText ( zo_strformat ( SI_ARMORY_OUTFIT_LABEL , ZO_SELECTED_TEXT : Colorize ( data : GetEquippedOutfitName ( ) ) ) )
end
ZO_ScrollList_AddDataType ( self . list , DATA_ENTRY_TYPE_COLLAPSED , "ZO_Armory_CollapsedBuildEntry" , ZO_ARMORY_KEYBOARD_COLLAPSED_ENTRY_HEIGHT , SetupCollapsedBuildEntry )
ZO_ScrollList_AddDataType ( self . list , DATA_ENTRY_TYPE_EXPANDED , "ZO_Armory_ExpandedBuildEntry" , ZO_ARMORY_KEYBOARD_EXPANDED_ENTRY_HEIGHT , SetupExpandedBuildEntry )
ZO_ScrollList_AddDataType ( self . list , DATA_ENTRY_TYPE_UNLOCK_BUILD , "ZO_Armory_UnlockBuildEntry" , ZO_ARMORY_KEYBOARD_UNLOCK_ENTRY_HEIGHT )
end
else
end
end
if numBuilds < MAX_NUM_ARMORY_BUILDS then
end
--Order matters. We want to do this after ZO_ScrollList_Commit so the controls can be positioned properly before we attempt to scroll to them
local NO_CALLBACK = nil
local ANIMATE_INSTANTLY = true
ZO_ScrollList_ScrollDataToCenter ( self . list , self . selectedBuildIndex , NO_CALLBACK , ANIMATE_INSTANTLY )
end
end
end
end
end
if buildIndex == nil then
else
end
local SCROLL_TO_SELECTED = true
end
end
-----------------------------
-- ZO_ArmoryWeaponSetRow_Keyboard
-----------------------------
end
end
end
end
--Set up the shared input group
end
--The equip types depend on whether or not this is the backbar or primary bar
local isPrimary = hotbarCategory == HOTBAR_CATEGORY_PRIMARY
--Set the hotbar category for the skills bar
end
end
if slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_VALID then
else
end
if slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_MISSING or slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_INACCESSIBLE then
else
end
end
do
local LOCKED_EQUIP_SLOT_TEXTURE = "EsoUI/Art/CharacterWindow/weaponSwap_locked.dds"
--If this bar is locked, there can't be anything in the equip slots, so just set them locked and move on
else
--First, grab the slot data for each equip slot
local mainHandSlotState , mainHandItemLink = data : GetEquipSlotItemLinkInfo ( self . mainHandControl . equipType )
local offHandSlotState , offHandItemLink = data : GetEquipSlotItemLinkInfo ( self . offHandControl . equipType )
--Setup the main hand slot
--If the main hand has a two handed weapon in it, we need to do special logic
if mainHandSlotState == ARMORY_BUILD_EQUIP_SLOT_STATE_VALID and GetItemLinkEquipType ( mainHandItemLink ) == EQUIP_TYPE_TWO_HAND then
--In this case, we want to show the main hand item icon, so pass the main hand item link and slot state instead of the offhand one
else
end
--Setup the poison slot
end
end
end
end
-----------------------------
-- Global XML Functions
-----------------------------
end
if upInside then
end
end
if upInside then
end
end
if upInside then
ShowMarketAndSearch ( GetString ( SI_CROWN_STORE_SEARCH_ADDITIONAL_ARMORY_SLOTS ) , MARKET_OPEN_OPERATION_UNLOCK_ARMORY_BUILD_SLOT )
end
end
do
local ATTRIBUTE_BAR_TEXTURES =
{
[ ATTRIBUTE_HEALTH ] = "EsoUI/Art/Stats/stats_healthBar.dds" ,
[ ATTRIBUTE_MAGICKA ] = "EsoUI/Art/Stats/stats_magickaBar.dds" ,
[ ATTRIBUTE_STAMINA ] = "EsoUI/Art/Stats/stats_staminaBar.dds" ,
}
local EQUIPMENT_ROW_SLOT_PADDING_X = 14
end
--Set up the attribute bars
--Set up the champion bar
--Set up the skill and weapon rows
--Setup the equipment slots
local equipmentSlots = { }
local lastSlotControl = nil
local slotControl = CreateControlFromVirtual ( "$(parent)Slot" , control . equipmentRow , "ZO_ArmoryEquippedSlot" , index )
slotControl . equipType = equipType
if lastSlotControl then
else
end
end )
end )
lastSlotControl = slotControl
end
end
local ATTRIBUTE_DESCRIPTIONS =
{
[ ATTRIBUTE_HEALTH ] = SI_ATTRIBUTE_TOOLTIP_HEALTH ,
[ ATTRIBUTE_MAGICKA ] = SI_ATTRIBUTE_TOOLTIP_MAGICKA ,
[ ATTRIBUTE_STAMINA ] = SI_ATTRIBUTE_TOOLTIP_STAMINA ,
}
end
end
end
InformationTooltip : AddLine ( zo_strformat ( SI_ARMORY_BACKBAR_LOCKED_TOOLTIP , unlockLevel ) , "" , ZO_NORMAL_TEXT : UnpackRGBA ( ) )
end
end
end
if slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_VALID then
elseif slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_INACCESSIBLE then
if bagId == BAG_BANK then
local nameWithNickname
if collectibleId ~= 0 then
if collectibleData then
end
end
if nameWithNickname and nameWithNickname ~= "" then
tooltipString = zo_strformat ( SI_ARMORY_BUILD_EQUIPMENT_IN_HOUSE_BANK_TOOLTIP , ZO_SELECTED_TEXT : Colorize ( nameWithNickname ) )
end
end
-- If we somehow get here, just default to the standard missing tooltip
end
local DEFAULT_FONT = ""
elseif slotState == ARMORY_BUILD_EQUIP_SLOT_STATE_MISSING then
local DEFAULT_FONT = ""
InformationTooltip : AddLine ( GetString ( SI_ARMORY_BUILD_EQUIPMENT_MISSING_TOOLTIP ) , DEFAULT_FONT , ZO_NORMAL_TEXT : UnpackRGBA ( ) )
else
local DEFAULT_FONT = ""
InformationTooltip : AddLine ( zo_strformat ( SI_CHARACTER_EQUIP_SLOT_FORMAT , GetString ( "SI_EQUIPSLOT" , control . equipType ) ) , DEFAULT_FONT , ZO_NORMAL_TEXT : UnpackRGBA ( ) )
end
end |