/Tukui/modules/buffs/template.xml
XML | 22 lines | 22 code | 0 blank | 0 comment | 0 complexity | 5d266724e5c3b71b1abd28ed1c5c0782 MD5 | raw file
- <Ui xmlns='http://www.blizzard.com/wow/ui'>
- <Button name='TukuiAuraTemplate' inherits='SecureActionButtonTemplate' virtual='true'>
- <Size x='26' y='26'/>
- <Attributes>
- <Attribute name='type' value='cancelaura'/>
- </Attributes>
- <Scripts>
- <OnLoad>
- self:RegisterForClicks('RightButtonUp')
- </OnLoad>
- <OnEnter>
- GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMLEFT')
- if self:GetAttribute("target-slot") == 16 or self:GetAttribute("target-slot") == 17 or self:GetAttribute("target-slot") == 18 then
- GameTooltip:SetInventoryItem("player", self:GetID())
- else
- GameTooltip:SetUnitAura("player", self:GetID(), self:GetAttribute('filter'))
- end
- </OnEnter>
- <OnLeave function='GameTooltip_Hide'/>
- </Scripts>
- </Button>
- </Ui>