Skip to content
Snippets Groups Projects

Mlong/ddmsgcolor

Merged Eric Oulashin requested to merge mlong/ddmsgcolor into master
3 files
+ 12
10
Compare changes
  • Side-by-side
  • Inline
Files
3
// $Id: DDMsgReader.js,v 1.143 2020/05/23 23:30:28 nightfox Exp $
/* This is a message reader/lister door for Synchronet. Features include:
* - Listing messages in the user's current message area with the ability to
* navigate forwards & backwards through the list (and for ANSI users, a
@@ -76,6 +74,9 @@
* 2020-12-01 Eric Oulashin Version 1.39
* When forwarding a message, added the ability to
* optionally edit the message before forwarding it.
* 2021-01-31 Michael Long Version 1.40
* Fixed left/right colors not being customizable on message
* list lightbar
*/
@@ -187,8 +188,8 @@ if (system.version_num < 31500)
}
// Reader version information
var READER_VERSION = "1.39";
var READER_DATE = "2020-12-01";
var READER_VERSION = "1.40";
var READER_DATE = "2021-01-31";
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
@@ -7303,13 +7304,13 @@ function DigDistMsgReader_SetMsgListPauseTextAndLightbarHelpLine()
var numLeft = Math.floor(numChars / 2);
var numRight = numChars - numLeft;
for (var i = 0; i < numLeft; ++i)
this.msgListLightbarModeHelpLine = "Û" + this.msgListLightbarModeHelpLine;
this.msgListLightbarModeHelpLine = " " + this.msgListLightbarModeHelpLine;
this.msgListLightbarModeHelpLine = "\1n"
+ this.colors.lightbarMsgListHelpLineBkgColor
+ this.msgListLightbarModeHelpLine;
this.msgListLightbarModeHelpLine += "\1n" + this.colors.lightbarMsgListHelpLineBkgColor;
for (var i = 0; i < numRight; ++i)
this.msgListLightbarModeHelpLine += "Û";
this.msgListLightbarModeHelpLine += ' ';
}
}
// For the DigDistMsgReader Class: Sets the hotkey help line for the enhanced
@@ -13358,8 +13359,7 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody)
newMsgBody += "==================================\n\n";
newMsgBody += pMsgBody;
// New - Editing the message
// TODO: Ask whether to edit the message before forwarding it,
// Ask whether to edit the message before forwarding it,
// and use console.editfile(filename) to edit it.
if (!console.noyes("Edit the message before sending"))
{
Loading