More scroll tweaks

This commit is contained in:
MachineMuse 2013-04-13 18:50:18 -06:00
parent d67aae0537
commit 7df3f423d6
3 changed files with 8 additions and 7 deletions

View file

@ -38,7 +38,7 @@ public class ModuleSelectionSubFrame {
public void drawPartial(int min, int max) {
refreshButtonPositions();
double top = border.top();
if (min < top + 2 && max > top - 2) {
if (min < top + 2 && max > top + 6) {
MuseRenderer.drawString(this.category, border.left(), top);
}
for (ClickableModule clickie : moduleButtons) {
@ -49,13 +49,14 @@ public class ModuleSelectionSubFrame {
public void refreshButtonPositions() {
int i = 0, j = 0;
for (ClickableModule clickie : moduleButtons) {
double x = border.left() + 8 + 16 * i;
double y = border.top() + 16 + 16 * j;
clickie.move(x, y);
if (++i > 4) {
if (i > 4) {
i = 0;
j++;
}
double x = border.left() + 8 + 16 * i;
double y = border.top() + 16 + 16 * j;
clickie.move(x, y);
i++;
}
border.setHeight(28 + 16 * j);
}

View file

@ -38,7 +38,7 @@ public class BlinkDriveModule extends PowerModuleBase implements IRightClickModu
@Override
public String getCategory() {
return MuseCommonStrings.CATEGORY_TOOL;
return MuseCommonStrings.CATEGORY_MOVEMENT;
}
@Override

View file

@ -34,7 +34,7 @@ public class AquaAffinityModule extends PowerModuleBase implements IBlockBreakin
@Override
public String getCategory() {
return MuseCommonStrings.CATEGORY_ENVIRONMENTAL;
return MuseCommonStrings.CATEGORY_SPECIAL;
}
@Override