New constant "bonusLabel = 0" is just variable leaking to global. Tha same goes for new table "trainData":
Lua Code:
function ZO_Stable_Gamepad:SetupEntry(control, data, selected, selectedDuringRebuild, enabled, activated)
data.isSkillTrainable = data.data.isSkillTrainable
ZO_SharedGamepadEntry_OnSetup(control, data, selected, selectedDuringRebuild, enabled, activated)
trainData = data.data
ZO_StableTrainingRow_Setup(control, trainData.trainingType)
bonusLabel = trainData.bonus
if trainData.trainingType == RIDING_TRAIN_SPEED then
bonusLabel = zo_strformat(SI_MOUNT_ATTRIBUTE_SPEED_FORMAT, trainData.bonus)
end
control.value:SetText(bonusLabel)
ZO_StatusBar_SmoothTransition(control.bar, trainData.bonus, trainData.maxBonus, FORCE_VALUE)
end
Tables "items" and "usedFilterTypes" are leaking from here:
Lua Code:
local function GetBuyItems()
items = {}
usedFilterTypes = {}
items, usedFilterTypes = ZO_StoreManager_GetStoreItems()
--- Gamepad versions have extra data / differently named values in templates
for i, itemData in ipairs(items) do
itemData.pressedIcon = itemData.icon
itemData.stackCount = itemData.stack
itemData.sellPrice = itemData.price
if itemData.sellPrice == 0 then
itemData.sellPrice = itemData.stackBuyPriceCurrency1
end
itemData.selectedNameColor = ZO_SELECTED_TEXT
itemData.unselectedNameColor = ZO_DISABLED_TEXT
itemData.name = zo_strformat(SI_TOOLTIP_ITEM_NAME, itemData.name)
local itemLink = GetStoreItemLink(itemData.slotIndex)
itemData.itemType = GetItemLinkItemType(itemLink)
itemData.equipType = GetItemLinkEquipType(itemLink)
local IS_STORE_ITEM = true
itemData.storeGroup = GetItemStoreGroup(itemData, IS_STORE_ITEM, itemLink)
itemData.bestGamepadItemCategoryName = GetBestItemCategoryDescription(itemData)
end
return items
end
I'm not sure about table "color", I have it in my globals dump too, but I didn't find it in source code.