* Use standard MCI codes in FSE/etc.

* Add mod mixin for temp area/conf switch e.g. used by new scan, fse, so on
* string utils: renderSubstr(), renderStringLength(): Works with *rendered* text. That is, is smart enough to ignore ANSI and RA style pipe color codes
* string util pad() works with ANSI/RA pipe codes
* TextView can now display text with RA pipe codes and MCI codes
* Message conf/area welcome art #81
* Update luciano art with new MCI
This commit is contained in:
Bryan Ashby 2016-08-03 19:48:45 -06:00
parent 3d098e927a
commit 969cd35ece
11 changed files with 439 additions and 223 deletions

View file

@ -116,6 +116,8 @@ function MessageListModule(options) {
require('util').inherits(MessageListModule, MenuModule);
require('../core/mod_mixins.js').MessageAreaConfTempSwitcher.call(MessageListModule.prototype);
MessageListModule.prototype.enter = function() {
MessageListModule.super_.prototype.enter.call(this);
@ -124,23 +126,14 @@ MessageListModule.prototype.enter = function() {
// the user's current area
//
if(this.messageAreaTag) {
this.prevMessageConfAndArea = {
confTag : this.client.user.properties.message_conf_tag,
areaTag : this.client.user.properties.message_area_tag,
};
if(!messageArea.tempChangeMessageConfAndArea(this.client, this.messageAreaTag)) {
// :TODO: Really, checks should have been done & failed before this, but log here!
}
this.tempMessageConfAndAreaSwitch(this.messageAreaTag);
} else {
this.messageAreaTag = this.messageAreaTag = this.client.user.properties.message_area_tag;
}
};
MessageListModule.prototype.leave = function() {
if(this.prevMessageConfAndArea) {
this.client.user.properties.message_conf_tag = this.prevMessageConfAndArea.confTag;
this.client.user.properties.message_area_tag = this.prevMessageConfAndArea.areaTag;
}
this.tempMessageConfAndAreaRestore();
MessageListModule.super_.prototype.leave.call(this);
};