Skip to content

Game.UI.InGame.EconomyPanel

Assembly: Assembly-CSharp.dll
Namespace: Game.UI.InGame

Type: class

Base: TabbedGamePanel

Summary:
EconomyPanel is a UI panel class used in-game to represent the economy-related tabbed panel (budget, loan, taxation, services, production). It defines the panel's blocking behavior and its layout position. The panel also contains a nested Tab enum listing the available tabs shown in this panel.


Fields

  • This class declares no private or public fields in the provided source.

Nested Types

  • public enum Tab
    Lists the tabs exposed by the panel:
  • Budget
  • Loan
  • Taxation
  • Services
  • Production
    Use this enum to refer to specific tabs within the Economy panel (for example, to switch or query the active tab).

Properties

  • public override bool blocking { get; }
  • Value: true
  • Summary: Indicates that this panel blocks (likely input or interaction behind it) while open. The panel overrides the base TabbedGamePanel's blocking property to always return true.

  • public override LayoutPosition position { get; }

  • Value: LayoutPosition.Center
  • Summary: Specifies the panel's layout position; this panel is centered in the UI. LayoutPosition is an enum (from the UI framework) that controls placement of panels.

Constructors

  • public EconomyPanel()
  • Summary: No explicit constructor is declared in the source, so the default parameterless constructor is used. Initialization behavior is inherited from the base TabbedGamePanel and any framework lifecycle methods that TabbedGamePanel implements.

Methods

  • This class declares no additional methods (no overrides beyond the expression-bodied properties). Lifecycle or behavior is handled by the base class (TabbedGamePanel) and the UI framework.

Usage Example

// Example: checking panel behavior and using the Tab enum
var panel = new Game.UI.InGame.EconomyPanel();

// Check whether the panel blocks other UI while open
bool isBlocking = panel.blocking; // true

// Check panel layout position
var pos = panel.position; // LayoutPosition.Center

// Use the nested Tab enum to refer to specific tabs
Game.UI.InGame.EconomyPanel.Tab desiredTab = Game.UI.InGame.EconomyPanel.Tab.Budget;

// (Actual switching or selecting a tab depends on TabbedGamePanel API, e.g.)
// panel.SelectTab((int)desiredTab); // pseudo-code; real method depends on base class implementation

{{ Additional notes: - This file only contains the panel's minimal declarations. Most runtime behavior (rendering, tab switching, data binding) is implemented in the TabbedGamePanel base class or elsewhere in the UI system. - For modding, to interact with this panel (open/close/select tab), inspect TabbedGamePanel's public API or UI manager entry points in the game's UI framework. }}