mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Alternate start button handling.
This commit is contained in:
@@ -23,7 +23,8 @@ public class StartButton extends SkinnedButton {
|
||||
setRolloverIcon(FSkin.getIcon(FSkinProp.IMG_BTN_START_OVER));
|
||||
setIcon(FSkin.getIcon(FSkinProp.IMG_BTN_START_UP));
|
||||
setPressedIcon(FSkin.getIcon(FSkinProp.IMG_BTN_START_DOWN));
|
||||
|
||||
// Accessible name.
|
||||
this.getAccessibleContext().setAccessibleName("Start game");
|
||||
addFocusListener(new FocusListener() {
|
||||
@Override
|
||||
public void focusLost(FocusEvent arg0) {
|
||||
|
||||
@@ -183,7 +183,6 @@ public class VLobby implements ILobbyView {
|
||||
if (lobby.hasControl()) {
|
||||
pnlStart.setOpaque(false);
|
||||
pnlStart.add(btnStart, "align center");
|
||||
btnStart.getAccessibleContext().setAccessibleName("Start game");
|
||||
// Start button event handling
|
||||
btnStart.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user