From 7b7cf381131e58049233dfaecd00869b890fe712 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 10 Sep 2015 23:09:45 -0600 Subject: [PATCH] * Cleanup and minor work on FSE post --- core/color_codes.js | 2 - mods/menu.hjson | 89 ++++++++++++++----------------- mods/themes/NU-MAYA/MSGEFTR1.ANS | Bin 0 -> 335 bytes mods/themes/NU-MAYA/MSGEHDR1.ANS | Bin 0 -> 2020 bytes mods/themes/NU-MAYA/MSGEMFT1.ANS | Bin 0 -> 225 bytes 5 files changed, 41 insertions(+), 50 deletions(-) create mode 100644 mods/themes/NU-MAYA/MSGEFTR1.ANS create mode 100644 mods/themes/NU-MAYA/MSGEHDR1.ANS create mode 100644 mods/themes/NU-MAYA/MSGEMFT1.ANS diff --git a/core/color_codes.js b/core/color_codes.js index 591b7862..1efbb071 100644 --- a/core/color_codes.js +++ b/core/color_codes.js @@ -47,9 +47,7 @@ function enigmaToAnsi(s, client) { // ENiGMA MCI code? Only available if |client| // is supplied. // - console.log('attempting to resolve ' + m[1]) val = getPredefinedMCIValue(client, m[1]) || ('|' + m[1]); // value itself or literal - console.log(val) } if(_.isString(val)) { diff --git a/mods/menu.hjson b/mods/menu.hjson index d8cc932a..c6d28715 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -532,15 +532,15 @@ }, */ { - "keys" : [ "P", "p" ], + "keys" : [ "p", "shift + p" ], "action" : "@method:prevMessage" }, { - "keys" : [ "N", "n" ], + "keys" : [ "n", "shift + n" ], "action" : "@method:nextMessage" }, { - "keys" : [ "escape", "Q", "q" ], + "keys" : [ "escape", "q", "shift + q" ], "action" : "@menu:messageArea" }, { @@ -556,55 +556,48 @@ "status" : "Posting message", "module" : "msg_area_post_fse", "fallback" : "messageArea", // :TODO: remove once default fallback is in place - "config" : { - "art" : { - "header" : "msg_area_post_header", - "body" : "demo_fse_netmail_body.ans", - "footerEditor" : "demo_fse_netmail_footer_edit.ans", - "footerEditorMenu" : "demo_fse_netmail_footer_edit_menu.ans", - "footerView" : "demo_fse_netmail_footer_view.ans", - "help" : "demo_fse_netmail_help.ans" + config: { + art: { + header: MSGEHDR + body: demo_fse_netmail_body.ans + footerEditor: MSGEFTR + footerEditorMenu: MSGEMFT + footerView: demo_fse_netmail_footer_view.ans + help: demo_fse_netmail_help.ans }, - "editorMode" : "edit", - "editorType" : "area" + editorMode: edit + editorType: area }, "form" : { "0" : { - "ETETTL" : { - "mci" : { - "TL1" : { - "width" : 36, - "argName" : "from" - }, - "ET2" : { - "width" : 36, - "argName" : "to", - "focus" : true - }, - "ET3" : { - "width" : 65, - "argName" : "subject", - "maxLength" : 72, - "submit" : true - }, - "MA5" : { - "width" : 19, - "textOverflow" : "..." - } - /*, - "TL4" : { - "width" : 19, - "textOverflow" : "..." - }*/ - }, - "submit" : { - "3" : [ - { - "value" : { "subject" : null }, - "action" : "@method:headerSubmit" - } - ] + mci: { + TL1: { + width: 27 + argName: from } + ET2: { + width: 27 + argName: to + focus: true + } + "ET3" : { + "width" : 27, + "argName" : "subject", + "maxLength" : 72, + "submit" : true + }, + "MA5" : { + "width" : 27, + "textOverflow" : "..." + } + }, + "submit" : { + "3" : [ + { + "value" : { "subject" : null }, + "action" : "@method:headerSubmit" + } + ] } }, "1" : { @@ -963,7 +956,7 @@ "height" : 17, //"text" : "@art:demo_multi_line_edit_text_view_text.txt", // "text" : "@systemMethod:textFromFile" - "text" : "Hints:\n\t* Insert / CTRL-V toggles overtype mode\n\t* CTRL-Y deletes the current line\n\t* Try Page Up / Page Down\n\t* Home goes to the start of line text\n\t* End goes to the end of a line\n\n\nTab handling:\n-------------------------------------------------\n\tA\tB\tC\tD\tE\tF\nA\tB\tC\tD\tE\tF\tG\tH\n\tA\tB\tC\tD\tE\tF\nA\tB\tC\tD\tE\tF\tG\tH\nA0\tBB\t1\tCCC\t2\tDDD\t3EEEE\nW\t\tX\t\tY\t\tZ\n\nAn excerpt from A Clockwork Orange:\n\"What sloochatted then, of course, was that my cellmates woke up and started joining in, tolchocking a bit wild in the near-dark, and the shoom seemed to wake up the whole tier, so that you could slooshy a lot of creeching and banging about with tin mugs on the wall, as though all the plennies in all the cells thought a big break was about to commence, O my brothers.\n", + text: "Hints:\n\t* Insert / CTRL-V toggles overtype mode\n\t* CTRL-Y deletes the current line\n\t* Try Page Up / Page Down\n\t* Home goes to the start of line text\n\t* End goes to the end of a line\n\n\nTab handling:\n-------------------------------------------------\n\tA\tB\tC\tD\tE\tF\nA\tB\tC\tD\tE\tF\tG\tH\n\tA\tB\tC\tD\tE\tF\nA\tB\tC\tD\tE\tF\tG\tH\nA0\tBB\t1\tCCC\t2\tDDD\t3EEEE\nW\t\tX\t\tY\t\tZ\n\nAn excerpt from A Clockwork Orange:\n\"What sloochatted then, of course, was that my cellmates woke up and started joining in, tolchocking a bit wild in the near-dark, and the shoom seemed to wake up the whole tier, so that you could slooshy a lot of creeching and banging about with tin mugs on the wall, as though all the plennies in all the cells thought a big break was about to commence, O my brothers.\n", "focus" : true }, "BT5" : { diff --git a/mods/themes/NU-MAYA/MSGEFTR1.ANS b/mods/themes/NU-MAYA/MSGEFTR1.ANS new file mode 100644 index 0000000000000000000000000000000000000000..29582329516101ae6d10303ac0ec8e553f6cf013 GIT binary patch literal 335 zcmb1+Hn27^ur@Z&RgjK0Hp`8cjyAM5HU;s3qK3JuAwGsc39tZA!T>5^mKzIJ2;^H? zfpi+?x&}Lg^&phm!VK|E%_{|}0owsFL_q;0mkSg$2I@kx(JU7vgDQZ+H_Y|TPf3Ma z4zmL2P9t6}sbI%YXIBFQpz+iKMh1qa2IdB)=NK3m7#RZ?7=bhp2zxsDDulT^LU?cz E03N+S(*OVf literal 0 HcmV?d00001 diff --git a/mods/themes/NU-MAYA/MSGEHDR1.ANS b/mods/themes/NU-MAYA/MSGEHDR1.ANS new file mode 100644 index 0000000000000000000000000000000000000000..6e910e58bdb2ef359dd2a1eee7c334316f5d7051 GIT binary patch literal 2020 zcmb_dv2NQi5Ot;kEGnv;_-NV@7?i~9ZbD4wcWTpJFIMNOV{877VEmM=|&?vV7bGSYce^;Ns|v8 zVUuu0ZP%{Na01?GJv$WjYVELdY>y6kJX3?jt&6#wglGXIKLjLT52F*-#$|`eien5 z9auEZN1Grswb(kK6{!$m64uLLa14*lvLX0e=bzO;kxI9fIHmjZ^P4U#mrEF3es#O8 zrrahHV;Z6}^$L7|98ds|%%URzCFI08Ko62PYO9CLiusa)c;R|w8j*a?mlYp^!*nM? zvfuK-uTXJohlVuGCR7a_5>4xbSn0a>bU|71=Z2<$IwL#&c`;{2jSB^l*frUhY-o1U z>CVN3A427wM}ZNJD#^2WHP+)U+x87`hkl>ffORtB_&||H8R||%aut&=x=gZpOa|`8 z{eF7S9ul@R*erW-$pX$OE@mj;02)6u@f!Tt^bezN{u0}6F~7XuKHTh#$zN}jrl`!d c+5C7jn_XPo&EC#ry!-s&Hvjr*8)oVG7f*2Cf&c&j literal 0 HcmV?d00001 diff --git a/mods/themes/NU-MAYA/MSGEMFT1.ANS b/mods/themes/NU-MAYA/MSGEMFT1.ANS new file mode 100644 index 0000000000000000000000000000000000000000..6c3342045ca359888ca816fab3242f00dfdd1790 GIT binary patch literal 225 zcmb1+Hn29dHZia^Hpo?w26BuIb5%Wj4W*-jqK4MS#$cXCs3uS@S326%$QdL9RBUAh zR1Q?^8VnRMHU()0irT`=a8AriPR-%vk_vVVb#^r{P@o<#GB7kXFgLJBU|?WiWDH