Skip to content

Game.UI.InGame.NotificationsPanel

Assembly:
Assembly-CSharp (game runtime assembly; confirm in your decompiled game assemblies)

Namespace:
Game.UI.InGame

Type:
public class

Base:
GamePanel

Summary:
NotificationsPanel is a lightweight UI panel class used by the game to present in-game notifications. It derives from GamePanel and overrides the layout position so the notifications area is positioned on the right side of the screen. This class contains no additional state or behavior beyond specifying its position; visual/functional behavior is inherited from the GamePanel implementation and whatever UI controllers populate it.


Fields

  • This class declares no private or public fields.
    Use the base GamePanel fields/behavior for storing notifications and UI elements.

Properties

  • public override LayoutPosition position { get; }
    Specifies the panel's layout anchor. This override returns LayoutPosition.Right, placing the notifications panel on the right edge of the UI layout. The property is read-only and determines where the GamePanel system anchors and arranges this panel.

Constructors

  • public NotificationsPanel()
    No explicit constructors are declared in the source; the default parameterless constructor from the compiler is used. Initialization and lifecycle behaviors are handled by the base GamePanel and any UI framework code that creates or initializes the panel.

Methods

  • This class declares no additional methods. All runtime behavior (creation, update, drawing, event handling) is provided by GamePanel and the UI framework.

Usage Example

// Example: subclassing to change the panel position (if desired)
public class LeftNotificationsPanel : NotificationsPanel
{
    public override LayoutPosition position => LayoutPosition.Left;
}

// Example: referencing the panel position in code
void LogNotificationsPanelPosition(NotificationsPanel panel)
{
    Debug.Log($"Notifications panel is anchored: {panel.position}");
}

{{ Additional notes for modders: - Location: This class is in the Game.UI.InGame namespace; check the game's Assembly-CSharp.dll (or equivalent) with a decompiler to confirm exact assembly and any related types. - If you need to change the panel position or behavior at runtime, consider: - Subclassing (if the UI system creates panels from types you can control). - Using Harmony or a similar method-patch library to override the position property or intercept creation/initialization of the panel. - Because this class contains no fields or methods, most visual/functional changes will need to be done by interacting with GamePanel internals or the code that populates the panel with notification entries. - Test changes in a separate environment and keep backups of original assemblies before patching. }}