@@ -22,7 +22,7 @@ public class Hotbar extends AbstractComponent implements RenderableComponent {
2222
2323 // Hotbar configuration
2424 private static final int SCALE = 4 ;
25- private static final int SIZE = 19 ;
25+ private static final int SIZE = 16 ;
2626 private static final int BORDER = 1 ;
2727 private static final int MARGIN = 20 ;
2828 private static final int SLOTS = 9 ;
@@ -97,10 +97,15 @@ private void drawHotbarSlots(Graphics2D g2d) {
9797 g2d .setColor (java .awt .Color .LIGHT_GRAY );
9898 g2d .drawRoundRect (x , 0 , SIZE - 1 , SIZE - 1 , 2 , 2 );
9999
100- // Slot decorations
100+ // Slot highlights
101101 g2d .setColor (java .awt .Color .GRAY );
102- g2d .drawLine (x + 2 , 1 , x + SIZE - 2 , 1 ); // Horizontal
103- g2d .drawLine (x + 1 , 1 , x + 1 , SIZE - 2 ); // Vertical
102+ g2d .drawLine (x + 2 , 1 , x + SIZE - 2 , 1 ); // Horizontal top
103+ g2d .drawLine (x + 1 , 1 , x + 1 , SIZE - 2 ); // Vertical top
104+
105+ // // Slot shadows
106+ g2d .setColor (java .awt .Color .DARK_GRAY );
107+ g2d .drawLine (x + 2 , SIZE - 2 , x + SIZE - 2 , SIZE - 2 ); // Horizontal bottom
108+ g2d .drawLine (x + SIZE - 2 , 2 , x + SIZE - 2 , SIZE - 2 ); // Vertical bottom
104109 }
105110 }
106111
@@ -136,5 +141,4 @@ public void onDetach() {
136141 public void onUpdate (float tpf ) {
137142 // Optional: Add update logic (e.g., animations or interactions)
138143 }
139-
140144}
0 commit comments