Skip to content
Snippets Groups Projects
Commit 62c559ef authored by Kayz's avatar Kayz
Browse files

If you aren't using a custom xtrn menu head per section, then you might fall...

If you aren't using a custom xtrn menu head per section, then you might fall back on a global one...but the prior logic would not display the actual section heading if it used a global (xtrn_head) file. If you are using xtrn_head, you don't have anything in there with a section name, so display the section name from code again
parent e2e83629
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!67If using xtrn_head, display section name/header as well
Pipeline #1094 passed
......@@ -124,12 +124,15 @@ function external_program_menu(xsec)
var show_header = true;
var secnum = xtrn_area.sec_list[xsec].number+1;
var seccode = xtrn_area.sec_list[xsec].code;
if(!bbs.menu("xtrn" + secnum + "_head", P_NOERROR) &&
!bbs.menu("xtrn" + seccode + "_head", P_NOERROR)) {
show_header = !bbs.menu("xtrn_head", P_NOERROR);
}
else
if (bbs.menu("xtrn" + secnum + "_head", P_NOERROR) {
show_header = false;
} else if (bbs.menu("xtrn" + seccode + "_head", P_NOERROR)) {
show_header = false;
} else {
bbs.menu("xtrn_head", P_NOERROR);
}
if(bbs.menu("xtrn" + secnum, P_NOERROR) || bbs.menu("xtrn" + seccode, P_NOERROR)) {
if(!bbs.menu("xtrn" + secnum + "_tail", P_NOERROR) &&
!bbs.menu("xtrn" + seccode + "_tail", P_NOERROR)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment