Class Dialog

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

public class Dialog extends Object
Utility methods for chatbox dialogue prompts and continue buttons.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    select(String... options)
    Selects the first dialogue option matching any supplied text, or advances the current dialogue if no matching option interface is open.
    static String
    Returns the dialogue text from the active chatbox-style interface.

    Methods inherited from class java.lang.Object

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

    • Dialog

      public Dialog()
  • Method Details

    • select

      public static boolean select(String... options)
      Selects the first dialogue option matching any supplied text, or advances the current dialogue if no matching option interface is open.
      Parameters:
      options - option text fragments to match
      Returns:
      true if an option or continue button was activated
    • text

      public static String text()
      Returns the dialogue text from the active chatbox-style interface.
      Returns:
      dialogue text, or an empty string when no dialogue text is present