Skip to content

Commit

Permalink
fixed inv menu scroll direction
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj42 committed May 5, 2018
1 parent d46808f commit f9b2af9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void draw(Batch batch, float parentAlpha) {
public RenderableListItem getSelected() { return listItems.length == 0 ? null : listItems[selectionIndex]; }

public void moveFocus(int xd, int yd) {
int newSelection = selectionIndex + yd;
int newSelection = selectionIndex - yd;
if(newSelection < 0)
newSelection = listItems.length - ((-newSelection) % listItems.length);
newSelection = newSelection % listItems.length;
Expand Down

0 comments on commit f9b2af9

Please sign in to comment.