Class Input

java.lang.Object
dev.twilite.game.facade.Input

public class Input extends Object
Helpers for submitting values to active modal dialog prompts.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Closes the Input layer interface
    static void
    resumePauseCount(int value)
    Submits a numeric value to a count-entry dialog.
    static void
    Submits a name to a name-entry dialog.
    static void
    Submits text to a string-entry dialog.
    static boolean
    Returns whether the Input layer interface is currently visible.
    static String
    Returns whether the Input layer text if it is currently visible.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Input

      public Input()
  • Method Details

    • showing

      public static boolean showing()
      Returns whether the Input layer interface is currently visible.
    • title

      public static String title()
      Returns whether the Input layer text if it is currently visible.
    • close

      public static void close()
      Closes the Input layer interface
    • resumePauseString

      public static void resumePauseString(String text)
      Submits text to a string-entry dialog.
      Parameters:
      text - the text to submit, or null to submit an empty string
    • resumePauseName

      public static void resumePauseName(String text)
      Submits a name to a name-entry dialog.
      Parameters:
      text - the name to submit, or null to submit an empty string
    • resumePauseCount

      public static void resumePauseCount(int value)
      Submits a numeric value to a count-entry dialog.
      Parameters:
      value - the value to submit