From 1514d7d6124579dc72992c5263a4e63d52f96c6a Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Wed, 27 Apr 2016 10:22:31 +0200 Subject: [PATCH] Fix back-arrow position --- .../java/slimeknights/mantle/client/gui/book/GuiBook.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/slimeknights/mantle/client/gui/book/GuiBook.java b/src/main/java/slimeknights/mantle/client/gui/book/GuiBook.java index 43716f6..9758648 100644 --- a/src/main/java/slimeknights/mantle/client/gui/book/GuiBook.java +++ b/src/main/java/slimeknights/mantle/client/gui/book/GuiBook.java @@ -423,14 +423,15 @@ public class GuiBook extends GuiScreen implements IProgressMeter { } // 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);