From 0aaee2460045769b79106ae2c6ba26a911f381df Mon Sep 17 00:00:00 2001 From: NewGarbo Date: Thu, 26 Nov 2015 21:06:33 +0000 Subject: [PATCH] fixed gear UI display stuff incorrectly --- .../src/mineplex/core/common/util/UtilUI.java | 2 +- .../src/mineplex/game/clans/items/ui/GearPage.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilUI.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilUI.java index b6b228c17..54c190729 100644 --- a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilUI.java +++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilUI.java @@ -22,7 +22,7 @@ public class UtilUI for (int line = 0; line < lines; line++) { int itemsInCurLine = line == lines - 1 ? items - (line * itemsPerLine) : itemsPerLine; - int startIndex = ((newLinePadding * 9) * line) + 9 * line - itemsInCurLine + 5; + int startIndex = (startingLine * 9) + ((newLinePadding * 9) * line) + 9 * line - itemsInCurLine + 5; for (int item = 0; item < itemsInCurLine; item++) { diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ui/GearPage.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ui/GearPage.java index 3e6690330..3853bd545 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ui/GearPage.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ui/GearPage.java @@ -274,7 +274,7 @@ public class GearPage extends ShopPageBase stageTitle = "2. Select Legendary Item"; stageMaterial = _factory.getMaterial() == null ? stageMaterial : _factory.getMaterial(); - int[] indices = UtilUI.getIndicesFor(_legendaryItems.size(), 1, 5,0); + int[] indices = UtilUI.getIndicesFor(_legendaryItems.size(), 1); int index = 0; for (final Class legendary : _legendaryItems) @@ -302,7 +302,7 @@ public class GearPage extends ShopPageBase { stageTitle = "Select Weapon Type"; - int[] indices = UtilUI.getIndicesFor(_weaponTypes.size(), 1, 5,0); + int[] indices = UtilUI.getIndicesFor(_weaponTypes.size(), 1); int index = 0; for (final Material type : _weaponTypes)