// auto-transcompiled — see *.dnd.json for canonical truth
ti = 0;
font_name = "Courier New";
font_color = c_navy;
font_size = 10;

//Selecton box:
if(global.mb_level == 0 || global.mb_level == 1 || global.mb_level == 3 || global.mb_level == 4)
{
pen_color = c_blue;
}

//For viewing board topics:
if(global.mb_level == 0)
{
draw_rectangle(ix-1,iy+25+20*global.tselectid,view_left[0]+621,iy+45+20*global.tselectid);
mb_topdraw();
if(global.mbttopline > 0)
{
draw_sprite(ArrowU,0,view_left[0]+608,view_top[0]+421);
}
if(global.mbttopline < global.mb_ctopics-global.mblheight)
{
draw_sprite(ArrowD,0,view_left[0]+592,view_top[0]+421);
}
}
//For viewing topic replies:
else if(global.mb_level == 1)
{
draw_rectangle(ix-1,iy+25+20*global.rselectid,view_left[0]+621,iy+45+20*global.rselectid);
mb_repdraw();
if(global.mbrtopline < global.mb_topic[global.mb_ctopic,1]-1)
{
draw_sprite(ArrowU,0,view_left[0]+608,view_top[0]+421);
}
if(global.mbrtopline-(global.mblheight-2) > 0)
{
draw_sprite(ArrowD,0,view_left[0]+592,view_top[0]+421);
}
}
//For viewing the contents of a reply:
else if(global.mb_level == 2)
{
mb_repwrite();
}
//For viewing the body of a new topic or reply to post:
else if(global.mb_level == 3 || global.mb_level == 4)
{
if(global.nselectid == 0)
{
draw_rectangle(mb_titledraw.ix-3,mb_titledraw.iy+14,mb_titledraw.ix+3+string_width(global.mb_ntemptitle),mb_titledraw.iy+29);
}
else
{
draw_rectangle(view_left[0]+17,view_top[0]+60,view_left[0]+622,view_top[0]+431);
}
mb_newdraw();
}
