1
0
Fork 0

Revert "Nasal/screen.nas: move log window to top-left and left-align the text."

It's always been at the top; and although it is clear that the intent of this change was to improve things it highlights the need to make more substantial improvements to the way on screen messages are handled.

What we probably should have is an area that has a transparent dark background, a fixed size, supports scrolling, can be left open (or re-opened) and moved persitently around the screen.

This reverts commit 82f3eb45b9.
This commit is contained in:
Richard Harrison 2019-07-29 12:57:48 +02:00
parent 0a68cbd93a
commit 294e76a47f

View file

@ -422,9 +422,8 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
theme_font = getprop("/sim/gui/selected-style/fonts/message-display/name");
}, 1);
log = window.new(5, -30, 10, 10);
log = window.new(nil, -30, 10, 10);
log.sticky = 0; # don't turn on; makes scrolling up messages jump left and right
log.align = 'left';
var b = "/sim/screen/";
setlistener(b ~ "black", func(n) log.write(n.getValue(), 0, 0, 0));