Свойство | Type | Description | |
---|---|---|---|
AfterDeserialized | void | ||
ResetBox | void |
Méthode | Description | |
---|---|---|
Center ( ) : void |
Centers the window according to the SadConsole.Engine.Device.Viewport size.
|
|
Hide ( ) : void |
Hides the window.
|
|
Message ( ColoredString message, string closeButtonText, System.Action closedCallback = null ) : void |
Displays a dialog to the user with a specific message.
|
|
Message ( string message, string closeButtonText, System.Action closedCallback = null ) : void |
Displays a dialog to the user with a specific message.
|
|
ProcessKeyboard ( Input info ) : bool |
Processes the keyboard looking for the ESC key press to close the console, if required. Otherwise the base ControlsConsole will process the keyboard.
|
|
ProcessMouse ( Input info ) : bool |
Processes the mouse. If allowed, will move the console around with the mouse.
|
|
Prompt ( ColoredString message, string yesPrompt, string noPrompt, Action |
Shows a window prompt with two buttons for the user to click.
|
|
Prompt ( string message, string yesPrompt, string noPrompt, Action |
Shows a window prompt with two buttons for the user to click.
|
|
Redraw ( ) : void |
Redraws the border and title of the window.
|
|
Render ( ) : void | ||
Show ( ) : void |
Displays this window using the modal value of the ModalIsDefault property.
|
|
Show ( bool modal ) : void |
Displays this window.
|
|
Window ( int width, int height ) : System |
Méthode | Description | |
---|---|---|
OnVisibleChanged ( ) : void |
Méthode | Description | |
---|---|---|
AfterDeserialized ( StreamingContext context ) : void | ||
ResetBox ( ) : void |
public static Message ( ColoredString message, string closeButtonText, System.Action closedCallback = null ) : void | ||
message | ColoredString | The message. (background color is ignored) |
closeButtonText | string | The text of the dialog's close button. |
closedCallback | System.Action | A callback indicating the message was dismissed. |
Résultat | void |
public static Message ( string message, string closeButtonText, System.Action closedCallback = null ) : void | ||
message | string | The message. |
closeButtonText | string | The text of the dialog's close button. |
closedCallback | System.Action | A callback indicating the message was dismissed. |
Résultat | void |
public ProcessKeyboard ( Input info ) : bool | ||
info | Input | Keyboard state. |
Résultat | bool |
public ProcessMouse ( Input info ) : bool | ||
info | Input | The mouse state. |
Résultat | bool |
public static Prompt ( ColoredString message, string yesPrompt, string noPrompt, Action |
||
message | ColoredString | The text to display. (background color is ignored) |
yesPrompt | string | The yes button's text. |
noPrompt | string | The no button's text. |
resultCallback | Action |
Callback with the yes (true) or no (false) result. |
Résultat | void |
public static Prompt ( string message, string yesPrompt, string noPrompt, Action |
||
message | string | The text to display. |
yesPrompt | string | The yes button's text. |
noPrompt | string | The no button's text. |
resultCallback | Action |
Callback with the yes (true) or no (false) result. |
Résultat | void |
public Show ( bool modal ) : void | ||
modal | bool | When true, the window will be displayed as modal; otherwise false. |
Résultat | void |
public Window ( int width, int height ) : System | ||
width | int | |
height | int | |
Résultat | System |