* Skeleton for user configuration

This commit is contained in:
Bryan Ashby 2015-10-11 23:26:27 -06:00
parent 15d844262d
commit ea8061ae85
4 changed files with 49 additions and 5 deletions

40
core/user_config.js Normal file
View File

@ -0,0 +1,40 @@
/* jslint node: true */
'use strict';
var MenuModule = require('./menu_module.js').MenuModule;
var ViewController = require('./view_controller.js').ViewController;
var async = require('async');
var assert = require('assert');
var _ = require('lodash');
exports.getModule = UserConfigModule;
exports.moduleInfo = {
name : 'User Configuration',
desc : 'Module for user configuration',
author : 'NuSkooler',
};
function UserConfigModule(options) {
MenuModule.call(this, options);
var self = this;
}
require('util').inherits(UserConfigModule, MenuModule);
UserConfigModule.prototype.mciReady = function(mciData, cb) {
var self = this;
var vc = self.viewControllers.allViews = new ViewController( { client : self.client} );
async.series(
[
function callParentMciReady(callback) {
UserConfigModule.super_.prototype.mciReady.call(self, mciData, callback);
}
]
);
};

View File

@ -409,9 +409,6 @@
},
mainMenu: {
art: MMENU
/*options: {
trailingLF: yes
}*/
desc: Main Menu
prompt: menuCommand
"submit" : [
@ -441,6 +438,10 @@
"value" : { "command" : "M" },
"action" : "@menu:messageArea"
},
{
value: { command: "C" }
action: @menu:mainMenuUserConfig
}
{
"value" : 1,
"action" : "@menu:mainMenu"
@ -455,7 +456,10 @@
mainMenuUserStats: {
art: STATUS
options: { pause: true }
next: mainMenu
}
mainMenuUserConfig: {
module: @systemModule:user_config
art: CONFSCR
}
///////////////////////////////////////////////////////////////////////
// Message Area Related

View File

@ -110,7 +110,7 @@ MessageListModule.prototype.mciReady = function(mciData, cb) {
async.series(
[
function callParentMciReady(callback) {
MessageListModule.super_.prototype.mciReady.call(this, mciData, callback);
MessageListModule.super_.prototype.mciReady.call(self, mciData, callback);
},
function loadFromConfig(callback) {
var loadOpts = {

Binary file not shown.