Hot features |
Top Previous Next |
New template scripts
The new files allow you to customize the templates without writing a single line of code! Just edit the numerical values and then press the "Save" button to change them.
-dialog
This feature doesn't sound that exciting but it is! Use "-dialog" in the "build options" text box when you build your levels and you will see the window below.
Panel pointer
The panel pointer allows us to get the name of the panel that was clicked with the mouse. The panel pointer is passed as a second parameter to the button function when a button is clicked and as first parameter to the on_click function.
bmap red_pcx = <red.pcx>; bmap blue_pcx = <blue.pcx>;
function testpanel(name);
panel red_pan { x = 10; y = 20; bmap = red_pcx; on_click = testpanel; }
panel blue_pan { x = 10; y = 40; bmap = blue_pcx; on_click = testpanel; }
function testpanel(name); { if (name == red_pan) { // the red panel was clicked ........................................ } if (name == blue_pan) { // the blue panel was clicked ........................................ } }
|