mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
* More work on menu system and form handling. Lots of work to do!
This commit is contained in:
parent
d6ffa2b26e
commit
3274908586
7 changed files with 54 additions and 11 deletions
|
@ -9,7 +9,6 @@ var assert = require('assert');
|
|||
exports.ButtonView = ButtonView;
|
||||
|
||||
function ButtonView(client, options) {
|
||||
console.log(options);
|
||||
options.acceptsFocus = miscUtil.valueWithDefault(options.acceptsFocus, true);
|
||||
options.acceptsInput = miscUtil.valueWithDefault(options.acceptsInput, true);
|
||||
options.justify = miscUtil.valueWithDefault(options.justify, 'center');
|
||||
|
@ -27,4 +26,8 @@ ButtonView.prototype.onKeyPress = function(key, isSpecial) {
|
|||
if(' ' === key) {
|
||||
this.emit('action', 'accept');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
ButtonView.prototype.getViewData = function() {
|
||||
return null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue