WoWInterface SVN RecorDead

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 13 to Rev 12
    Reverse comparison

Rev 13 → Rev 12

trunk/RecorDead/Core.lua
144,19 → 144,24
for i = 1, 100 do
self.data[i] = i;
end
 
self.gui:CheckList();
self.deathsScrollBar = RecorDeadParentFrameListContainerScrollBar;
FauxScrollFrame_SetOffset(RecorDeadParentFrameListContainerScrollBar, 0);
self.gui:CheckList();
-- FauxScrollFrame_SetOffset(RecorDeadParentFrameListContainerScrollBar, 0);
-- print(FauxScrollFrame_GetOffset(RecorDeadParentFrameListContainerScrollBar));
end
 
function RecorDead:UpdateDeathsListScrollBar()
self = self or RecorDead;
print("Offset before function call:", FauxScrollFrame_GetOffset(RecorDeadParentFrameListContainerScrollBar));
FauxScrollFrame_Update(RecorDeadParentFrameListContainerScrollBar, 100, #self.gui.listButtons, 16);
print("Offset after function call:", FauxScrollFrame_GetOffset(RecorDeadParentFrameListContainerScrollBar));
 
local line; -- 1 through 5 of our window to scroll
local lineplusoffset; -- an index into our data calculated from the scroll offset
for line=1,#self.gui.listButtons do
lineplusoffset = line + FauxScrollFrame_GetOffset(RecorDeadParentFrameListContainerScrollBar);
print("lineplusoffset ", lineplusoffset)
if lineplusoffset <= 100 then
self.gui.listButtons[line].dateText:SetText(self.data[lineplusoffset]);
self.gui.listButtons[line]:Show();
trunk/RecorDead/Interface.xml
280,6 → 280,11
</Frames>
</ScrollFrame>
<!-- ========== DEATH LIST STUFF BEGINS HERE ========== -->
<!-- Hint: To get the number of showable buttons, do:
local width = RecorDeadParentFrameListContainer:GetWidth();
local numButtons = (width - 23) / 16;
 
-->
<Button name="$parentButton1" inherits="RecorDeadDeathsListItemTemplate" text="RecorDead deaths list button ID: 1" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentHeaderTexture" relativePoint="BOTTOMLEFT">