Hide "start new game" overlay after game is started.

This commit is contained in:
elcnesh
2015-04-02 08:49:48 +00:00
parent 398ef0ac4f
commit 13ec102371
5 changed files with 35 additions and 0 deletions

View File

@@ -112,6 +112,13 @@ public enum CSubmenuGauntletContests implements ICDoc {
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Gauntlet, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SOverlayUtils.hideOverlay();
}
});
}
/* (non-Javadoc)

View File

@@ -141,6 +141,13 @@ public enum CSubmenuGauntletLoad implements ICDoc {
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Gauntlet, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SOverlayUtils.hideOverlay();
}
});
}
/* (non-Javadoc)

View File

@@ -85,6 +85,13 @@ public enum CSubmenuGauntletQuick implements ICDoc {
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Gauntlet, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SOverlayUtils.hideOverlay();
}
});
}
/* (non-Javadoc)

View File

@@ -153,6 +153,13 @@ public enum CSubmenuDraft implements ICDoc {
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Draft, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SOverlayUtils.hideOverlay();
}
});
}
/** */

View File

@@ -141,6 +141,13 @@ public enum CSubmenuWinston implements ICDoc {
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
hostedMatch.startMatch(GameType.Winston, null, starter, human, GuiBase.getInterface().getNewGuiGame());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
SOverlayUtils.hideOverlay();
}
});
}
/** */