diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-28 21:54:55 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-28 21:54:55 +0100 |
commit | 2ced9399f24ab27a60143e357f5c7f6a16dc9d96 (patch) | |
tree | 8dc6c55753b77d187761a566ece3cf894b3086e7 /core/src/ch | |
parent | f2b06e812172508ae9be6f35610316d3d09692ba (diff) | |
download | RustAndDust-2ced9399f24ab27a60143e357f5c7f6a16dc9d96.zip RustAndDust-2ced9399f24ab27a60143e357f5c7f6a16dc9d96.tar.gz |
ui/OkCancel: get rid of specific enum Action
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/ui/OkCancel.java | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/core/src/ch/asynk/tankontank/ui/OkCancel.java b/core/src/ch/asynk/tankontank/ui/OkCancel.java index 39f72cf..ba61642 100644 --- a/core/src/ch/asynk/tankontank/ui/OkCancel.java +++ b/core/src/ch/asynk/tankontank/ui/OkCancel.java @@ -15,15 +15,6 @@ public class OkCancel extends Patch protected Label label; protected Bg okBtn; protected Bg cancelBtn; - public Action action; - - public enum Action - { - EXIT_BOARD, - ABORT_TURN, - END_TURN, - END_DEPLOYMENT, - } public OkCancel(BitmapFont font, TextureAtlas atlas) { @@ -45,15 +36,13 @@ public class OkCancel extends Patch cancelBtn.translate(dx, dy); } - public void show(String msg, Action action) + public void show(String msg) { - show(msg, action, Position.MIDDLE_CENTER); + show(msg, Position.MIDDLE_CENTER); } - public void show(String msg, Action action, Position position) + public void show(String msg, Position position) { - this.action = action; - label.write(msg); float height = (label.getHeight() + okBtn.getHeight() + (2 * PADDING) + (2 * VSPACING)); |