fixed gear UI display stuff incorrectly

This commit is contained in:
NewGarbo 2015-11-26 21:06:33 +00:00
parent bb3ea0115d
commit 0aaee24600
2 changed files with 3 additions and 3 deletions

View File

@ -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++)
{

View File

@ -274,7 +274,7 @@ public class GearPage extends ShopPageBase<GearManager, GearShop>
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<? extends LegendaryItem> legendary : _legendaryItems)
@ -302,7 +302,7 @@ public class GearPage extends ShopPageBase<GearManager, GearShop>
{
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)