Window Framework v1.2.4
Window Framework for Unity UI Toolkit
Loading...
Searching...
No Matches
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.

Inheritance 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.

Constructor & Destructor Documentation

◆ DemoControlWindow()

GWG.WindowFramework.Demo.DemoControlWindow.DemoControlWindow ( )
Parameters
parentIdThe ID of the parent object for this window.

Member Function Documentation

◆ BuildDemoWindowContent()

VisualElement GWG.WindowFramework.Demo.DemoControlWindow.BuildDemoWindowContent ( )
private
Returns
A VisualElement containing the demo window content.

◆ CreateButton()

Button GWG.WindowFramework.Demo.DemoControlWindow.CreateButton ( string text,
System.Action clickAction )
private
Parameters
textThe text to display on the button.
clickActionThe action to execute when the button is clicked.
Returns
A Button element.

◆ CreateInventoryWindowExample()

void GWG.WindowFramework.Demo.DemoControlWindow.CreateInventoryWindowExample ( string parentId = "InventoryWindow")
private
Parameters
parentIdThe ID of the parent object for the inventory window.

◆ CreateLogViewerWindowExample()

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

◆ OpenInventoryWindow()

void GWG.WindowFramework.Demo.DemoControlWindow.OpenInventoryWindow ( )
private
Parameters
parentIdThe ID of the parent object for the inventory window.

◆ OpenSettingsWindow()

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