mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Update controls
This commit is contained in:
@@ -54,6 +54,8 @@ public class ControlWinLose {
|
||||
view.getBtnQuit().setEnabled(false);
|
||||
}
|
||||
});
|
||||
if(humancount == 0)
|
||||
view.getBtnRestart().setEnabled(false);
|
||||
}
|
||||
|
||||
/** Action performed when "continue" button is pressed in default win/lose UI. */
|
||||
|
||||
@@ -305,7 +305,9 @@ public class HostedMatch {
|
||||
humanController.getGui().clearAutoYields();
|
||||
}
|
||||
|
||||
if (!GuiBase.getInterface().isLibgdxPort()||!isMatchOver)
|
||||
if (humanCount > 0) //conceded
|
||||
humanController.getGui().afterGameEnd();
|
||||
else if (!GuiBase.getInterface().isLibgdxPort()||!isMatchOver)
|
||||
humanController.getGui().afterGameEnd();
|
||||
}
|
||||
humanControllers.clear();
|
||||
|
||||
Reference in New Issue
Block a user