Posted By: SoulRyder
Button problem - 01/06/09 10:43
Hello,
Right now i'm doing the Lite-C Game Development workshops (http://www.conitec.net/litec/) I just arrived at workshop 6, but now i got a problem.
They tell me to run script06 file, but when i do this it should be possible to click on the Quit button, and it should change color while clicking or moving the mouse cursor over it.
Now the problem is, i can't click it, it doesn't change color while moving over or clicking on it. I didn't change anything in the code yet so that can't be the problem.
The code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 4;
}
function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}
//////////////////////////////////////////////////////////////////////
PANEL* main_pan =
{
bmap = "main.pcx";
pos_x = 250;
pos_y = 200;
button (250, 134, "quitclicked.pcx", "quitnormal.pcx", "quitover.pcx", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}
//////////////////////////////////////////////////////////////////////
Does anyone know if this problem happens to more people or something.
Thanx in advance.
Right now i'm doing the Lite-C Game Development workshops (http://www.conitec.net/litec/) I just arrived at workshop 6, but now i got a problem.
They tell me to run script06 file, but when i do this it should be possible to click on the Quit button, and it should change color while clicking or moving the mouse cursor over it.
Now the problem is, i can't click it, it doesn't change color while moving over or clicking on it. I didn't change anything in the code yet so that can't be the problem.
The code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 4;
}
function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}
//////////////////////////////////////////////////////////////////////
PANEL* main_pan =
{
bmap = "main.pcx";
pos_x = 250;
pos_y = 200;
button (250, 134, "quitclicked.pcx", "quitnormal.pcx", "quitover.pcx", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}
//////////////////////////////////////////////////////////////////////
Does anyone know if this problem happens to more people or something.
Thanx in advance.