Class InfoBoxButtonsColor
Info box writer with buttons and color support
Inheritance
Namespace: Terminaux.Inputs.Styles.Infobox
Assembly: Terminaux.dll
Syntax
public static class InfoBoxButtonsColor
Methods
| Edit this page View SourceWriteInfoBoxButtons(InputChoiceInfo[], string, params object[])
Writes the button info box
Declaration
public static int WriteInfoBoxButtons(InputChoiceInfo[] buttons, string text, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceInfo[] | buttons | Button names to define. This must be from 1 to 3 buttons. Any more of them and you'll have to use the InfoBoxSelectionColor to get an option to use more buttons as choice selections. |
string | text | Text to be written. |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxButtons(InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the button info box
Declaration
public static int WriteInfoBoxButtons(InputChoiceInfo[] buttons, string text, InfoBoxSettings settings, params object[] vars)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceInfo[] | buttons | Button names to define. This must be from 1 to 3 buttons. Any more of them and you'll have to use the InfoBoxSelectionColor to get an option to use more buttons as choice selections. |
string | text | Text to be written. |
InfoBoxSettings | settings | Infobox settings to use |
object[] | vars | Variables to format the message before it's written. |
Returns
Type | Description |
---|---|
int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |