mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
* Default IDs, support for some basic TextView/labels via MCI
This commit is contained in:
parent
8119c1688a
commit
1dff6a6906
6 changed files with 88 additions and 229 deletions
|
@ -116,10 +116,14 @@ ViewController.prototype.setViewOrder = function(order) {
|
|||
|
||||
if(0 === viewIdOrder.length) {
|
||||
for(var id in this.views) {
|
||||
viewIdOrder.push(id);
|
||||
if(this.views[id].acceptsFocus) {
|
||||
viewIdOrder.push(id);
|
||||
}
|
||||
}
|
||||
|
||||
viewIdOrder.sort();
|
||||
viewIdOrder.sort(function intSort(a, b) {
|
||||
return a - b;
|
||||
});
|
||||
}
|
||||
|
||||
var view;
|
||||
|
@ -130,8 +134,7 @@ ViewController.prototype.setViewOrder = function(order) {
|
|||
|
||||
this.firstId = viewIdOrder[0];
|
||||
var lastId = viewIdOrder[viewIdOrder.length - 1];
|
||||
this.views[lastId].nextId = this.firstId;
|
||||
|
||||
this.views[lastId].nextId = this.firstId;
|
||||
};
|
||||
|
||||
ViewController.prototype.loadFromMCIMap = function(mciMap) {
|
||||
|
@ -145,6 +148,7 @@ ViewController.prototype.loadFromMCIMap = function(mciMap) {
|
|||
if(view) {
|
||||
view.on('action', self.onViewAction);
|
||||
self.addView(view);
|
||||
view.redraw();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue