private void registerKeyboardCommands(MegaMekController controller) { if (controller == null) { return; } // Register the action for CLEAR controller.registerCommandAction(KeyCommandBind.CANCEL.cmd, new CommandAction() { @Override public boolean shouldPerformAction() { if (!bv.getChatterBoxActive()) { return false; } else { return true; } } @Override public void performAction() { clearMessage(); slideDown(); } }); }
controller.registerCommandAction(KeyCommandBind.AUTO_ARTY_DEPLOYMENT_ZONE.cmd, new CommandAction() {
final MegaMekController controller) { controller.registerCommandAction(KeyCommandBind.UD_GENERAL.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UD_PILOT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UD_ARMOR.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UD_SYSTEMS.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UD_WEAPONS.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UD_EXTRAS.cmd, new CommandAction() {
clientgui.controller.registerCommandAction(KeyCommandBind.DONE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UNDO.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_LEFT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_RIGHT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.FIRE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_MODE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_MODE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.CANCEL.cmd, new CommandAction() {
controller.registerCommandAction(KeyCommandBind.TOGGLE_ISO.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TOGGLE_CHAT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TOGGLE_CHAT_CMD.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.CENTER_ON_SELECTED.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.SCROLL_NORTH.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.SCROLL_SOUTH.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.SCROLL_EAST.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.SCROLL_WEST.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.FIELD_FIRE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TOGGLE_DRAW_LABELS.cmd, new CommandAction() {
controller.registerCommandAction(KeyCommandBind.TURN_LEFT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TURN_RIGHT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.UNDO.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.MOVE_ENVELOPE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.CANCEL.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TOGGLE_MOVEMODE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TOGGLE_CONVERSIONMODE.cmd, new CommandAction() {
controller.registerCommandAction(KeyCommandBind.UNDO.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_LEFT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_RIGHT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.FIRE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_TARGET.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_TARGET.cmd, new CommandAction() {
clientgui.controller.registerCommandAction(KeyCommandBind.DONE.cmd, new CommandAction() {
controller.registerCommandAction(KeyCommandBind.UNDO.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_LEFT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.TWIST_RIGHT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.FIRE.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_WEAPON.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_UNIT.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.NEXT_TARGET.cmd, new CommandAction() { controller.registerCommandAction(KeyCommandBind.PREV_TARGET.cmd, new CommandAction() {