mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fixed start button persist bug.
This commit is contained in:
@@ -534,6 +534,9 @@ public class ControlConstructed {
|
|||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
view.getBtnStart().setVisible(true);
|
||||||
|
view.getBarProgress().setVisible(false);
|
||||||
|
|
||||||
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
||||||
Singletons.getControl().getMatchControl().initMatch();
|
Singletons.getControl().getMatchControl().initMatch();
|
||||||
|
|
||||||
|
|||||||
@@ -144,6 +144,9 @@ public class ControlDraft {
|
|||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
view.getBtnStart().setVisible(true);
|
||||||
|
view.getBarProgress().setVisible(false);
|
||||||
|
|
||||||
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
||||||
Singletons.getControl().getMatchControl().initMatch();
|
Singletons.getControl().getMatchControl().initMatch();
|
||||||
AllZone.getGameAction().newGame(Constant.Runtime.HUMAN_DECK[0], Constant.Runtime.COMPUTER_DECK[0]);
|
AllZone.getGameAction().newGame(Constant.Runtime.HUMAN_DECK[0], Constant.Runtime.COMPUTER_DECK[0]);
|
||||||
|
|||||||
@@ -561,8 +561,8 @@ public class ControlQuest {
|
|||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
view.getBarProgress().setVisible(false);
|
|
||||||
view.getBtnStart().setVisible(true);
|
view.getBtnStart().setVisible(true);
|
||||||
|
view.getBarProgress().setVisible(false);
|
||||||
|
|
||||||
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
||||||
Singletons.getControl().getMatchControl().initMatch();
|
Singletons.getControl().getMatchControl().initMatch();
|
||||||
|
|||||||
@@ -122,6 +122,9 @@ public class ControlSealed {
|
|||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
view.getBtnStart().setVisible(true);
|
||||||
|
view.getBarProgress().setVisible(false);
|
||||||
|
|
||||||
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
Singletons.getControl().changeState(FControl.MATCH_SCREEN);
|
||||||
Singletons.getControl().getMatchControl().initMatch();
|
Singletons.getControl().getMatchControl().initMatch();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user