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 |
return stableHeader
end
end
self . tabBar : AddDataTemplate ( "ZO_GamepadTabBarTemplate" , ZO_GamepadTabBarTemplate_Setup , ZO_GamepadMenuEntryTemplateParametricListFunction , MenuEntryTemplateEquality )
return {
mode = mode ,
iconFile = icon ,
fragment = fragment
}
end
end
-- NOTE: If the order of these tabs change, the code farther down to pick the correct starting screen also needs to change.
AddModeEntry ( SI_GAMEPAD_STABLE_STABLES_BUY , 1 , "EsoUI/Art/Vendor/vendor_tabIcon_buy_up.dds" , BUY_MOUNT_GAMEPAD_FRAGMENT )
AddModeEntry ( SI_GAMEPAD_STABLE_STABLES_SELL , 1 , "EsoUI/Art/Vendor/vendor_tabIcon_sell_up.dds" , SELL_MOUNT_GAMEPAD_FRAGMENT )
AddModeEntry ( SI_GAMEPAD_STABLE_STABLES_TAB , 1 , "EsoUI/Art/Vendor/tabIcon_mounts_up.dds" , STABLES_GAMEPAD_FRAGMENT )
end
end
end
if hidden then
else
-- Determine the correct starting screen for the user, based on whether they currently have any mounts.
-- NOTE: If the order of the tabs above changes, the index here need to be updated.
else
end
end
end
end
end
end
end
self . control : RegisterForEvent ( EVENT_STABLE_INTERACT_START , function ( eventCode , ... ) self : OnStablesInteractStart ( ... ) end )
self . control : RegisterForEvent ( EVENT_STABLE_INTERACT_END , function ( eventCode , ... ) self : OnStablesInteractEnd ( ... ) end )
self . control : RegisterForEvent ( EVENT_MOUNTS_FULL_UPDATE , function ( eventCode , ... ) self : UpdateHeader ( ... ) end )
self . control : RegisterForEvent ( EVENT_MOUNT_UPDATE , function ( eventCode , ... ) self : UpdateHeader ( ... ) end )
local STABLES_INTERACTION =
{
end ,
interactTypes = { INTERACTION_STABLE } ,
}
end
end
local selectedFragment = selectedData . fragment
local useColoring = ( selectedFragment == BUY_MOUNT_GAMEPAD_FRAGMENT )
if ( not useColoring ) or ( numUsedSlots < numSlots ) then
self . freeSlots : SetText ( zo_strformat ( SI_GAMEPAD_STABLE_SLOTS_REMAINING_SPACES , numUsedSlots , numSlots ) )
else
self . freeSlots : SetText ( zo_strformat ( SI_GAMEPAD_STABLE_SLOTS_COMPLETELY_FULL , numUsedSlots , numSlots ) )
end
end
end
end |