Window Framework for UI Toolkit Scripting v1.3.0
GWG.WindowFramework.Demo.DemoControlWindow Class Reference

DemoControlWindow is a demonstration class for the Window Framework. It creates a control panel window that showcases the framework's capabilities, such as opening example windows, managing window memory, and customizing window properties. This class is intended for demonstration purposes and is not part of a functional game. More...

Inheritance diagram for GWG.WindowFramework.Demo.DemoControlWindow:
Collaboration diagram for GWG.WindowFramework.Demo.DemoControlWindow:

Public Member Functions

 DemoControlWindow ()
 Constructor for the DemoControlWindow. Initializes the window properties and builds the demo content.

Private Member Functions

VisualElement BuildDemoWindowContent ()
 Builds the content for the demo control window. Includes a description label, buttons for opening example windows, and a footer with additional controls.
Button CreateButton (string text, System.Action clickAction)
 Creates a button with the specified text and click action.
void CreateInventoryWindowExample (string parentId="InventoryWindow")
 Creates and opens an inventory window example.
void CreateLogViewerWindowExample ()
 Creates and opens a log viewer window example.
void OpenInventoryWindow ()
 Opens the inventory window example. Creates a new inventory window with the specified parent ID.
void OpenSettingsWindow ()
 Opens the settings window. Sends the current window to the back and opens the settings window.

Detailed Description

DemoControlWindow is a demonstration class for the Window Framework. It creates a control panel window that showcases the framework's capabilities, such as opening example windows, managing window memory, and customizing window properties. This class is intended for demonstration purposes and is not part of a functional game.

Constructor & Destructor Documentation

◆ DemoControlWindow()

GWG.WindowFramework.Demo.DemoControlWindow.DemoControlWindow ( )
inline

Constructor for the DemoControlWindow. Initializes the window properties and builds the demo content.

Parameters
parentIdThe ID of the parent object for this window.
Here is the call graph for this function:

Member Function Documentation

◆ BuildDemoWindowContent()

VisualElement GWG.WindowFramework.Demo.DemoControlWindow.BuildDemoWindowContent ( )
inlineprivate

Builds the content for the demo control window. Includes a description label, buttons for opening example windows, and a footer with additional controls.

Returns
A VisualElement containing the demo window content.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateButton()

Button GWG.WindowFramework.Demo.DemoControlWindow.CreateButton ( string text,
System.Action clickAction )
inlineprivate

Creates a button with the specified text and click action.

Parameters
textThe text to display on the button.
clickActionThe action to execute when the button is clicked.
Returns
A Button element.
Here is the caller graph for this function:

◆ CreateInventoryWindowExample()

void GWG.WindowFramework.Demo.DemoControlWindow.CreateInventoryWindowExample ( string parentId = "InventoryWindow")
inlineprivate

Creates and opens an inventory window example.

Parameters
parentIdThe ID of the parent object for the inventory window.
Here is the caller graph for this function:

◆ CreateLogViewerWindowExample()

void GWG.WindowFramework.Demo.DemoControlWindow.CreateLogViewerWindowExample ( )
inlineprivate

Creates and opens a log viewer window example.

Here is the caller graph for this function:

◆ OpenInventoryWindow()

void GWG.WindowFramework.Demo.DemoControlWindow.OpenInventoryWindow ( )
inlineprivate

Opens the inventory window example. Creates a new inventory window with the specified parent ID.

Parameters
parentIdThe ID of the parent object for the inventory window.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenSettingsWindow()

void GWG.WindowFramework.Demo.DemoControlWindow.OpenSettingsWindow ( )
inlineprivate

Opens the settings window. Sends the current window to the back and opens the settings window.

Here is the call graph for this function:
Here is the caller graph for this function: