Back to Home

ESO Lua File v101043

ingame/actionbar/quickslotactionbutton.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
QuickslotActionButton = ActionButton:Subclass()
function QuickslotActionButton:Initialize(...)
    ActionButton.Initialize(self, ...)
    self.button.tooltip = ItemTooltip
end
function QuickslotActionButton:GetSlot()
    local slotNum = GetCurrentQuickslot()
    return slotNum
end
function QuickslotActionButton:OnRelease()
    if self.itemQtyFailure then
        PlaySound(SOUNDS.QUICKSLOT_USE_EMPTY)
    end
    ActionButton.OnRelease(self)
end
function QuickslotActionButton:ApplyStyle(template)
    ActionButton.ApplyStyle(self, template)
    local cooldownPercent = 1
    if IsInGamepadPreferredMode() and self.showingCooldown then
        cooldownPercent = self.icon.percentComplete
    end
    self:SetCooldownPercentComplete(cooldownPercent)
    self:SetCooldownEdgeState(self.showingCooldown)
end
function QuickslotActionButton:FormatCount(count)
    local USE_LOWERCASE_NUMBER_SUFFIXES = false
    local abbreviatedCount = ZO_AbbreviateAndLocalizeRadialMenuEntryCount(count, USE_LOWERCASE_NUMBER_SUFFIXES)
    return abbreviatedCount
end