if GameTooltip:IsOwned(self) then |
GameTooltip:Hide(); |
end |
if self.dragFlag then |
Torta.gui:clListDragStart(self); |
self.dragFlag = false; |
end |
</OnLeave> |
<OnMouseDown> |
self.dragFlag = true; |
</OnMouseDown> |
<OnMouseUp> |
if not self.dragFlag then |
Torta.gui:clListDragStop(); |
end |
self.dragFlag = false; |
</OnMouseUp> |
</Scripts> |
<Frames> |
<!-- Drop areas --> |
<Button name="$parentTopDropHandler" hidden="true" alpha="0"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT"/> |
<Anchor point="BOTTOMRIGHT" relativePoint="RIGHT"/> |
</Anchors> |
<Scripts> |
<OnLoad> |
self.tortaDropType = "CLLIST"; |
self:GetParent().topDropHandler = self; |
</OnLoad> |
<OnEnter> |
UIFrameFadeIn(self, 0.3, self:GetAlpha(), 1); |
</OnEnter> |
<OnLeave> |
UIFrameFadeOut(self, 0.3, self:GetAlpha(), 0); |
</OnLeave> |
</Scripts> |
</Button> |
<Button name="$parentBottomDropHandler" hidden="true" alpha="0"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT" relativePoint="LEFT"/> |
<Anchor point="BOTTOMRIGHT"/> |
</Anchors> |
<Scripts> |
<OnLoad> |
self.tortaDropType = "CLLIST"; |
self:GetParent().bottomDropHandler = self; |
</OnLoad> |
<OnEnter> |
UIFrameFadeIn(self, 0.3, self:GetAlpha(), 1); |
</OnEnter> |
<OnLeave> |
UIFrameFadeOut(self, 0.3, self:GetAlpha(), 0); |
</OnLeave> |
</Scripts> |
</Button> |
</Frames> |
</Button> |
|
<FontString name="TortaCLFontStringTemplate" inherits="GameFontHighlight" maxLines="3" virtual="true"/> |