Back to Home
ESO Function Data v101050
SetDataTemplateSetupFunction()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- ingame/promotionalevents/gamepad/promotionaleventslist_gamepad.lua:54 -- list:SetDataTemplateSetupFunction("ZO_GamepadMenuEntryTemplate", function(control, data, selected, reselectingDuringRebuild, enabled, active)
if data:AreAllRewardsClaimed() then
local DEFAULT = nil
data:SetNameColors(DEFAULT, DEFAULT)
else
data:SetNameColors(ZO_PROMOTIONAL_EVENT_SELECTED_COLOR, ZO_PROMOTIONAL_EVENT_UNSELECTED_COLOR)
end
data:ClearIcons()
if not data.isReturningPlayerRewardsEntry and (not data:HasBeenSeen() or data:IsAnyRewardClaimable()) then
data:AddIcon(ZO_GAMEPAD_NEW_ICON_64)
end
ZO_SharedGamepadEntry_OnSetup(control, data, selected, reselectingDuringRebuild, enabled, active)
end)