mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 10:45:56 +02:00
+ SpinnerMenuView (MCI=SM)
* Some menu view rework... WIP
This commit is contained in:
parent
7a643150e7
commit
10d8812300
7 changed files with 144 additions and 33 deletions
|
@ -64,7 +64,7 @@ function VerticalMenuView(options) {
|
|||
|
||||
self.client.term.write(ansi.goto(item.xPosition, self.position.y));
|
||||
this.client.term.write(self.getANSIColor(
|
||||
index === self.focusedItemIndex || item.selected ? self.getFocusColor() : self.getColor()));
|
||||
index === self.focusedItemIndex ? self.getFocusColor() : self.getColor()));
|
||||
|
||||
var text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
||||
|
||||
|
@ -75,6 +75,10 @@ function VerticalMenuView(options) {
|
|||
|
||||
util.inherits(VerticalMenuView, MenuView);
|
||||
|
||||
VerticalMenuView.prototype.redraw = function() {
|
||||
VerticalMenuView.super_.prototype.redrawAllItems.call(this);
|
||||
};
|
||||
|
||||
VerticalMenuView.prototype.setPosition = function(pos) {
|
||||
VerticalMenuView.super_.prototype.setPosition.call(this, pos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue