diff options
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/impl/Table.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jrummikub/view/impl/Table.java b/src/jrummikub/view/impl/Table.java index eb163d1..1d61749 100644 --- a/src/jrummikub/view/impl/Table.java +++ b/src/jrummikub/view/impl/Table.java @@ -84,12 +84,19 @@ class Table extends StonePanel implements ITable { public void paintStoneSet(Graphics2D g, StoneSet stoneSet, Position pos) { float x = pos.getX(); - + int width = getStonePainter().getStoneWidth(), height = getStonePainter().getStoneHeight(); + + g.setColor(new Color(0, 0, 0, 0.25f)); + g.fillRect((int)(x*width)-width/4, (int)(pos.getY()*height), width/4, height); + for (Stone stone : stoneSet) { getStonePainter().paintStone(g, stone, new Position(x, pos.getY()), selectedStones.contains(stone)); x++; } + + g.setColor(new Color(0, 0, 0, 0.25f)); + g.fillRect((int)(x*width), (int)(pos.getY()*height), width/4, height); } @Override |