Skip to content

Game.Input.OptionGroupOverride

Assembly:
Assembly-CSharp (typical game assembly; the enum is defined in the game's main assembly)

Namespace: Game.Input

Type: public enum

Base: System.Enum (underlying type: System.Int32)

Summary: OptionGroupOverride is an enumeration used to represent named groups of input or option categories (for example, different UI or control contexts) that can be used to override or target specific option groups. Many members carry a DescriptionAttribute that provides a human-readable label (used by UI or tooling to display the group name).


Fields

  • None
    Represents no override / the default state (value 0).

  • Navigation
    Description: "Navigation" (value 1). Represents the navigation-related option group.

  • Menu
    Description: "Menu" (value 2). Represents menu-related options.

  • Camera
    Description: "Camera" (value 3). Represents camera-related options.

  • Tool
    Description: "Tool" (value 4). Represents tool-related options (in-game tools).

  • Shortcuts
    Description: "Shortcuts" (value 5). Represents keyboard shortcuts or similar.

  • PhotoMode
    Description: "Photo mode" (value 6). Represents options specific to photo mode.

  • Toolbar
    Description: "Toolbar" (value 7). Represents toolbar-related options.

  • Tutorial
    Description: "Tutorial" (value 8). Represents tutorial-related options.

  • Simulation
    Description: "Simulation" (value 9). Represents simulation-related options.

  • SIP
    Description: "SIP" (value 10). Represents the SIP option group (label "SIP").

Properties

  • This enum does not define instance properties. (As an enum it exposes the standard System.Enum static/instance methods and can be cast to/from its underlying integer type.)

Constructors

  • Enums do not define explicit constructors in user code. The enum values are compiled as constant fields with implicit backing by System.Enum / System.Int32.

Methods

  • This file does not define custom methods. Standard System.Enum methods (ToString, Parse, TryParse, GetValues, etc.) are available for use.

Usage Example

using System;
using System.ComponentModel;
using System.Reflection;
using Game.Input;

// Helper to read the DescriptionAttribute (falls back to enum name)
public static string GetDescription(OptionGroupOverride value)
{
    FieldInfo fi = value.GetType().GetField(value.ToString());
    if (fi == null) return value.ToString();
    var attrs = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
    return (attrs.Length > 0) ? attrs[0].Description : value.ToString();
}

// Example usage
OptionGroupOverride group = OptionGroupOverride.PhotoMode;
string label = GetDescription(group); // "Photo mode"
int numericValue = (int)group;        // 6

Console.WriteLine($"Group: {group}, Label: {label}, Value: {numericValue}");