Skip to content

Commit

Permalink
Added [color]-to-play buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlew committed Oct 25, 2010
1 parent 542505e commit bf8a6c3
Show file tree
Hide file tree
Showing 6 changed files with 310 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/sf/gogui/gogui/GoGuiActions.java
Expand Up @@ -206,12 +206,12 @@ public void actionPerformed(ActionEvent e) {
m_goGui.actionClockStart(); } };

public final Action m_actionToggleComputerColorBlack =
new Action("ACT_COMPUTER_PLAYS_BLACK") {
new Action("ACT_COMPUTER_PLAYS_BLACK", null, "gogui-computer-black") {
public void actionPerformed(ActionEvent e) {
m_goGui.actionToggleComputerColorBlack(); } };

public final Action m_actionToggleComputerColorWhite =
new Action("ACT_COMPUTER_PLAYS_WHITE") {
new Action("ACT_COMPUTER_PLAYS_WHITE", null, "gogui-computer-white") {
public void actionPerformed(ActionEvent e) {
m_goGui.actionToggleComputerColorWhite(); } };

Expand Down
3 changes: 3 additions & 0 deletions src/net/sf/gogui/gogui/GoGuiToolBar.java
Expand Up @@ -33,6 +33,9 @@ public GoGuiToolBar(GoGui goGui)
addToggleButton(actions.m_actionSetupBlack);
addToggleButton(actions.m_actionSetupWhite);
addSeparator();
addToggleButton(actions.m_actionToggleComputerColorBlack);
addToggleButton(actions.m_actionToggleComputerColorWhite);
addSeparator();
addButton(actions.m_actionBeginning);
addButton(actions.m_actionBackwardTen);
addButton(actions.m_actionBackward);
Expand Down
Binary file added src/net/sf/gogui/images/gogui-computer-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions src/net/sf/gogui/images/gogui-computer-black.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/net/sf/gogui/images/gogui-computer-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
198 changes: 198 additions & 0 deletions src/net/sf/gogui/images/gogui-computer-white.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf8a6c3

Please sign in to comment.