mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-03 08:22:02 +02:00
* A few updates to experimental per-client child logging
* StatusBarView skeleton * Code cleanup * Menus scan specify emulated baud rate
This commit is contained in:
parent
8fecc779d1
commit
a241f91546
7 changed files with 75 additions and 11 deletions
44
core/status_bar_view.js
Normal file
44
core/status_bar_view.js
Normal file
|
@ -0,0 +1,44 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var View = require('./view.js').View;
|
||||
var TextView = require('./text_view.js').TextView;
|
||||
|
||||
var assert = require('assert');
|
||||
var _ = require('lodash');
|
||||
|
||||
function StatusBarView(options) {
|
||||
View.call(this, options);
|
||||
|
||||
var self = this;
|
||||
|
||||
|
||||
}
|
||||
|
||||
require('util').inherits(StatusBarView, View);
|
||||
|
||||
StatusBarView.prototype.redraw = function() {
|
||||
|
||||
StatusBarView.super_.prototype.redraw.call(this);
|
||||
|
||||
};
|
||||
|
||||
StatusBarView.prototype.setPanels = function(panels) {
|
||||
|
||||
/*
|
||||
"panels" : [
|
||||
{
|
||||
"text" : "things and stuff",
|
||||
"width" 20,
|
||||
...
|
||||
},
|
||||
{
|
||||
"width" : 40 // no text, etc... = spacer
|
||||
}
|
||||
]
|
||||
|
||||
|---------------------------------------------|
|
||||
| stuff |
|
||||
*/
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue