summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/MainMenu.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/MenuCtrl.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/NewGameMenu.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/OptionsMenu.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/PlayMenu.java3
-rw-r--r--core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java2
6 files changed, 7 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/MainMenu.java b/core/src/ch/asynk/rustanddust/menu/MainMenu.java
index 6d7016a..b02a1e4 100644
--- a/core/src/ch/asynk/rustanddust/menu/MainMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/MainMenu.java
@@ -85,7 +85,7 @@ public class MainMenu extends Patch implements MenuCtrl.Panel
}
@Override
- public void postAnswer(boolean ok) { }
+ public MenuCtrl.MenuType postAnswer(boolean ok) { return MenuCtrl.MenuType.NONE; }
@Override
public String getAsk() { return null; }
diff --git a/core/src/ch/asynk/rustanddust/menu/MenuCtrl.java b/core/src/ch/asynk/rustanddust/menu/MenuCtrl.java
index b793d9a..40a75c2 100644
--- a/core/src/ch/asynk/rustanddust/menu/MenuCtrl.java
+++ b/core/src/ch/asynk/rustanddust/menu/MenuCtrl.java
@@ -33,7 +33,7 @@ public class MenuCtrl implements Disposable, Drawable
public void computePosition();
public MenuType touch(float x, float y);
public String getAsk();
- public void postAnswer(boolean ok);
+ public MenuType postAnswer(boolean ok);
public boolean drag(float x, float y, int dx, int dy);
}
diff --git a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
index 4a4f3c7..b19dd8b 100644
--- a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
@@ -72,7 +72,7 @@ public class NewGameMenu extends Patch implements MenuCtrl.Panel
}
@Override
- public void postAnswer(boolean ok) { }
+ public MenuCtrl.MenuType postAnswer(boolean ok) { return MenuCtrl.MenuType.NONE; }
@Override
public String getAsk()
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
index c1b5603..b025049 100644
--- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
@@ -149,7 +149,7 @@ public class OptionsMenu extends Patch implements MenuCtrl.Panel
}
@Override
- public void postAnswer(boolean ok) { }
+ public MenuCtrl.MenuType postAnswer(boolean ok) { return MenuCtrl.MenuType.NONE; }
@Override
public String getAsk() { return null; }
diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
index cad12dd..dbc6f54 100644
--- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
@@ -44,12 +44,13 @@ public class PlayMenu extends Patch implements MenuCtrl.Panel
}
@Override
- public void postAnswer(boolean ok)
+ public MenuCtrl.MenuType postAnswer(boolean ok)
{
if (ok) {
game.db.deleteGame(GameRecord.remove(getList().getIdx()));
getList().unselect();
}
+ return MenuCtrl.MenuType.NONE;
}
@Override
diff --git a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
index 02b65c3..d1c24a5 100644
--- a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
@@ -28,7 +28,7 @@ public class TutorialsMenu extends Patch implements MenuCtrl.Panel
}
@Override
- public void postAnswer(boolean ok) { }
+ public MenuCtrl.MenuType postAnswer(boolean ok) { return MenuCtrl.MenuType.NONE; }
@Override
public String getAsk() { return null; }