PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/buffs/template.xml

http://github.com/Asphyxia/Tukui
XML | 22 lines | 22 code | 0 blank | 0 comment | 0 complexity | 5d266724e5c3b71b1abd28ed1c5c0782 MD5 | raw file
 1<Ui xmlns='http://www.blizzard.com/wow/ui'>
 2	<Button name='TukuiAuraTemplate' inherits='SecureActionButtonTemplate' virtual='true'>
 3		<Size x='26' y='26'/>
 4		<Attributes>
 5			<Attribute name='type' value='cancelaura'/>
 6		</Attributes>
 7		<Scripts>
 8			<OnLoad>
 9				self:RegisterForClicks('RightButtonUp')
10			</OnLoad>
11			<OnEnter>
12				GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMLEFT')
13				if self:GetAttribute("target-slot") == 16 or self:GetAttribute("target-slot") == 17 or self:GetAttribute("target-slot") == 18 then
14					GameTooltip:SetInventoryItem("player", self:GetID())
15				else
16					GameTooltip:SetUnitAura("player", self:GetID(), self:GetAttribute('filter'))
17				end
18			</OnEnter>
19			<OnLeave function='GameTooltip_Hide'/>
20		</Scripts>
21	</Button>
22</Ui>