/trunk/Torta/Windows
Torta.cl3:ModifyOpenTask( getglobal( self:GetParent():GetName() .. "EditBox" ):GetText() ); |
Torta.gui:UpdateCLScrollBar(); |
Torta.cl3:HideTaskEditor(); |
else |
-- Add a setting that stops the editor from closing when escape is pressed sometime later. |
Torta.cl3:HideTaskEditor(); |
end |
</OnEscapePressed> |
<OnEnterPressed> |
fs:SetJustifyV("TOP"); |
self.text = fs; |
</OnLoad> |
<OnEnter> |
if self.text:GetStringWidth() >= (self:GetWidth() - 10) then |
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT"); |
GameTooltip:AddLine(self.text:GetText()); |
GameTooltip:Show(); |
end |
</OnEnter> |
<OnLeave> |
if GameTooltip:IsOwned(self) then |
GameTooltip:Hide(); |
end |
</OnLeave> |
</Scripts> |
</Button> |
self.dragFlag = true; |
</OnMouseDown> |
<OnMouseUp> |
if not self.dragFlag then |
Torta.gui:clTaskDragStop(); |
end |
self.dragFlag = false; |
Torta.gui:clTaskDragStop(); |
</OnMouseUp> |
<OnLeave> |
if self.dragFlag then |
Torta.gui:clTaskDragStart(self); |
self.dragFlag = false; |
end |
</OnLeave> |
</Scripts> |
</Scripts> |
</CheckButton> |
<!-- Drop areas --> |
<Button name="$parentTopDropHandler" text="Top" hidden="true"> |
<Button name="$parentTopDropHandler" text="Above this task" hidden="true" alpha="0"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT"/> |
self.tortaDropType = "CLTASK"; |
self:GetParent().topDropHandler = self; |
</OnLoad> |
<OnEnter> |
UIFrameFadeIn(self, 0.3, self:GetAlpha(), 1); |
</OnEnter> |
<OnLeave> |
UIFrameFadeOut(self, 0.3, self:GetAlpha(), 0); |
</OnLeave> |
<OnUpdate> |
</OnUpdate> |
</Scripts> |
</Button> |
<Button name="$parentBottomDropHandler" text="Bottom" hidden="true"> |
<Button name="$parentBottomDropHandler" text="Below this task" hidden="true" alpha="0"> |
<NormalFont style="GameFontNormal"/> |
<Anchors> |
<Anchor point="TOPLEFT" relativePoint="LEFT"/> |
self.tortaDropType = "CLTASK"; |
self:GetParent().bottomDropHandler = self; |
</OnLoad> |
<OnEnter> |
UIFrameFadeIn(self, 0.3, self:GetAlpha(), 1); |
</OnEnter> |
<OnLeave> |
UIFrameFadeOut(self, 0.3, self:GetAlpha(), 0); |
</OnLeave> |
<OnUpdate> |
</OnUpdate> |
</Scripts> |
</Button> |
<!-- End of drop areas --> |
</Layers> |
</ScrollFrame> |
<Frame name="TortaDragThingy" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent" frameStrata="TOOLTIP"> |
<Frame name="TortaDragThingy" inherits="TortaTooltipStyleFrameTemplate" parent="UIParent" |
frameStrata="TOOLTIP" hidden="true"> |
<Size x="200" y="40"/> |
<Anchors> |
<Anchor point="CENTER"/> |
Torta.gui:CheckExplorerWindow(); |
</OnMouseUp> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); |
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT"); |
GameTooltip:AddLine("Drag here to resize the Torta window."); |
GameTooltip:Show(); |
</OnEnter> |
Torta.gui:CheckExplorerWindow(); |
</OnMouseUp> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); |
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT"); |
GameTooltip:AddLine("Drag here to resize the Torta window."); |
GameTooltip:Show(); |
</OnEnter> |