Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: Pane
Wraps FXGL's InGamePanel, a semi-transparent slide-in panel used for HUD overlays (inventory, settings, stats). The panel slides in horizontally from the chosen side (LEFT or RIGHT) when open is called, and slides out on close.
InGamePanel (double Width, double Height, string DirectionName = "LEFT")
Creates a new InGamePanel of the given size, sliding from the given direction ("LEFT" or "RIGHT").
Width is the panel width in pixels.Height is the panel height in pixels.DirectionName is the horizontal slide direction.open ()
Opens the panel (slides in).
this objectclose ()
Closes the panel (slides out).
this objectisOpen ()
Returns whether the panel is currently open.
A bool.getPanelWidth ()
Returns the panel width in pixels.
getPanelHeight ()
Returns the panel height in pixels.
getDirection ()
Returns the slide-in direction name ("LEFT" or "RIGHT").

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.