Vixen
02b45cc4
csharp
public static class ShowFlags

The show flags as a list, so a menu is generated rather than written twice.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Generated from this, the same bargain PrimitiveShapes.All makes. A flag added to SceneShow and to All appears in the Show menu, in the viewport's overlay popover and in the palette without any of the three being edited — and a flag added to the enum alone appears in none of them, which is the failure that is visible immediately rather than the one that is not.

Fields and properties (1)

  • public static IReadOnlyList<SceneShow> All

    Every flag a user can toggle, in the order they are offered.

Methods (4)

  • public static string NameOf(SceneShow flag)

    What a flag is called in a menu.

  • public static SceneShow Parse(IEnumerable<string> slugs)

    The flags a set of slugs names, ignoring any it does not recognise.

  • public static List<string> Slugs(SceneShow show)

    A set of flags as the slugs Parse reads back.

  • public static string SlugOf(SceneShow flag)

    What a flag is called in a command id.

Used by (3)

  • EditorApplicationVixen.Editor.App
  • ViewportIdsVixen.Editor.App
  • ViewportStateTestsVixen.Editor.SceneView.Tests