Package dev.twilite.game.facade
Class Input
java.lang.Object
dev.twilite.game.facade.Input
Helpers for submitting values to active modal dialog prompts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Closes the Input layer interfacestatic voidresumePauseCount(int value) Submits a numeric value to a count-entry dialog.static voidresumePauseName(String text) Submits a name to a name-entry dialog.static voidresumePauseString(String text) Submits text to a string-entry dialog.static booleanshowing()Returns whether the Input layer interface is currently visible.static Stringtitle()Returns whether the Input layer text if it is currently visible.
-
Constructor Details
-
Input
public Input()
-
-
Method Details
-
showing
public static boolean showing()Returns whether the Input layer interface is currently visible. -
title
Returns whether the Input layer text if it is currently visible. -
close
public static void close()Closes the Input layer interface -
resumePauseString
Submits text to a string-entry dialog.- Parameters:
text- the text to submit, ornullto submit an empty string
-
resumePauseName
Submits a name to a name-entry dialog.- Parameters:
text- the name to submit, ornullto 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
-