|
@@ -209,29 +209,29 @@ public class GameWindow extends JFrame implements GameObserver, MouseListener, K
|
209
|
209
|
|
210
|
210
|
buttons.put(Button.TYPE.FAST, new Button("Fast",
|
211
|
211
|
new Rectangle(BUTTON_OFFSET, topButton + 0 * buttonOffset, BUTTON_WIDTH,
|
212
|
|
- BUTTON_HEIGHT)));
|
|
212
|
+ BUTTON_HEIGHT), backgroundColour));
|
213
|
213
|
buttons.put(Button.TYPE.NORMAL, new Button("Medium",
|
214
|
214
|
new Rectangle(BUTTON_OFFSET, topButton + 1 * buttonOffset, BUTTON_WIDTH,
|
215
|
|
- BUTTON_HEIGHT)));
|
|
215
|
+ BUTTON_HEIGHT), backgroundColour));
|
216
|
216
|
buttons.put(Button.TYPE.SLOW, new Button("Slow",
|
217
|
217
|
new Rectangle(BUTTON_OFFSET, topButton + 2 * buttonOffset, BUTTON_WIDTH,
|
218
|
|
- BUTTON_HEIGHT)));
|
|
218
|
+ BUTTON_HEIGHT), backgroundColour));
|
219
|
219
|
buttons.put(Button.TYPE.CONTINUE, new Button("Continue",
|
220
|
220
|
new Rectangle(BUTTON_OFFSET, topButton + 3 * buttonOffset, BUTTON_WIDTH,
|
221
|
|
- BUTTON_HEIGHT)));
|
|
221
|
+ BUTTON_HEIGHT), backgroundColour));
|
222
|
222
|
|
223
|
223
|
buttons.put(Button.TYPE.CHECK, new Button("Check / Call",
|
224
|
224
|
new Rectangle(rightButton, topButton + 0 * buttonOffset, BUTTON_WIDTH,
|
225
|
|
- BUTTON_HEIGHT)));
|
|
225
|
+ BUTTON_HEIGHT), backgroundColour));
|
226
|
226
|
buttons.put(Button.TYPE.OPEN, new Button("Open / Raise",
|
227
|
227
|
new Rectangle(rightButton, topButton + 1 * buttonOffset, BUTTON_WIDTH,
|
228
|
|
- BUTTON_HEIGHT)));
|
|
228
|
+ BUTTON_HEIGHT), backgroundColour));
|
229
|
229
|
buttons.put(Button.TYPE.FOLD, new Button("Fold",
|
230
|
230
|
new Rectangle(rightButton, topButton + 2 * buttonOffset, BUTTON_WIDTH,
|
231
|
|
- BUTTON_HEIGHT)));
|
|
231
|
+ BUTTON_HEIGHT), backgroundColour));
|
232
|
232
|
buttons.put(Button.TYPE.DISCARD, new Button("Discard",
|
233
|
233
|
new Rectangle(rightButton, topButton + 3 * buttonOffset, BUTTON_WIDTH,
|
234
|
|
- BUTTON_HEIGHT)));
|
|
234
|
+ BUTTON_HEIGHT), backgroundColour));
|
235
|
235
|
}
|
236
|
236
|
|
237
|
237
|
/**
|
|
@@ -339,7 +339,7 @@ public class GameWindow extends JFrame implements GameObserver, MouseListener, K
|
339
|
339
|
nextCardPos.put(myPlayer, new Point(x + xOffset, yCardPosition));
|
340
|
340
|
|
341
|
341
|
if (inShowdown && !myPlayer.hasFolded() && myPlayer.getCards().size() > 0) {
|
342
|
|
- g.setColor(Color.GREEN);
|
|
342
|
+ g.setColor(backgroundColour.brighter().brighter());
|
343
|
343
|
String[] hand = game.getHandText(myPlayer).split("\n");
|
344
|
344
|
int yo = 0;
|
345
|
345
|
for (String line : hand) {
|