Class Prompt
Simple one-line interface to edit options in the player.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Prompt
Assembly: Trimmer.dll
Syntax
public class Prompt : MonoBehaviour
Fields
|
Improve this Doc
View Source
activationSequence
Sequence of keys that need to be pressed to activate prompt.
Declaration
public string activationSequence
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
completionIndex
Declaration
protected int completionIndex
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
completions
Declaration
protected List<string> completions
Field Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
|
Improve this Doc
View Source
enablePrompt
Declaration
protected bool enablePrompt
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
fontSize
Font size used for the prompt (0 = Unity default).
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
keySequence
Declaration
protected KeyCode[] keySequence
Field Value
Type |
Description |
UnityEngine.KeyCode[] |
|
|
Improve this Doc
View Source
padding
Padding applied to the edge of the window/screen.
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
position
Position of the prompt on the screen.
Declaration
public Prompt.Position position
Field Value
|
Improve this Doc
View Source
promptHeight
Declaration
protected float promptHeight
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
promptPrefix
Declaration
public string promptPrefix
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
promptRect
Declaration
protected Rect promptRect
Field Value
Type |
Description |
UnityEngine.Rect |
|
|
Improve this Doc
View Source
promptStyle
Declaration
protected GUIStyle promptStyle
Field Value
Type |
Description |
UnityEngine.GUIStyle |
|
|
Improve this Doc
View Source
sequencePos
Declaration
protected int sequencePos
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
Instance
Declaration
public static Prompt Instance { get; protected set; }
Property Value
Methods
|
Improve this Doc
View Source
CompleteOptionRecursive(String, Option, String)
Declaration
protected void CompleteOptionRecursive(string path, Option option, string baseInput)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Option |
option |
|
System.String |
baseInput |
|
|
Improve this Doc
View Source
CompletePrompt(Int32)
Declaration
protected void CompletePrompt(int moveIndex = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
moveIndex |
|
|
Improve this Doc
View Source
ExecutePrompt()
Declaration
protected void ExecutePrompt()
|
Improve this Doc
View Source
OnGUI()
Declaration
|
Improve this Doc
View Source
ParseActivationSequence()
Declaration
protected void ParseActivationSequence()
|
Improve this Doc
View Source
StartPrompt()
Declaration
protected void StartPrompt()
|
Improve this Doc
View Source
StopPrompt()
Declaration
protected void StopPrompt()
|
Improve this Doc
View Source
Update()
Declaration