Skip to main content Link Menu Expand (external link) Document Search Copy Copied

VariableConfig(vector<string> options, string title, int defaultOption)

Makes a new VariableConfig with the given options, title, and default option.

Parameters

  • options - The options to choose from.
  • title - The title of the VariableConfig.
  • defaultOption - The index of the default option.

Example

VariableConfig config({"Option 1", "Option 2", "Option 3"}, "Title", 1); // Defaults to "Option 2"