Difference between revisions of "NCScriptsDynamicWindows"
Line 20: | Line 20: | ||
</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> | ||
+ | <center> | ||
+ | |||
<center> | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddContainerScene() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
Line 31: | Line 43: | ||
CODE BLOCK | CODE BLOCK | ||
CODE BLOCK | CODE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddMap() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddPortrait() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddScrollWindow() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddSubWindow() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
</div> | </div> |
Revision as of 04:00, 13 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
--- DisplayDynamicWindow- this function will display a dynamic window to a player --@ param: player - this is the player object you wish to display the dynamic window too 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
AddContainerScene() |
. |
Example
CODE EXAMPLE BLOCK
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
AddMap() |
. |
Example
CODE EXAMPLE BLOCK
AddPortrait() |
. |
Example
CODE EXAMPLE BLOCK
AddScrollWindow() |
. |
Example
CODE EXAMPLE BLOCK
AddSubWindow() |
. |
Example
CODE EXAMPLE BLOCK