Skip to content

Game.UI.InGame.TransportationOverviewPanel

Assembly:
Assembly-CSharp.dll

Namespace:
Game.UI.InGame

Type:
class

Base:
TabbedGamePanel

Summary:
TransportationOverviewPanel is a UI panel used by the game to display an overview of transportation-related systems. It defines two tabs (PublicTransport and Cargo) via a nested Tab enum. The panel overrides layout and input behavior to be a centered, blocking panel in the game's UI. This class itself contains no custom fields or methods beyond the overrides shown; it primarily serves as a lightweight concrete panel type that the UI system can instantiate and display.


Fields

  • This class declares no private or public fields.
    Useful related members:
  • Nested enum: public enum Tab { PublicTransport, Cargo } — identifies the available tabs inside the panel.

Properties

  • public override bool blocking { get; }
    This property is overridden to return true. The panel is blocking, meaning it prevents interaction with other UI elements beneath it while displayed.

  • public override LayoutPosition position { get; }
    This property is overridden to return LayoutPosition.Center. The panel should be placed centered in the layout when shown.

Constructors

  • public TransportationOverviewPanel()
    No explicit constructor is declared in the source; the class uses the default public parameterless constructor. Initialization is handled by the base class (TabbedGamePanel) and the UI system.

Methods

  • This class does not declare additional methods beyond what it inherits from TabbedGamePanel and its base classes. In particular, it does not override lifecycle methods like OnCreate/OnEnable in the provided source. Typical functionality (tab management, drawing, event handling) is expected to be implemented in the base TabbedGamePanel or elsewhere in the UI system.

Usage Example

// Example usage patterns when working with this panel in a mod:
// (How you obtain the panel instance depends on the game's UI framework.)

// Referencing the tab enum:
var desiredTab = Game.UI.InGame.TransportationOverviewPanel.Tab.PublicTransport;

// Checking panel layout / blocking behavior:
TransportationOverviewPanel panel = /* obtain panel instance from UI manager */;
if (panel != null)
{
    bool isBlocking = panel.blocking; // true
    var pos = panel.position; // LayoutPosition.Center
}

// Note: Creation/showing of the panel typically uses the game's UI manager or panel factory.
// The example above assumes you already have an instance reference.