Skip to content

Commit

Permalink
Fix back-arrow position
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Apr 27, 2016
1 parent fd44080 commit 1514d7d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -423,14 +423,15 @@ public void initGui() {
}

// The books are unreadable at Gui Scale set to small, so we'll double the scale, and of course half the size so that all our code still works as it should
/*
if(mc.gameSettings.guiScale == 1) {
width /= 2F;
height /= 2F;
}
}*/

previousArrow = new GuiArrow(0, -50, -50, 1, book.appearance.arrowColor, book.appearance.arrowColorHover);
nextArrow = new GuiArrow(1, -50, -50, 0, book.appearance.arrowColor, book.appearance.arrowColorHover);
backArrow = new GuiArrow(2, width / 2 - GuiArrow.WIDTH / 2, height / 2 - GuiArrow.HEIGHT / 2 + PAGE_HEIGHT / 3, 3, book.appearance.arrowColor, book.appearance.arrowColorHover);
backArrow = new GuiArrow(2, width / 2 - GuiArrow.WIDTH / 2, height / 2 + GuiArrow.HEIGHT / 2 + PAGE_HEIGHT/2, 3, book.appearance.arrowColor, book.appearance.arrowColorHover);
indexArrow = new GuiArrow(3, width / 2 - PAGE_WIDTH_UNSCALED, height / 2 - PAGE_HEIGHT_UNSCALED / 2 - 3, 3, book.appearance.arrowColor, book.appearance.arrowColorHover);

buttonList.add(previousArrow);
Expand Down

0 comments on commit 1514d7d

Please sign in to comment.