Class InfoBoxSelectionColor
Info box writer with selection and color support
Inheritance
Namespace
Syntax
public static class InfoBoxSelectionColor
Methods
WriteInfoBoxSelection(int, int, InputChoiceCategoryInfo[], string, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceCategoryInfo[] selections, string text, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| currentSelection | int | Current selection (the choice that will be highlighted) |
| currentSelected | int | Current selected choice (for radio buttons) |
| selections | InputChoiceCategoryInfo[] | List of choices |
| text | string | Text to be written. |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(int, int, InputChoiceCategoryInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceCategoryInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| currentSelection | int | Current selection (the choice that will be highlighted) |
| currentSelected | int | Current selected choice (for radio buttons) |
| selections | InputChoiceCategoryInfo[] | List of choices |
| text | string | Text to be written. |
| settings | InfoBoxSettings | Infobox settings to use |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(int, int, InputChoiceInfo[], string, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceInfo[] selections, string text, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| currentSelection | int | Current selection (the choice that will be highlighted) |
| currentSelected | int | Current selected choice (for radio buttons) |
| selections | InputChoiceInfo[] | List of choices |
| text | string | Text to be written. |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(int, int, InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| currentSelection | int | Current selection (the choice that will be highlighted) |
| currentSelected | int | Current selected choice (for radio buttons) |
| selections | InputChoiceInfo[] | List of choices |
| text | string | Text to be written. |
| settings | InfoBoxSettings | Infobox settings to use |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(InputChoiceCategoryInfo[], string, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(InputChoiceCategoryInfo[] selections, string text, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| selections | InputChoiceCategoryInfo[] | List of choices |
| text | string | Text to be written. |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(InputChoiceCategoryInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(InputChoiceCategoryInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| selections | InputChoiceCategoryInfo[] | List of choices |
| text | string | Text to be written. |
| settings | InfoBoxSettings | Infobox settings to use |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(InputChoiceInfo[], string, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(InputChoiceInfo[] selections, string text, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| selections | InputChoiceInfo[] | List of choices |
| text | string | Text to be written. |
| vars | object[] | Variables to format the message before it's written. |
WriteInfoBoxSelection(InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection 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 WriteInfoBoxSelection(InputChoiceInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Name | Type | Description |
|---|---|---|
| selections | InputChoiceInfo[] | List of choices |
| text | string | Text to be written. |
| settings | InfoBoxSettings | Infobox settings to use |
| vars | object[] | Variables to format the message before it's written. |