Permalink
Browse files

UpdateContainerWindow: scroll in multiples of the number of columns

yeah it's different in iwd2 and not only made the scrolling awkward (3 vs 5),
but for certain large piles, you couldn't see the whole item list without
picking several of them up first (ice temple battlesquare insta-win mod)
  • Loading branch information...
1 parent 264fe29 commit 6c1967b5bc5fec9e115305058dd0649d28be0b64 @lynxlynxlynx lynxlynxlynx committed May 8, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 gemrb/GUIScripts/CommonWindow.py
@@ -95,7 +95,8 @@ def UpdateContainerWindow ():
def RedrawContainerWindow ():
Window = ContainerWindow
- LeftTopIndex = GemRB.GetVar ("LeftTopIndex") * 3
+ # scroll in multiples of the number of columns
+ LeftTopIndex = GemRB.GetVar ("LeftTopIndex") * leftdiv
LeftIndex = GemRB.GetVar ("LeftIndex")
RightTopIndex = GemRB.GetVar ("RightTopIndex") * 2
RightIndex = GemRB.GetVar ("RightIndex")

0 comments on commit 6c1967b

Please sign in to comment.