mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
* Menus can specify status
* WIP changes of message loading in viewer - can now do next... WIP!!!
This commit is contained in:
parent
b911db75ca
commit
1f3948d84c
8 changed files with 169 additions and 65 deletions
|
@ -30,8 +30,7 @@ function MenuModule(options) {
|
|||
this.initSequence = function() {
|
||||
var mciData = { };
|
||||
|
||||
// :TODO: This could be .series() currently
|
||||
async.waterfall(
|
||||
async.series(
|
||||
[
|
||||
function beforeDisplayArt(callback) {
|
||||
self.beforeArt();
|
||||
|
@ -139,6 +138,16 @@ function MenuModule(options) {
|
|||
menuUtil.handleAction(self.client, null, self.menuConfig);
|
||||
}
|
||||
};
|
||||
|
||||
this.setMenuStatus = function(status) {
|
||||
self.menuStatus = status;
|
||||
};
|
||||
|
||||
if(_.isString(this.menuConfig.status)) {
|
||||
self.setMenuStatus(self.menuConfig.status);
|
||||
} else {
|
||||
self.setMenuStatus('Browsing menus');
|
||||
}
|
||||
}
|
||||
|
||||
require('util').inherits(MenuModule, PluginModule);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue