Difference between revisions of "Dynamic Windows Tutorial Part 3"
(Created page with "back to Project_Phoenix#Dynamic_Windows<br><br> ===Video=== <youtube></youtube> next video Dynamic_Windows_Tutorial_Part_4") |
|||
Line 3: | Line 3: | ||
<youtube></youtube> | <youtube></youtube> | ||
next video [[Dynamic_Windows_Tutorial_Part_4]] | next video [[Dynamic_Windows_Tutorial_Part_4]] | ||
+ | |||
+ | ===TestTool.Lua=== | ||
+ | *the only thing that changed with our testtool.lua file is the addition of a label in the | ||
+ | *ShowTestWindow function. | ||
+ | *copy and paste the following code if you don't feel like typing it. | ||
+ | function ShowTestWindow(user,controlobject) | ||
+ | local dynamicWindow = DynamicWindow("DynamicWindowHandler","",300,300,-150,-150,"TransparentDraggable","Center") | ||
+ | dynamicWindow:AddImage(1,1,"HueSwatch",300,300,"Simple","252525") | ||
+ | DrawCloseButton(271,5,dynamicWindow) | ||
+ | --test dynamic window code here | ||
+ | dynamicWindow:AddLabel(150,10,"[4488CC]Test Window",300,20,20,"center") | ||
+ | user:OpenDynamicWindow(dynamicWindow,controlobject) | ||
+ | end |
Revision as of 18:12, 12 March 2019
back to Project_Phoenix#Dynamic_Windows
Video
EmbedVideo is missing a required parameter.
next video Dynamic_Windows_Tutorial_Part_4
TestTool.Lua
- the only thing that changed with our testtool.lua file is the addition of a label in the
- ShowTestWindow function.
- copy and paste the following code if you don't feel like typing it.
function ShowTestWindow(user,controlobject) local dynamicWindow = DynamicWindow("DynamicWindowHandler","",300,300,-150,-150,"TransparentDraggable","Center") dynamicWindow:AddImage(1,1,"HueSwatch",300,300,"Simple","252525") DrawCloseButton(271,5,dynamicWindow) --test dynamic window code here dynamicWindow:AddLabel(150,10,"[4488CC]Test Window",300,20,20,"center") user:OpenDynamicWindow(dynamicWindow,controlobject) end