Skip to content

Commit

Permalink
Sizing tweak for the arrow, looks much better now.
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Hoover <[email protected]>
  • Loading branch information
Ken Hoover committed Apr 29, 2014
1 parent 0d72882 commit f887737
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rop-game/src/com/kandl/ropgame/managers/SheetManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void removeSheet(OrderSheet o) {
public static void switchTo(int i) {
currentSheet.remove();
currentSheet.setDragable(false);
downArrow.setPosition(10 + miniWidth * i, height - 30);
downArrow.setPosition(5 + miniWidth * i + (miniWidth - miniSheets.get(i).getLogicWidth()) / 2f, height - 30);
currentSheet = miniSheets.get(i).getOrder();
currentSheet.setDragable(dragable);
UI.addActor(currentSheet);
Expand All @@ -85,6 +85,10 @@ public static void layout() {
m.resize(miniWidth - 10);
m.addAction(Actions.moveTo(10 + miniWidth * i++ + (miniWidth - m.getLogicWidth()) / 2f, height - padY + 35));
}
MiniOrderSheet m = currentSheet.getMini();
if (m != null) {
downArrow.setPosition(5 + miniWidth * miniSheets.indexOf(m, true) + (miniWidth - m.getLogicWidth()) / 2f, height - 30);
}
currentSheet.addAction(Actions.moveTo(width + 45, 130));
}

Expand Down

0 comments on commit f887737

Please sign in to comment.