private void initGameWindow() { bg = getBg(); bg.clear(Color.blue); addActor(okBtn, new Location(50, 4)); okBtn.addButtonListener(this); show(); }
public void buttonClicked(GGButton button) { if (nbTaken == 0) setStatusText("You have to remove at least 1 match"); else { agent.sendCommand(agentName, Command.REPORT_OK); okBtn.setEnabled(false); isMouseEnabled = false; } }
private void initPlayground() { okBtn.setEnabled(false); isMouseEnabled = false; removeActors(Match.class); for (int i = 0; i < nbMatches; i++) { Match match = new Match(); addActor(match, new Location(2 + 3 * i, 4)); match.addMouseTouchListener(this, GGMouse.lClick); } }