I did that; Still not working. Can I get some sample code for changing the bmap of a panel at runtime?
This is C-script/WDL section, and code you are write is Lite-C. Did you use Lite-C? Changing bmap is pretty easy and clear and there is nothing special with this (you can see this in the code below). Only you must be sure that your image files is ok, and that
your_panel.bmap = new_bmap was placed in a right place.
BMAP* test_bmp = "test.tga";
BMAP* test2_bmp = "test2.tga";
PANEL* Pan_test = {
bmap = test_bmp;
layer = 70;
flags = SHOW;
}
function change_pan_startup(){
while(1){
if(key_c){
Pan_test.bmap = test2_bmp;
} else {
Pan_test.bmap = test_bmp;
}
wait(1);
}
}