WoWInterface SVN Torta

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 27 to Rev 28
    Reverse comparison

Rev 27 → Rev 28

Torta/UIManager.lua
228,6 → 228,7
button.check:SetChecked(self.data.stat[lineplusoffset]);
button:SetID(lineplusoffset);
button.check:SetID(lineplusoffset);
button:SetID(lineplusoffset);
 
if lineplusoffset ~= Torta.cl3.openTask then
button:UnlockHighlight();
278,18 → 279,20
function Torta.gui:MakeTaskVisible(taskID)
assert(type(taskID) == "number", "Assertion failed: method MakeTaskVisible requires a number parameter (taskID)");
local scrollBar = getglobal(clScrollBar:GetName() .. "ScrollBar");
local offset = FauxScrollFrame_GetOffset(clScrollBar) + 1;
local offset = FauxScrollFrame_GetOffset(clScrollBar);
for i = 1, 1000 do -- just so we don't go into an infinite loop
if self:IsTaskVisible(taskID) then break; end
-- scrollBar:SetValue(scrollBar:GetValue() + 1);
offset = offset + 1
if self:IsTaskVisible(taskID) then
break;
end
 
FauxScrollFrame_SetOffset(clScrollBar, offset);
FauxScrollFrame_Update(clScrollBar, #self.data.text, #self.clListButtons, 32, nil, nil, nil, nil, nil, nil, true)
self:CheckCLButtons();
self:UpdateCLScrollBar();
offset = offset + 1
end
scrollBar:SetValue(floor(offset * 32 + 0.5));
print(offset, scrollBar:GetValue());
-- print(offset, scrollBar:GetValue());
end
 
FauxScrollFrame_SetOffset(explorerScrollBar, 0);