/trunk/Torta/Windows
</OnClick> |
</Scripts> |
</Button> |
<Button name="$parentStatsButton" text="Stats Button"> |
<Button name="$parentStatsButton" text="Stats Button" alpha="0.5"> |
<NormalFont style="GameFontNormal"/> |
<Size y="22"/> |
<Anchors> |
<OnClick> |
</OnClick> |
<OnEnter> |
UIFrameFadeIn(self, 0.25, self:GetAlpha(), 1); |
</OnEnter> |
<OnLeave> |
UIFrameFadeOut(self, 0.25, self:GetAlpha(), 0.5); |
</OnLeave> |
</Scripts> |
</Button> |
</Frames> |
<!-- NOTE TO SELF: normal/pushed/disabled text uses style="fontname" now! --> |
<!-- We may end up using a lot of this, so... --> |
<Frame name="TortaTooltipStyleFrameTemplate" virtual="true"> |
<Frame name="TortaTooltipStyleFrameTemplate" virtual="true" toplevel="true"> |
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
<EdgeSize> |
<AbsValue val="16"/> |
<OnClick> |
Torta.cl3:EditTask(self:GetID()); |
</OnClick> |
<OnDragStart> |
</OnDragStart> |
<OnDragStop> |
</OnDragStop> |
<OnMouseDown> |
self.dragFlag = true; |
</OnMouseDown> |
<OnMouseUp> |
self.dragFlag = false; |
Torta.gui:clTaskDragStop(); |
</OnMouseUp> |
<OnLeave> |
if self.dragFlag then |
Torta.gui:clTaskDragStart(self); |
end |
</OnLeave> |
</Scripts> |
<Frames> |
<CheckButton name="$parentCheckButton" inherits="UICheckButtonTemplate"> |
</OnClick> |
</Scripts> |
</CheckButton> |
<!-- Drop areas --> |
<Button name="$parentTopDropHandler" text="Top" hidden="true"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT"/> |
<Anchor point="BOTTOMRIGHT" relativePoint="RIGHT"/> |
</Anchors> |
<Scripts> |
<OnLoad> |
self.tortaDropType = "CLTASK"; |
self:GetParent().topDropHandler = self; |
</OnLoad> |
</Scripts> |
</Button> |
<Button name="$parentBottomDropHandler" text="Bottom" hidden="true"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT" relativePoint="LEFT"/> |
<Anchor point="BOTTOMRIGHT"/> |
</Anchors> |
<Scripts> |
<OnLoad> |
self.tortaDropType = "CLTASK"; |
self:GetParent().bottomDropHandler = self; |
</OnLoad> |
</Scripts> |
</Button> |
<!-- End of drop areas --> |
</Frames> |
</Button> |
</Layers> |
</ScrollFrame> |
<Frame name="TortaDragThingy" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent" frameStrata="TOOLTIP"> |
<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> |
</Scripts> |
<Frames> |
<Button name="$parentTaskButton" inherits="TortaChecklistTaskButton" setAllPoints="true"> |
<Scripts> |
<OnLoad> |
local parent = self:GetParent(); |
parent.text = self.text; |
parent.check = self.check; |
</OnLoad> |
</Scripts> |
</Button> |
</Frames> |
</Frame> |
</Ui> |
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
..\FrameXML\UI.xsd"> |
<!-- The main window --> |
<Frame name="TortaParentFrame" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent" hidden="true" movable="true" resizable="true"> |
<Frame name="TortaParentFrame" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent" hidden="true" |
movable="true" resizable="true" toplevel="true" clampedToScreen="true"> |
<Size x="800" y="415"/> |
<Anchors> |
<Anchor point="CENTER"/> |
<Anchor point="BOTTOM"/> |
</Anchors> |
</FontString> |
<FontString name="$parentNoNotebooksText" hidden="true" inherits="GameFontHighlight" text="No notebooks were found in Torta's database. You can right-click here to open a context menu to create one."> |
<FontString name="$parentNoNotebooksText" hidden="true" inherits="GameFontHighlight" text=""> <!-- No notebooks were found in Torta's database. You can right-click here to open a context menu to create one. --> |
<Anchors> |
<Anchor point="LEFT"> |
<Offset x="5"/> |