* Some work on cursor hiding while redrawing. WIP.

This commit is contained in:
Bryan Ashby 2015-04-27 20:19:17 -06:00
parent 10d8812300
commit 75bb9e91e4
6 changed files with 48 additions and 9 deletions

View file

@ -13,20 +13,14 @@ exports.SpinnerMenuView = SpinnerMenuView;
function SpinnerMenuView(options) {
options.justify = options.justify || 'center';
options.cursor = options.cursor || 'hide';
MenuView.call(this, options);
var self = this;
this.cachePositions = function() {
if(self.positionCacheExpired) {
var count = this.items.length;
// :TODO: change all xPosition, yPosition -> position.x, .y
for(var i = 0; i < count; ++i) {
self.items[i].xPosition = self.position.x;
}
self.positionCacheExpired = false;
}
self.positionCacheExpired = false;
};
this.updateSelection = function() {