Vixen
feb85697
csharp
public static class BlockoutStrings

Every word the blockout toolset shows, declared once.

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

Remarks

One family for sixty-nine commands that three local helpers declared between them. BlockoutMode.Register's Make, Verb and Declare each took a label and built new StringId("editor.command." + id, label) out of it, so the census saw three constructions and the tree had sixty-nine undeclared words — which is the shape a helper hides best.

⚠ The labels are here rather than at the registration, and the ordering is the registration's. A key the family does not carry throws while the mode registers, which is deterministic and is what BlockoutModeTests exercises on every run.

Two of the three groups are computed: one command per ShapeKind in BlockoutMode.Kinds and one per BlockoutElement, both built from the same lists the registration walks — so a shape added to Kinds gets a declared label rather than an undeclared one.

Fields and properties (11)

  • public static StringFamily Commands

    Every command the mode registers, by its command id.

  • public static StringId CategoryBlockout

    The Blockout command category.

  • public static StringId ModeBlockout

    The blockout mode, as the mode bar names it.

  • public static StringId PanelBlockout

    The Blockout panel.

  • public static StringId PanelBlockoutUv

    The Blockout UV panel.

  • public static StringId MenuCreate

    The Create submenu the mode adds under Scene.

  • public static StringId MenuShape

    The Shape submenu under Create.

  • public static StringId MenuSurfaces

    The Surfaces submenu the mode adds under Scene.

  • public static StringId MenuBoolean

    The Boolean submenu the mode adds under Scene.

  • public static StringId MenuHandoff

    The Handoff submenu the mode adds under Scene.

  • public static IReadOnlyList<StringId> All

    What a translator's template for this toolset holds.

Used by (3)

  • BlockoutModeVixen.Editor.Blockout
  • BlockoutModuleVixen.Editor.Blockout
  • DeclaredVixen.Editor.Blockout