Skip to content

Game.UI.InGame.TooltipTags

Assembly:
Assembly-CSharp

Namespace:
Game.UI.InGame

Type:
enum

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

Summary:
Enumeration of tooltip tag identifiers used by the in-game UI. Each named value represents a semantic tag that can be attached to a tooltip to indicate what kind of information the tooltip represents (for example, a transport line, a building state, or a citizen gender). This enum is not marked with [Flags]; values are individual identifiers rather than bitflags.


Fields

  • HasWorkers
    Indicates the tooltip is related to an entity that has assigned workers ( e.g., a workplace with employees).

  • TransportLine
    Indicates the tooltip refers to a transport line (bus, tram, metro, etc.).

  • CargoRoute
    Indicates the tooltip refers to a cargo/shipping route.

  • TransportStop
    Indicates the tooltip refers to a transport stop or station.

  • Destroyed
    Indicates the related object or building has been destroyed.

  • UnderConstruction
    Indicates the related object or building is under construction.

  • Male
    Indicates the tooltip relates to a male citizen/gender-specific information.

  • HomelessShelter
    Indicates the tooltip relates to a homeless shelter or homelessness-related UI.

Properties

  • None.
    This enum exposes only the named constants; no additional properties are defined on the type itself.

Constructors

  • None (implicit).
    As with all enums, there is no user-declared constructor. The underlying type is System.Int32 and members have implicit integer values starting at 0 in declaration order.

Methods

  • None declared on this enum.
    Use standard System.Enum methods when needed (e.g., ToString(), Enum.GetValues(typeof(TooltipTags)), Enum.Parse(...)).

Usage Example

// Example: selecting behavior based on a tooltip tag
void HandleTooltip(TooltipTags tag)
{
    switch (tag)
    {
        case TooltipTags.TransportLine:
            // show transport-line specific UI
            break;
        case TooltipTags.TransportStop:
            // show stop/station info
            break;
        case TooltipTags.UnderConstruction:
            // show construction-related details
            break;
        case TooltipTags.Destroyed:
            // show destroyed-state info
            break;
        default:
            // generic tooltip handling
            break;
    }
}

// Example: getting the string name
string name = TooltipTags.CargoRoute.ToString(); // "CargoRoute"