mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Start work on new ANSI parser color/style system. Mostly notes. Will do in bulk later
* Start of styleColorX concept
This commit is contained in:
parent
39fff7826c
commit
48be2f69be
9 changed files with 109 additions and 26 deletions
|
@ -183,6 +183,20 @@ function ViewController(options) {
|
|||
setViewProp('focusTextStyle');
|
||||
setViewProp('maxLength');
|
||||
setViewProp('width', function(v) { view.dimens.width = parseInt(v, 10); });
|
||||
|
||||
setViewProp('styleColor1', function(v) {
|
||||
if(!_.has(v, 'fg')) {
|
||||
return;
|
||||
}
|
||||
|
||||
var color = {
|
||||
fg : v.fg,
|
||||
bg : v.bg || 0,
|
||||
flags : v.flags || 0
|
||||
};
|
||||
|
||||
view.styleColor1 = color;
|
||||
});
|
||||
|
||||
setViewProp('fillChar', function(v) {
|
||||
if(_.isNumber(v)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue