WoWInterface SVN Torta

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/Torta/Windows
    from Rev 36 to Rev 37
    Reverse comparison

Rev 36 → Rev 37

Templates.xml
85,7 → 85,7
end
</OnClick>
<OnLoad>
self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
local fs = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
fs:SetPoint("LEFT", self, "LEFT", 5);
fs:SetPoint("RIGHT", self, "RIGHT", -5);
105,8 → 105,62
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"/>
268,4 → 322,37
</Button>
</Frames>
</Frame>
 
<Frame name="TortaCLListDragThingy" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent"
frameStrata="TOOLTIP" hidden="true">
<Size x="200" y="40"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Scripts>
<OnUpdate>
xPos, yPos = GetCursorPosition();
local scale = UIParent:GetScale();
self:ClearAllPoints();
self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", (xPos + 1) / scale, (yPos + 1) / scale);
</OnUpdate>
<OnLoad>
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r,
TOOLTIP_DEFAULT_COLOR.g,
TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r,
TOOLTIP_DEFAULT_BACKGROUND_COLOR.g,
TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
 
 
local fs = self:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
fs:SetPoint("LEFT", self, "LEFT", 5);
fs:SetPoint("RIGHT", self, "RIGHT", -5);
fs:SetText("Hello, World!");
fs:SetJustifyH("LEFT");
fs:SetJustifyV("TOP");
self.text = fs;
</OnLoad>
</Scripts>
</Frame>
</Ui>
\ No newline at end of file