mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-03 08:22:02 +02:00
* Artwork for NU-MAYA help, updated quote builder, etc.
* Fix some typos * Fix message getQuoteLines() * Quote builder fully functional * MLTEV emits more information in position events * Action keys can how handle plain characters that don't have full key object, e.g. "?" * Hot keys for a lot of stuff * WIP work on focus issue in VC.
This commit is contained in:
parent
d23012a201
commit
a6d00b05a7
11 changed files with 157 additions and 80 deletions
|
@ -439,7 +439,7 @@
|
|||
footerEdit: demo_fse_netmail_footer_edit.ans
|
||||
footerEditMenu: demo_fse_netmail_footer_edit_menu.ans
|
||||
footerView: MSGVFTR
|
||||
help: demo_fse_netmail_help.ans
|
||||
help: MSGVHLP
|
||||
},
|
||||
editorMode: view
|
||||
editorType: area
|
||||
|
@ -502,34 +502,48 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"4" : {
|
||||
"mci" : {
|
||||
"HM1" : {
|
||||
// (P)rev/(N)ext/Post/(R)eply/(Q)uit/(?)Help
|
||||
// (#)Jump/(L)Index (msg list)/Last
|
||||
"items" : [ "Prev", "Next", "Reply", "Quit", "Help" ]
|
||||
4: {
|
||||
mci: {
|
||||
HM1: {
|
||||
// :TODO: (#)Jump/(L)Index (msg list)/Last
|
||||
items: [
|
||||
// (P)revious
|
||||
Prev
|
||||
// (N)ext
|
||||
Next
|
||||
// (R)reply
|
||||
Reply
|
||||
// (Q)uit (ESC)
|
||||
Quit
|
||||
// (?)Help
|
||||
Help
|
||||
]
|
||||
}
|
||||
},
|
||||
"submit" : {
|
||||
"*" : [
|
||||
{
|
||||
"value" : { "1" : 0 },
|
||||
"action" : "@method:prevMessage"
|
||||
},
|
||||
value: { 1: 0 }
|
||||
action: @method:prevMessage"
|
||||
}
|
||||
{
|
||||
"value" : { "1" : 1 },
|
||||
"action" : "@method:nextMessage"
|
||||
},
|
||||
value: { 1: 1 }
|
||||
action: @method:nextMessage
|
||||
}
|
||||
{
|
||||
value: { 1: 2 }
|
||||
action: @method:replyMessage
|
||||
extraArgs: {
|
||||
menu: messageAreaReplyPost
|
||||
}
|
||||
},
|
||||
}
|
||||
{
|
||||
"value" : { "1" : 3 },
|
||||
"action" : "@menu:messageArea"
|
||||
value: { 1: 3 }
|
||||
action: @menu:messageArea
|
||||
}
|
||||
{
|
||||
value: { 1: 4 }
|
||||
action: @method:viewModeMenuHelp
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -549,11 +563,6 @@
|
|||
keys: [ "n", "shift + n" ]
|
||||
action: @method:nextMessage
|
||||
}
|
||||
{
|
||||
keys: [ "escape", "q", "shift + q" ]
|
||||
action: @menu:messageArea
|
||||
}
|
||||
// :TODO: why the fuck is 'r' not working but 'n' for example does?
|
||||
{
|
||||
keys: [ "r", "shift + r" ]
|
||||
action: @method:replyMessage
|
||||
|
@ -561,6 +570,14 @@
|
|||
menu: messageAreaReplyPost
|
||||
}
|
||||
}
|
||||
{
|
||||
keys: [ "escape", "q", "shift + q" ]
|
||||
action: @menu:messageArea
|
||||
}
|
||||
{
|
||||
keys: [ "?" ]
|
||||
action: @method:viewModeMenuHelp
|
||||
}
|
||||
{
|
||||
"keys" : [ "down arrow", "up arrow", "page up", "page down" ],
|
||||
"action" : "@method:movementKeyPressed"
|
||||
|
@ -578,8 +595,7 @@
|
|||
quote: MSGQUOT
|
||||
footerEditor: MSGEFTR
|
||||
footerEditorMenu: MSGEMFT
|
||||
// :TODO: fix help
|
||||
help: demo_fse_netmail_help.ans
|
||||
help: MSGEHLP
|
||||
}
|
||||
editorMode: edit
|
||||
editorType: area
|
||||
|
@ -602,9 +618,10 @@
|
|||
argName: subject
|
||||
maxLength: 72
|
||||
submit: true
|
||||
textOverflow: ...
|
||||
}
|
||||
TL4: {
|
||||
// :TODO: this is for RE: line
|
||||
// :TODO: this is for RE: line (NYI)
|
||||
width: 27
|
||||
textOverflow: ...
|
||||
}
|
||||
|
@ -667,10 +684,27 @@
|
|||
keys: [ "escape" ]
|
||||
action: @method:editModeEscPressed
|
||||
}
|
||||
{
|
||||
keys: [ "s", "shift + s" ]
|
||||
action: @method:replySave
|
||||
}
|
||||
{
|
||||
keys: [ "d", "shift + d" ]
|
||||
action: @method:replyDiscard
|
||||
}
|
||||
{
|
||||
keys: [ "q", "shift + q" ]
|
||||
action: @method:editModeMenuQuote
|
||||
}
|
||||
{
|
||||
keys: [ "?" ]
|
||||
action: @method:editModeMenuHelp
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// Quote builder
|
||||
5: {
|
||||
mci: {
|
||||
MT1: {
|
||||
|
@ -713,7 +747,7 @@
|
|||
body: MSGBODY
|
||||
footerEditor: MSGEFTR
|
||||
footerEditorMenu: MSGEMFT
|
||||
help: demo_fse_netmail_help.ans
|
||||
help: MSGEHLP
|
||||
},
|
||||
editorMode: edit
|
||||
editorType: area
|
||||
|
|
|
@ -70,6 +70,11 @@ AreaPostFSEModule.prototype.enter = function(client) {
|
|||
AreaPostFSEModule.prototype.validateToUserName = function(un, cb) {
|
||||
var self = this;
|
||||
|
||||
if(!un) {
|
||||
cb(new Error('Username must be supplied!'));
|
||||
return;
|
||||
}
|
||||
|
||||
if(!self.isLocalEmail()) {
|
||||
cb(null);
|
||||
return;
|
||||
|
|
|
@ -60,8 +60,12 @@ function AreaViewFSEModule(options) {
|
|||
case 'down arrow' : bodyView.scrollDocumentUp(); break;
|
||||
case 'up arrow' : bodyView.scrollDocumentDown(); break;
|
||||
case 'page up' : bodyView.keyPressPageUp(); break;
|
||||
case 'page down' : bodyView.keyPressPageDown(); break;
|
||||
case 'page down' : bodyView.keyPressPageDown(); break;
|
||||
}
|
||||
|
||||
// :TODO: need to stop down/page down if doing so would push the last
|
||||
// visible page off the screen at all
|
||||
|
||||
};
|
||||
|
||||
this.menuMethods.replyMessage = function(formData, extraArgs) {
|
||||
|
|
BIN
mods/themes/NU-MAYA/MSGEHLP.ANS
Normal file
BIN
mods/themes/NU-MAYA/MSGEHLP.ANS
Normal file
Binary file not shown.
Binary file not shown.
BIN
mods/themes/NU-MAYA/MSGVHLP.ANS
Normal file
BIN
mods/themes/NU-MAYA/MSGVHLP.ANS
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue