Back to Home
ESO Function Data v100024
SetValueFormatFunction()
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/smithingcreation_shared.lua:462 -- self.materialQuantitySpinner:SetValueFormatFunction(function(value)
if self.materialList then
local data = self.materialList:GetSelectedData()
if data then
local stackCount, currentSelectedQuality, currentRank, meetsRankRequirement, hasAboveMin, hasEnoughInInventory, usable = self:GetMaterialInformation(data)
local combination = data.combinations[value]
if combination.isChampionPoint then
if meetsRankRequirement then
return zo_strformat(SI_SMITHING_CREATED_CHAMPION_POINTS, GetChampionIconMarkupString("100%"), ZO_WHITE:Colorize(combination.createsItemOfLevel))
else
return ZO_ERROR_COLOR:Colorize(zo_strformat(SI_SMITHING_CREATED_CHAMPION_POINTS, GetChampionIconMarkupStringInheritColor("100%"), combination.createsItemOfLevel))
end
else
if meetsRankRequirement then
return zo_strformat(SI_SMITHING_CREATED_LEVEL, ZO_WHITE:Colorize(combination.createsItemOfLevel))
else
return ZO_ERROR_COLOR:Colorize(zo_strformat(SI_SMITHING_CREATED_LEVEL, combination.createsItemOfLevel))
end
end
end
end
end)