From 2ce8799a19adcc77bf661dba37fcf14c2a99b1b3 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Fri, 23 Oct 2026 18:28:33 +0200 Subject: [PATCH] Use black panes for the particle menu bottom bar Unused bottom bar columns are black glass panes, empty places above it are gray, including the free entry places of the slot editor. --- .../src/de/steamwar/lobby/particle/gui/BottomBar.java | 2 +- .../src/de/steamwar/lobby/particle/gui/SlotEditor.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/LobbySystem/src/de/steamwar/lobby/particle/gui/BottomBar.java b/LobbySystem/src/de/steamwar/lobby/particle/gui/BottomBar.java index c424dc3d..20982689 100644 --- a/LobbySystem/src/de/steamwar/lobby/particle/gui/BottomBar.java +++ b/LobbySystem/src/de/steamwar/lobby/particle/gui/BottomBar.java @@ -52,7 +52,7 @@ class BottomBar { for (int column = listMenu ? 1 : 0; column < (listMenu ? 8 : 9); column++) { int position = position(inventorySize, column); if (!inventory.hasItem(position)) { - inventory.setItem(position, new SWItem(Material.GRAY_STAINED_GLASS_PANE, " ", clickType -> { + inventory.setItem(position, new SWItem(Material.BLACK_STAINED_GLASS_PANE, " ", clickType -> { })); } } diff --git a/LobbySystem/src/de/steamwar/lobby/particle/gui/SlotEditor.java b/LobbySystem/src/de/steamwar/lobby/particle/gui/SlotEditor.java index 373c827c..e702ae07 100644 --- a/LobbySystem/src/de/steamwar/lobby/particle/gui/SlotEditor.java +++ b/LobbySystem/src/de/steamwar/lobby/particle/gui/SlotEditor.java @@ -85,6 +85,7 @@ public class SlotEditor { })); inventory.setItem(COST, costItem(player, user, slot)); BottomBar.fillUnused(inventory, SIZE, false); + fill(inventory, 0, SIZE); inventory.open(); return; } @@ -132,6 +133,7 @@ public class SlotEditor { ParticleMenu.open(player); })); BottomBar.fillUnused(inventory, SIZE, false); + fill(inventory, 0, SIZE); inventory.open(); } @@ -148,11 +150,11 @@ public class SlotEditor { LobbyPlayer.getLobbyPlayer(player).setSlot(index, slot); } - // Puts filler panes on the empty positions in the given range + // Puts gray filler panes on the empty positions in the given range; the bottom bar uses black ones void fill(SWInventory inventory, int from, int to) { for (int position = from; position < to; position++) { if (!inventory.hasItem(position)) { - inventory.setItem(position, new SWItem(Material.BLACK_STAINED_GLASS_PANE, " ", clickType -> { + inventory.setItem(position, new SWItem(Material.GRAY_STAINED_GLASS_PANE, " ", clickType -> { })); } }