New engine features |
Top Previous Next |
Use your own icon
The application icon (displayed in the taskbar) is now set from the acknex.exe's icon and can be changed to any custom icon using an icon editor.
draw_obj(layered_object)
Draws a layered object (text, panel, or view entity) on the screen for a frame.
TEXT* temp_txt = { pos_x = 320; pos_y = 100; string = "Just testing"; font = "Arial#20b"; }
function draw_startup() { while (1) { draw_obj(temp_txt); wait (1); } }
Improved exec function
The exec function can also open documents and Internet URLs now.
BMAP* picture1_pcx = "picture1.pcx"; BMAP* picture2_pcx = "picture2.pcx"; BMAP* pointer_tga = "pointer.tga";
function mouse_startup() { mouse_mode = 2; mouse_map = pointer_tga; while (1) { vec_set(mouse_pos, mouse_cursor); wait(1); } }
function open_url() { exec("http://www.3dgamestudio.com",NULL); // open this URL using the default browser }
PANEL* openurl_pan = { layer = 15; button(40, 10, picture2_pcx, picture1_pcx, picture2_pcx, open_url, NULL, NULL); flags = SHOW; }
|