I assumed that both the view and panel had to be positive values because the default view is set at zero and if I make the side panel a negative value it hides behind the main view. So I set the main view and side panel as negative values and the mini map as a positive value, however, I still lose the side panel under the main view...
#include <acknex.h>
BMAP* panel1 = "metal_texture.jpg";
VIEW* main_view =
{
layer = -2;
size_x = 3000;
size_y = 2500;
}
VIEW* mini_map =
{
layer = 1;
size_x = 300;
size_y = 250;
}
PANEL* side_panel =
{
layer = -1;
bmap = panel1;
flags = SHOW;
}
function main()
{
video_mode = 12;
video_screen = 1;
level_load("");
//
while(1)
{
if(key_esc) sys_exit(NULL);
//
mini_map.pos_x = screen_size.x - mini_map.size_x;
mini_map.pos_y = screen_size.y - screen_size.y;
//
side_panel.size_y = screen_size.y - screen_size.y;
side_panel.pos_x = screen_size.x - (side_panel.size_x);
//
wait(1);
}
}
PS. Thanks for being helpful Superku! It's very much appreciated
