mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
* Some work on User creation/persistance
* Fix some MCI parsing from menu.json * Add 'options' to menu entries
This commit is contained in:
parent
2bac8e006e
commit
85a72935fa
7 changed files with 138 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
|||
var PluginModule = require('./plugin_module.js').PluginModule;
|
||||
var theme = require('./theme.js');
|
||||
var Log = require('./logger.js').log;
|
||||
var ansi = require('./ansi_term.js');
|
||||
|
||||
var async = require('async');
|
||||
var assert = require('assert');
|
||||
|
@ -15,6 +16,7 @@ function MenuModule(options) {
|
|||
|
||||
var self = this;
|
||||
this.menuConfig = options.menuConfig;
|
||||
this.menuConfig.options = options.menuConfig.options || {};
|
||||
this.menuMethods = {};
|
||||
this.viewControllers = [];
|
||||
|
||||
|
@ -76,6 +78,10 @@ MenuModule.prototype.addViewController = function(vc) {
|
|||
};
|
||||
|
||||
MenuModule.prototype.beforeArt = function() {
|
||||
if(this.menuConfig.options.clearScreen) {
|
||||
this.client.term.write(ansi.resetScreen());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
MenuModule.prototype.mciReady = function(mciMap) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue