mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-08 05:34:41 +02:00
* Message view prev/next
* Message view up/down movement * Some new experimental MCI codes * Put cursor @ top of document in MLTEV preview mode * Fix fse finishedLoading() * Menus can have names, clients have current status
This commit is contained in:
parent
1f3948d84c
commit
6517f50e0c
8 changed files with 64 additions and 90 deletions
|
@ -24,7 +24,7 @@ function MenuModule(options) {
|
|||
this.menuConfig = options.menuConfig;
|
||||
this.menuConfig.options = options.menuConfig.options || {};
|
||||
this.menuMethods = {}; // methods called from @method's
|
||||
|
||||
|
||||
this.initViewControllers();
|
||||
|
||||
this.initSequence = function() {
|
||||
|
@ -138,16 +138,6 @@ 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);
|
||||
|
@ -158,6 +148,12 @@ MenuModule.prototype.enter = function(client) {
|
|||
this.client = client;
|
||||
assert(_.isObject(client));
|
||||
|
||||
if(_.isString(this.menuConfig.status)) {
|
||||
this.client.currentStatus = this.menuConfig.status;
|
||||
} else {
|
||||
this.client.currentStatus = 'Browsing menus';
|
||||
}
|
||||
|
||||
this.initSequence();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue