Game.UI.InGame.StatisticsPanel
Assembly:
Assembly-CSharp (typical for Cities: Skylines 2 game code / mods)
Namespace:
Game.UI.InGame
Type:
public class
Base:
GamePanel
Summary:
Represents the in-game "Statistics" UI panel. This panel is defined as blocking (prevents interaction with other UI while open) and is positioned in the center of the screen. It contains no custom fields or methods in the provided snippet and relies on GamePanel behavior for rendering and lifecycle.
Fields
- This class declares no private or public fields in the provided source.
{{ The StatisticsPanel is a lightweight specialization of GamePanel implemented only by overriding properties; any state or UI elements would be defined in the base class or added later. }}
Properties
-
public override bool blocking { get; }
The panel overrides the GamePanel.blocking property to return true. This indicates the panel should block interaction with other UI elements while it is active (modal behavior).
{{ Use this when you need a modal dialog that prevents clicks/inputs from reaching underlying UI. }} -
public override LayoutPosition position { get; }
The panel overrides the GamePanel.position property to return LayoutPosition.Center. This positions the panel in the center of the UI layout.
{{ LayoutPosition is an enum used by the UI layout system to specify anchor/placement; Center typically centers the panel on screen. }}
Constructors
public StatisticsPanel()
The class does not declare an explicit constructor, so a default parameterless constructor is provided by the compiler.
{{ Initialization logic specific to this panel (if needed) should be added by defining an explicit constructor or overriding lifecycle methods from GamePanel. }}
Methods
- This class declares no methods in the provided snippet.
{{ Any behavior (e.g., OnOpen, OnClose, OnCreate) should be implemented by overriding methods from GamePanel if custom setup/teardown or event wiring is required. }}
Usage Example
namespace Game.UI.InGame
{
public class StatisticsPanel : GamePanel
{
// This panel is modal (blocks other UI) and is centered.
public override bool blocking => true;
public override LayoutPosition position => LayoutPosition.Center;
}
}
{{ YOUR_INFO }}