mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 12:08:21 +02:00
* Some work on cursor hiding while redrawing. WIP.
This commit is contained in:
parent
10d8812300
commit
75bb9e91e4
6 changed files with 48 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue