Difference between revisions of "NCScriptsDynamicWindows"
Line 8: | Line 8: | ||
<p style="width: 60%;margin: 0 auto">Example of creating a DynamicWindow object</p> | <p style="width: 60%;margin: 0 auto">Example of creating a DynamicWindow object</p> | ||
<div style="width:60%;margin: 0 auto"> | <div style="width:60%;margin: 0 auto"> | ||
− | + | ||
− | + | function DisplayDynamicWindow(player) | |
− | + | 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 | ||
+ | player:OpenDynamicWindow(dynamicWindow) | ||
+ | end | ||
</div> | </div> | ||
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">DynamicWindow Child Functions</p> | <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">DynamicWindow Child Functions</p> |
Revision as of 17:51, 10 November 2019
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) 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 player:OpenDynamicWindow(dynamicWindow) end
DynamicWindow Child Functions
DynamicWindow:AddLabel(...) |
This child function of the DynamicWindow object allows you to add a label at x,y on the dynamic window. |
Example of adding a Label to your DynamicWindow
CODE BLOCK CODE BLOCK CODE BLOCK