Skip to content

Commit

Permalink
minor pack/table display fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 26, 2018
1 parent 331cdbd commit 647c9d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 8 additions & 4 deletions Themes/Til Death/BGAnimations/goaldisplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,17 @@ local o = Def.ActorFrame{
self:queuecommand("Update")
end,
UpdateCommand=function(self)
if ind < 0 then
ind = 0
elseif ind == #goaltable then
if ind == #goaltable then
ind = ind - numgoals
elseif ind > #goaltable - (#goaltable % numgoals) then
ind = #goaltable - (#goaltable % numgoals)
end
if ind < 0 then
ind = 0
end
end,
DFRFinishedMessageCommand=function(self)
self:queuecommand("GoalTableRefresh")
end,
NextPageCommand=function(self)
ind = ind + numgoals
Expand Down Expand Up @@ -167,7 +171,7 @@ local o = Def.ActorFrame{

LoadFont("Common normal") .. { --completed toggle // filters
InitCommand=function(self)
self:xy(c3x- 40, headeroff):zoom(tzoom):halign(0):settext(filts[1])
self:xy(c3x- capWideScale(15,40), headeroff):zoom(tzoom):halign(0):settext(filts[1])
end,
HighlightCommand=function(self)
highlightIfOver(self)
Expand Down
7 changes: 4 additions & 3 deletions Themes/Til Death/BGAnimations/packlistDisplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ local o = Def.ActorFrame{
self:queuecommand("Update")
end,
UpdateCommand=function(self)
if ind < 0 then
ind = 0
elseif ind == #packtable then
if ind == #packtable then
ind = ind - numpacks
elseif ind > #packtable - (#packtable % numpacks) then
ind = #packtable - (#packtable % numpacks)
end
if ind < 0 then
ind = 0
end
end,
DFRFinishedMessageCommand=function(self)
self:queuecommand("PackTableRefresh")
Expand Down

0 comments on commit 647c9d6

Please sign in to comment.