Skip to content
Snippets Groups Projects
Commit 8dfb469c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Support text/menu/xtrn<sec-code>.* and text/menu/xtrn<sec-code>_head.* files

Using the xtrn program section internal code protects against renumbering upon
configuration changes (inserting/removing program sections).
At Nelgin's suggestion/request.
parent b1fe3c49
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #502 passed
......@@ -130,13 +130,20 @@ function external_program_menu(xsec)
if(options.clear_screen)
console.clear(LIGHTGRAY);
var secnum = xtrn_area.sec_list[xsec].number+1
var secnum = xtrn_area.sec_list[xsec].number+1;
var seccode = xtrn_area.sec_list[xsec].code;
if(bbs.menu_exists("xtrn" + secnum + "_head")) {
bbs.menu("xtrn" + secnum + "_head");
}
else if(bbs.menu_exists("xtrn" + seccode + "_head")) {
bbs.menu("xtrn" + seccode + "_head");
}
if(bbs.menu_exists("xtrn" + secnum)) {
bbs.menu("xtrn" + secnum);
}
else if(bbs.menu_exists("xtrn" + seccode)) {
bbs.menu("xtrn" + seccode);
}
else {
var multicolumn = options.multicolumn && prog_list.length > options.singlecolumn_height;
if(options.sort)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment