NCScriptsDynamicSpawners

From Legends of Aria Admin and Modding Wiki
Revision as of 16:29, 7 December 2019 by Gizmo (talk | contribs) (Created page with "<p style="width:60%;margin: 0 auto">[Main] [Lua Examples]</p> <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">D...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[Main] [Lua Examples]

DynamicWindow Object

DynamicWindow(...)

This is the main dynamic window object creator, you can use many of its child functions to create your dynamic window.

Example of creating a DynamicWindow object

 function DisplayDynamicWindow(player)
     -- create the dynamic window object
     local dynamicWindow = DynamicWindow("UniqueWindowHandler","Custom Window Title",200,500,-100,-250,"Default","Center")
 
     -- REMINDER: A dynamic window wont display unless you have at least one child element such as AddLabel
 
     -- display the dynamic window to the player
     player:OpenDynamicWindow(dynamicWindow)
 end

DynamicWindow Child Functions