/trunk/Torta/Windows
<Offset x="5"/> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnClick> |
Torta.cl3:UncheckAllTasks(); |
</OnClick> |
</Scripts> |
</Button> |
<Button name="$parentCheckAllButton" inherits="UIPanelButtonTemplate" text="Check All"> |
<Size x="100" y="22"/> |
<Anchors> |
<Anchor point="LEFT" relativeTo="$parentUncheckAllButton" relativePoint="RIGHT"/> |
</Anchors> |
<Scripts> |
<OnClick> |
Torta.cl3:CheckAllTasks(); |
</OnClick> |
</Scripts> |
</Button> |
<Button name="$parentAddTaskButton" inherits="UIPanelButtonTemplate" text="Add A Task"> |
<Size x="100" y="22"/> |
</OnLoad> |
<OnUpdate> |
-- This is retardedly hackish, but the anchors trick doesnt work for some reason (WTF!) |
-- This is roughly how Checklist2 does it. |
-- This is roughly how Checklist2 does it, except because its window cannot be resized, |
-- it only does this once, at load time. |
self:GetParent().text:SetWidth(self:GetParent():GetWidth() - 38); |
</OnUpdate> |
<OnClick> |
Torta.cl3:OnCheckClicked(self:GetID()); |
</OnClick> |
</Scripts> |
</CheckButton> |
</Frames> |
</Anchor> |
</Anchors> |
</Button> |
<Button name="$parentTab3" inherits="TortaTabTemplate" text="Torta Notebook" id="3"> |
<Button name="$parentTab3" inherits="TortaTabTemplate" text="Torta Notebook (NYI)" id="3"> |
<Anchors> |
<Anchor point="LEFT" relativeTo="$parentTab2" relativePoint="RIGHT"> |
<Offset x="-15"/> |