Back to Home
ESO Function Data v101032
SetValidValuesFunction()
Function Aliases
No known aliases for this function.
Global Function Definitions
libraries/zo_spinner/zo_spinner.lua:181
--
function ZO_Spinner:SetValidValuesFunction(validValuesFunction)
Local Function Definitions
No known local definitions for this function.
Function Calls
ingame/champion/championstar.lua:576
--
self.pointsSpinner:SetValidValuesFunction(function(oldValue, delta) if self.star:IsSkillStar() then local championSkillData = self.star:GetChampionSkillData() if championSkillData:HasJumpPoints() then if delta == ZO_SPINNER_LARGE_INCREMENT then local nextJumpPoint = championSkillData:GetNextJumpPoint(oldValue) return zo_min(championSkillData:GetMaxPendingPoints(), nextJumpPoint) elseif delta == -ZO_SPINNER_LARGE_INCREMENT then local previousJumpPoint = championSkillData:GetPreviousJumpPoint(oldValue) return zo_max(championSkillData:GetMinPendingPoints(), previousJumpPoint) end end end return oldValue + delta end)