v1.2.0: added a game action binding for exit button
This commit is contained in:
parent
c98e60f87a
commit
c5a97fe027
|
@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.TitleScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndKeyBindings;
|
||||
import com.watabou.input.GameAction;
|
||||
import com.watabou.noosa.Game;
|
||||
|
||||
public class ExitButton extends IconButton {
|
||||
|
@ -45,6 +46,11 @@ public class ExitButton extends IconButton {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public GameAction keyAction() {
|
||||
return GameAction.BACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String hoverText() {
|
||||
return Messages.titleCase(Messages.get(WndKeyBindings.class, "back"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user