Fix Button

This commit is contained in:
Kam committed 2025-02-06 18:42:46 -05:00
1 parent 5de68934eb
commit 8a270b1548
2 files changed
+2 -2

No files matched your search

@@ -154,7 +154,7 @@ public class GuiNPCGlobalMainMenu extends GuiNPCInterface2 {
int total = buttons.size();
if (total == 0)
return;
int padding = 5;
int padding = 2;
int[] optimal = computeOptimalLayout(total, padding);
int rows = optimal[0];
int buttonSize = optimal[1]; // composite button is square with side "buttonSize"
@@ -46,7 +46,7 @@ public class GuiNpcSquareButton extends GuiNpcButton {
public void updatePositionAndSize(int x, int y, int newSize) {
this.xPosition = x;
this.yPosition = y;
this.size = newSize;
this.size = newSize - 1;
this.width = newSize;
this.height = newSize;
this.iconAreaHeight = newSize - TEXT_BUTTON_HEIGHT;