Difference between revisions of "NCScriptsDynamicWindows"
(8 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
<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) | function DisplayDynamicWindow(player) | ||
-- create the dynamic window object | -- create the dynamic window object | ||
local dynamicWindow = DynamicWindow("UniqueWindowHandler","Custom Window Title",200,500,-100,-250,"Default","Center") | 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 | -- REMINDER: A dynamic window wont display unless you have at least one child element such as AddLabel | ||
+ | |||
-- display the dynamic window to the player | -- display the dynamic window to the player | ||
player:OpenDynamicWindow(dynamicWindow) | player:OpenDynamicWindow(dynamicWindow) | ||
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> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddButton() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
<center> | <center> | ||
Line 33: | Line 43: | ||
</div> | </div> | ||
+ | <center> | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
Line 43: | Line 54: | ||
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">AddHotbarAction() || . | ||
+ | |} | ||
+ | </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">AddImage() || . | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
</div> | </div> | ||
Line 60: | Line 93: | ||
|- | |- | ||
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddPortrait() || . | |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">AddProgressBar() || . | ||
|} | |} | ||
</center> | </center> | ||
Line 71: | Line 115: | ||
|- | |- | ||
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddScrollWindow() || . | |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">AddSkillSlider() || . | ||
+ | |} | ||
+ | </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">AddStatBar() || . | ||
|} | |} | ||
</center> | </center> | ||
Line 82: | Line 148: | ||
|- | |- | ||
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddSubWindow() || . | |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> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddTextField() || . | ||
+ | |} | ||
+ | </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">AddUserAction() || . | ||
+ | |} | ||
+ | </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">ScrollElement() || . | ||
|} | |} | ||
</center> | </center> |
Latest revision as of 07:38, 3 December 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) -- 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
AddButton() |
. |
Example
CODE EXAMPLE BLOCK
AddContainerScene() |
. |
Example
CODE EXAMPLE BLOCK
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
AddHotbarAction() |
. |
Example
CODE EXAMPLE BLOCK
AddImage() |
. |
Example
CODE EXAMPLE BLOCK
AddMap() |
. |
Example
CODE EXAMPLE BLOCK
AddPortrait() |
. |
Example
CODE EXAMPLE BLOCK
AddProgressBar() |
. |
Example
CODE EXAMPLE BLOCK
AddScrollWindow() |
. |
Example
CODE EXAMPLE BLOCK
AddSkillSlider() |
. |
Example
CODE EXAMPLE BLOCK
AddStatBar() |
. |
Example
CODE EXAMPLE BLOCK
AddSubWindow() |
. |
Example
CODE EXAMPLE BLOCK
AddTextField() |
. |
Example
CODE EXAMPLE BLOCK
AddUserAction() |
. |
Example
CODE EXAMPLE BLOCK
ScrollElement() |
. |
Example
CODE EXAMPLE BLOCK