Exemplo n.º 1
0
    @Override
    public void onEnter() {

      // Unpause if paused.
      if (GameEngine.getTimeMode() == TimeMode.PAUSED) {
        GameEngine.revertTimeMode();
      }

      // Collapse event log if expanded.
      if (EventLog.getIsDisplayModeEnabled(EventLog.DisplayMode.EXPANDED)) {
        EventLog.toggleDisplayMode(EventLog.DisplayMode.EXPANDED);
      }
    }
    @Override
    public void execute() {
      EventLog.toggleDisplayMode(EventLog.DisplayMode.PINNED);

      String message = "You have ";
      String messageB = " the event log ";
      if (EventLog.getIsDisplayModeEnabled(EventLog.DisplayMode.PINNED)) {
        message = message + "pinned" + messageB + "to";
      } else {
        message = message + "unpinned" + messageB + "from";
      }

      message = message + " the screen.";

      EventLog.registerEvent(Event.ALERT_MINOR, message);
    }
 @Override
 public String getControlText() {
   String text = "P: ";
   text += EventLog.getIsDisplayModeEnabled(EventLog.DisplayMode.AUTO_HIDE) ? "Pin" : "Unpin";
   return text + " event log on all menus.";
 }
 @Override
 public void execute() {
   EventLog.scrollLogForwards();
 }
Exemplo n.º 5
0
    @Override
    public void onEnter() {
      EventLog.toggleDisplayMode(EventLog.DisplayMode.EXPANDED);

      pauseIfUnpaused();
    }