Posted By: Espér
video_border problem ._. - 06/23/11 11:51
ok.. other problem..
I tried to give the launcher/updater a bit more style - with video_border.
i added it this way:
BMAP* border is a 32Bit TGA File, without alpha channel.
Problem:
Whenever i click inside the window, the lower window is set active, and the Engine Window stays in the background...
That´s a bt annoying.. cause.. a Launcher without mouse control is a bit ugly ._.
I tried to give the launcher/updater a bit more style - with video_border.
i added it this way:
Code:
includes.. [...] BMAP* border = "border.tga"; var gamebuild = 0; FONT* font_led = "Orator Std#24"; void main() { d3d_antialias = 9; wait(1); sky_color.red = 1; sky_color.green = 1; sky_color.blue = 1; screen_color.red = 1; screen_color.green = 1; screen_color.blue = 1; enet_init(); http_init(); if (sys_winversion >= 6 && version >= 8) { video_border(border, 10, 10, 640, 480); } mouse_mode = 2; mouse_range = 10000; PANEL* pan_versionsnummer = pan_create("", 9999); pan_versionsnummer.bmap = bmap_createblack(640,480,24); //cutout pan_setdigits(pan_versionsnummer, 0, 10, 10, "Build: %.0f", font_led, 1, gamebuild); set(pan_versionsnummer, SHOW); while(1) { vec_set(mouse_pos,mouse_cursor); wait(1); } }
BMAP* border is a 32Bit TGA File, without alpha channel.
Problem:
Whenever i click inside the window, the lower window is set active, and the Engine Window stays in the background...
That´s a bt annoying.. cause.. a Launcher without mouse control is a bit ugly ._.