mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 00:41:56 +02:00
* A bit of work on VerticalMenuView
* Inheritance updates for Views * Fixes and better handling of MCI factory
This commit is contained in:
parent
c3aa4c44e2
commit
edc8266310
12 changed files with 125 additions and 73 deletions
|
@ -33,6 +33,9 @@ function View(client, options) {
|
|||
this.position = { x : 0, y : 0 };
|
||||
this.dimens = { height : 1, width : 0 };
|
||||
|
||||
this.textStyle = this.options.textStyle || 'normal';
|
||||
this.focusTextStyle = this.options.focusTextStyle || this.textStyle;
|
||||
|
||||
if(this.options.id) {
|
||||
this.setId(this.options.id);
|
||||
}
|
||||
|
@ -41,6 +44,8 @@ function View(client, options) {
|
|||
this.setPosition(this.options.position);
|
||||
}
|
||||
|
||||
this.isPasswordTextStyle = 'P' === this.textStyle || 'password' === this.textStyle;
|
||||
|
||||
// :TODO: Don't allow width/height > client.term
|
||||
if(this.options.dimens && this.options.dimens.height) {
|
||||
this.dimens.height = this.options.dimens.height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue