Skip to main content

Variants

Variants allow one single slot to represent multiple choices without opening submenus. For instance, cycling through weather presets, car speeds, or emotes:

Radial Wheel Variants in Action

var weatherEntry = new RadialEntryDef("weather", 1) { Label = "Weather" };

weatherEntry.AddVariant("extrasunny", "Extra Sunny");
weatherEntry.AddVariant("clear", "Clear Sky");
weatherEntry.AddVariant("rain", "Heavy Rain");
weatherEntry.AddVariant("foggy", "Dense Fog");

menu.AddEntry(weatherEntry);

Controls for Variants

  • Gamepad: D-Pad Left / Right while hovering the slot.
  • Mouse: Scroll Wheel while hovering the slot.
  • The active variant title and pagination dots will automatically display in the center hub!
  • When the player confirms the selection, result.VariantId and result.VariantLabel contain the chosen variant.