Adjust readability and padding of item panel footer size (#470)

This commit is contained in:
Caedis authored and GitHub committed 2024-03-07 05:32:08 -06:00
1 parent b9cd48f8f9
commit 1b34b24495
1 file changed
+4 -3
+4 -3
View File
@@ -200,13 +200,14 @@ public class ItemPanel extends PanelWidget {
historyPanel.x = x;
historyPanel.w = w;
historyPanel.h = ItemsGrid.SLOT_SIZE * NEIClientConfig.getIntSetting("inventory.history.useRows");
if (NEIClientConfig.showItemQuantityWidget() || !NEIClientConfig.isSearchWidgetCentered()) {
historyPanel.y = quantity.y - historyPanel.h - PanelWidget.PADDING;
return quantity.h + historyPanel.h + PanelWidget.PADDING * 2;
} else {
historyPanel.y = y + h - historyPanel.h - PanelWidget.PADDING;
historyPanel.y = y + h - historyPanel.h;
return historyPanel.h + PanelWidget.PADDING;
}
return ((NEIClientConfig.showItemQuantityWidget() || !NEIClientConfig.isSearchWidgetCentered()) ? quantity.h
: 0) + historyPanel.h + PanelWidget.PADDING * 2;
}
return quantity.h + PanelWidget.PADDING;