Hi guys,
ive a problem with a button. The button will not be visible or clickable, no matter what iam changeing. I hope anyone can help me.
Here my code:
BMAP* pcx_btn_resume = "btn_resume.PCX";
...
PANEL* hautpmenu =
{
layer = 10;
pos_x = 50;
pos_y = 50;
//size_x = 100; // just for debugging
//size_y = 100; // just for debugging
//bmap = pcx_btn_resume; // just for debugging
//digits(0,0,4,fnt_century12,1,var_mainmenu_vis); // just for debugging
button = (0,0,pcx_btn_resume,NULL,NULL,NULL,NULL,NULL);
flags = VISIBLE | OVERLAY;
}
As u can see, i have tried many things.
Ive tried to get the panel a size, with no effect.
Ive include a bmap with the same pcx to see if i have decleared it right. And it works. With bmap the pcx is viewable.
If i uncomment the size lines, the bmap filled the 100x100 pixels.
The digits line worked too. It shows me easily a var.
Ive tried two different button lines:
button = (0,0,pcx_btn_resume,NULL,NULL,NULL,NULL,NULL); as shown above and
button (0,0,pcx_btn_resume,NULL,NULL,NULL,NULL,NULL); without the =
and ive tried to give the button a function. But nothing helped me.
I have no more ideas. Am i doing something wrong???
thx for help