Back to Home

ESO Lua File v100032

ingame/quickslot/gamepad/quickslotradial_gamepad.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local ZO_QuickslotRadialManager_Gamepad = ZO_QuickslotRadialManager:Subclass()
local USE_LEADING_EDGE = true
local COOLDOWN_DESATURATION = 1
local COOLDOWN_ALPHA = 1
local DONT_PRESERVE_PREVIOUS_COOLDOWN = false
    local remaining, duration = GetSlotCooldownInfo(slotNum)
    control.cooldown:SetTexture(GetSlotTexture(slotNum))
    control.cooldown:SetFillColor(ZO_SELECTED_TEXT:UnpackRGBA())
    ZO_SharedGamepadEntry_Cooldown(control, remaining, duration, CD_TYPE_VERTICAL_REVEAL, CD_TIME_TYPE_TIME_UNTIL, USE_LEADING_EDGE, COOLDOWN_DESATURATION, COOLDOWN_ALPHA, DONT_PRESERVE_PREVIOUS_COOLDOWN)
end
function ZO_QuickslotRadialManager_Gamepad:SetupEntryControl(entryControl, slotNum)
    ZO_QuickslotRadialManager.SetupEntryControl(self, entryControl, slotNum)
    ZO_GamepadQuickslotCooldownSetup(entryControl, slotNum)
end
    QUICKSLOT_RADIAL_GAMEPAD = ZO_QuickslotRadialManager_Gamepad:New(control, "ZO_GamepadSelectableItemRadialMenuEntryTemplate", "DefaultRadialMenuAnimation", "SelectableItemRadialMenuEntryAnimation")
end