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

Merge branch 'xtrnnoneformat' into 'master'

allows more flexibility in formatting xtrn program menus by allowing one to...

See merge request sbbs/sbbs!32
parents f2b3d95a 01f9a287
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@
; section_which: \r\n\1-\1gWhich, \1w\1h~Q\1n\1guit or [1]: \1h
; uncomment and modify any of the below to change the look of the external programs menu
; to remove titles or underline, set to the text ' '
; header_fmt: \1n\1c\1h%s \1n\1cExternal Programs:\r\n\r\n
; titles: \1n\1cNum \1h\xb3\1n\1c Name \1n\1c
; multicolumn_fmt: \1h\1c%3u \xb3 \1n\1c%-32.32s \1h
......
......@@ -138,16 +138,21 @@ function external_program_menu(xsec)
if(options.sort)
prog_list.sort(sort_by_name);
printf(options.header_fmt, xtrn_area.sec_list[xsec].name);
write(options.titles);
if(options.titles.trimRight() != '')
write(options.titles);
if(multicolumn) {
write(options.multicolumn_separator);
write(options.titles);
if (options.titles.trimRight() != '')
write(options.titles);
}
if(options.underline.trimRight() != '') {
console.crlf();
write(options.underline);
}
console.crlf();
write(options.underline);
if(multicolumn) {
write(options.multicolumn_separator);
write(options.underline);
if (options.underline.trimRight() != '')
write(options.underline);
}
console.crlf();
var n;
......
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