Astrath:createWindow: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "= Astrath:createWindow = {{Client function}} {{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}} '''Description:''' Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions. '''Parameters:''' * x (float) – The X position of the window on the screen * y (float) – The Y position of the window on the screen * width (float) – Width of the window * heig...")
 
Line 1: Line 1:
= Astrath:createWindow =
{{Client function}}
{{Client function}}
{{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}
{{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}

Revision as of 18:51, 22 October 2025

Template:FuncDef

Description: Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions.

Parameters:

  • x (float) – The X position of the window on the screen
  • y (float) – The Y position of the window on the screen
  • width (float) – Width of the window
  • height (float) – Height of the window
  • title (string) – Title displayed in the window

Returns:

Returns an element representing the window.

Example:

local win = Astrath:createWindow(200, 200, 300, 200, "Example Window")
Astrath:show(win, true)

See also: