Skip to content

Game.UI.InGame.LifePathPanel

Assembly:
Assembly-CSharp.dll

Namespace:
Game.UI.InGame

Type:
public class

Base:
EntityGamePanel

Summary:
Represents the in-game UI panel used for the "life path" UI element. This class simply specifies the panel's layout position (right side of the screen) by overriding the base panel's layout position property. It contains no additional state or behaviour beyond specifying its intended placement in the UI layout.


Fields

  • None
    This class does not declare any fields.

Properties

  • public override LayoutPosition position { get; }
    This read-only property overrides the base EntityGamePanel.position and returns LayoutPosition.Right, which instructs the UI layout system to place this panel on the right side of the UI. The property is implemented as an expression-bodied member:
public override LayoutPosition position => LayoutPosition.Right;

LayoutPosition is an enum used by the UI layout system to determine panel placement (e.g., Left, Right, Top, Bottom, etc.).

Constructors

  • public LifePathPanel()
    No explicit constructor is defined in the source; the compiler-synthesized default constructor will be used. Initialization (if any) should be handled in the base class lifecycle methods (OnCreate/OnEnable) or by overriding them in a derived class.

Methods

  • None declared
    This class does not declare any methods. It inherits behavior from EntityGamePanel. If you need to extend or customize behavior, override lifecycle methods from the base class (for example OnCreate, OnEnable, OnDisable, OnUpdate) depending on what EntityGamePanel exposes.

Usage Example

// Original class (as found in game code)
namespace Game.UI.InGame
{
    public class LifePathPanel : EntityGamePanel
    {
        public override LayoutPosition position => LayoutPosition.Right;
    }
}

// Example: override to place the panel on the left instead (modding example)
public class MyCustomLifePathPanel : LifePathPanel
{
    public override LayoutPosition position => LayoutPosition.Left;

    // Add custom behavior by overriding base lifecycle methods if needed:
    // protected override void OnCreate() { base.OnCreate(); /* custom init */ }
}

Notes for modders: - This class only controls layout placement. To change visual content or behavior you will likely need to override lifecycle methods from EntityGamePanel or replace the panel instance via the UI manager. - Confirm the assembly name in your mod tools; most game code types live in Assembly-CSharp.dll, but your toolchain or future game updates could differ.