WoWInterface SVN Torta

Compare Revisions

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

Rev 20 → Rev 21

DisplayWindow.xml
50,12 → 50,12
FauxScrollFrame_OnVerticalScroll(self, offset, 32, Torta.gui.UpdateCLScrollBar);
</OnVerticalScroll>
<OnShow>
-- Torta.gui:CheckCLButtons();
Torta.gui:CheckCLButtons();
Torta.gui:UpdateCLScrollBar(true);
getglobal(self:GetName() .. "ScrollBar"):SetValue(0);
</OnShow>
<OnUpdate>
Torta.gui:CheckCLButtons()
Torta.gui:CheckCLButtons();
</OnUpdate>
</Scripts>
</ScrollFrame>
113,6 → 113,10
<Scripts>
<OnEscapePressed>
self:ClearFocus();
if IsShiftKeyDown() then
Torta.cl3:ModifyOpenTask( getglobal( self:GetParent():GetName() .. "EditBox" ):GetText() );
Torta.gui:UpdateCLScrollBar();
end
</OnEscapePressed>
<OnEnterPressed>
self:ClearFocus();
Templates.xml
87,6 → 87,16
 
<Button name="TortaChecklistTaskButton" inherits="TortaListboxButtonTemplate" virtual="true">
<Size y="32"/>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="TortaCLFontStringTemplate" nonSpaceWrap="true">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo=""/>
</Anchors>
</FontString>
</Layer>
</Layers>
<!-- LISTBUTTON SCRIPTS -->
<Scripts>
<OnClick>
104,14 → 114,20
<!-- CHECKBUTTON SCRIPTS -->
<Scripts>
<OnLoad>
local fs = self:CreateFontString(nil, "ARTWORK", "TortaCLFontStringTemplate");
fs:SetPoint("LEFT", self, "RIGHT", 3);
fs:SetPoint("RIGHT", self:GetParent(), "RIGHT", -3);
local fs = self:GetParent():CreateFontString(nil, "ARTWORK", "TortaCLFontStringTemplate");
fs:SetPoint("LEFT", self, "RIGHT");
fs:SetText("Hello, World!");
fs:SetJustifyH("LEFT");
fs:SetJustifyV("TOP");
fs:SetNonSpaceWrap(true);
self:GetParent().text = fs;
self:GetParent().check = self;
</OnLoad>
<OnUpdate>
-- This is retardedly hackish, but the anchors trick doesnt work for some reason (WTF?!?!?!)
-- This is roughly how Checklist2 does it.
self:GetParent().text:SetWidth(self:GetParent():GetWidth() - 38);
</OnUpdate>
</Scripts>
</CheckButton>
</Frames>
TortaParentFrame.xml
90,6 → 90,8
local parentWindow = self:GetParent();
parentWindow:StopMovingOrSizing();
parentWindow.isSizing = false;
Torta.gui:CheckCLButtons();
Torta.gui:CheckExplorerWindow();
</OnMouseUp>
</Scripts>
<Layers>
Explorer.xml
54,8 → 54,13
</Button>
</Frames>
<Scripts>
<OnShow>
Torta.gui:CheckExplorerWindow();
</OnShow>
<OnUpdate>
Torta.gui:CheckExplorerWindow();
if TortaParentFrame.isSizing then
Torta.gui:CheckExplorerWindow();
end
</OnUpdate>
</Scripts>
</Frame>