Back to Home
ESO Function Data v101044
SetCustomNarrationFunction()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- ingame/crafting/gamepad/smithingimprovement_gamepad.lua:316 -- self.spinner:SetCustomNarrationFunction(function(spinner)
local narrations = {}
local row = self:GetRowForSelection()
if row then
-- row.quality is deprecated, included here for addon backwards compatibility
local functionalQuality = row.functionalQuality or row.quality
local formattedValue = zo_strformat(SI_GAMEPAD_SMITHING_IMPROVEMENT_REAGENT_SELECTION, GetString("SI_ITEMQUALITY", functionalQuality), spinner:GetValue(), row.reagentName)
table.insert(narrations, ZO_FormatSpinnerNarrationText(GetString(SI_GAMEPAD_SMITHING_IMPROVEMENT_REAGENT_TITLE), formattedValue))
table.insert(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(zo_strformat(SI_GAMEPAD_SMITHING_STACK_COUNT_NARRATION, row.currentStack)))
end
if self.improvementSlot:HasItem() then
local itemToImproveBagId, itemToImproveSlotIndex, craftingType = self:GetCurrentImprovementParams()
local numBoostersToApply = self:GetNumBoostersToApply()
local chance = GetSmithingImprovementChance(itemToImproveBagId, itemToImproveSlotIndex, numBoostersToApply, craftingType)
chance = zo_roundToNearest(chance, .1)
table.insert(narrations, SCREEN_NARRATION_MANAGER:CreateNarratableObject(zo_strformat(SI_SMITHING_IMPROVE_CHANCE_FORMAT, chance)))
end
return narrations
end)
- ingame/gamepad/gamepadtemplates/gamepadtemplates.lua:51 -- self.spinner:SetCustomNarrationFunction(GetSpinnerNarrationText)
- publicallingames/currency/gamepad/currencyselector_gamepad.lua:180 -- self.spinner:SetCustomNarrationFunction(narrationFunction)
- publicallingames/currency/gamepad/currencyselector_gamepad.lua:279 -- digit:SetCustomNarrationFunction(GetNarrationText)