Skip to content

Game.UI.InGame.PhotoModePanel

Assembly:
Assembly-CSharp (likely) — the game's runtime assembly containing UI types. If you have an explicit modding reference, use the game's main assembly for UI classes.

Namespace: Game.UI.InGame

Type:
class

Base:
GamePanel

Summary:
A very small UI panel class used for the in-game Photo Mode. This class overrides the panel layout position to anchor the panel to the right side of the screen. It does not declare additional fields or methods beyond what it inherits from GamePanel.


Fields

  • None
    This class does not declare any private or public fields. All functionality is provided via inheritance and a single overridden property.

Properties

  • public override LayoutPosition position => LayoutPosition.Right
    Overrides the base GamePanel.position to place this panel on the right side of the screen layout. LayoutPosition is an enum (part of the game's UI layout system) that controls where panels are positioned (e.g., Left, Right, Top, Bottom, etc.). PhotoModePanel forces the Right position.

Constructors

  • public PhotoModePanel()
    No explicit constructors are declared in the source — the compiler-provided default parameterless constructor is used. Initialization logic, if needed, would typically be placed in lifecycle methods inherited from GamePanel (such as OnCreate/OnEnable/Start, depending on the framework used).

Methods

  • None declared (inherits GamePanel methods)
    This class does not declare its own methods. Any behavior (creation, update, event handling) is handled by the base GamePanel and other UI framework hooks. If you need to customize behavior, override lifecycle methods from GamePanel (e.g., OnCreate, OnEnable, OnDestroy) in a derived class.

Usage Example

// Example: checking the panel's layout position at runtime
var photoPanel = /* obtain reference to the PhotoModePanel instance from UI manager */;
if (photoPanel != null && photoPanel.position == LayoutPosition.Right)
{
    // The panel is anchored to the right — adjust other UI elements if necessary
    Debug.Log("PhotoModePanel is positioned on the right.");
}

// Example: subclassing to add custom initialization
public class CustomPhotoModePanel : PhotoModePanel
{
    protected override void OnCreate()
    {
        base.OnCreate();
        // custom initialization for your modded panel
    }
}

Notes: - To get a reference to the in-game panel, use the game's UI management APIs (panel registries or GameObject.Find patterns depending on the modding environment). - When modifying or replacing UI behavior, prefer subclassing and overriding lifecycle methods of GamePanel rather than editing game assemblies directly.