Class InfoBoxButtonsColor
Info box writer with buttons and color support
Inheritance
Namespace
Syntax
public static class InfoBoxButtonsColor
Methods
WriteInfoBoxButtons(InputChoiceInfo[], string, params object[])
Writes the button info box
Returns
Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred
Declaration
public static int WriteInfoBoxButtons(InputChoiceInfo[] buttons, string text, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| buttons | InputChoiceInfo[] | 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. |
| text | string | Text to be written. |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxButtons(InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the button info box
Returns
Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred
Declaration
public static int WriteInfoBoxButtons(InputChoiceInfo[] buttons, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| buttons | InputChoiceInfo[] | 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. |
| text | string | Text to be written. |
| settings | InfoBoxSettings | Infobox settings to use |
| vars | object[] | Variables to format the message before it's written. |