diff --git a/core/user_config.js b/core/user_config.js new file mode 100644 index 00000000..4248e840 --- /dev/null +++ b/core/user_config.js @@ -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); + } + ] + ); +}; diff --git a/mods/menu.hjson b/mods/menu.hjson index 86aaafc5..ae30e309 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -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 diff --git a/mods/msg_list.js b/mods/msg_list.js index 2e2e2710..bf5cfdd9 100644 --- a/mods/msg_list.js +++ b/mods/msg_list.js @@ -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 = { diff --git a/mods/themes/luciano_blocktronics/CONFSCR.ANS b/mods/themes/luciano_blocktronics/CONFSCR.ANS new file mode 100644 index 00000000..f43c59a6 Binary files /dev/null and b/mods/themes/luciano_blocktronics/CONFSCR.ANS differ