Add option to move chat to the left and align left.
This commit is contained in:
parent
4b44878843
commit
a2c3c4c3d8
3 changed files with 21 additions and 2 deletions
|
@ -549,7 +549,11 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
||||||
|
|
||||||
|
|
||||||
#-- Init -----------------------------------------------------------------------
|
#-- Init -----------------------------------------------------------------------
|
||||||
property_display = display.new(5, -25);
|
if (getprop("/sim/chat-on-the-left")) {
|
||||||
|
property_display = display.new(5, -250);
|
||||||
|
} else {
|
||||||
|
property_display = display.new(5, -25);
|
||||||
|
}
|
||||||
listener.display = setlistener("/sim/gui/dialogs/property-browser/selected", func(n) {
|
listener.display = setlistener("/sim/gui/dialogs/property-browser/selected", func(n) {
|
||||||
var n = n.getValue();
|
var n = n.getValue();
|
||||||
if (n != "" and getprop("/devices/status/keyboard/shift")) {
|
if (n != "" and getprop("/devices/status/keyboard/shift")) {
|
||||||
|
@ -567,7 +571,12 @@ setlistener("/sim/gui/current-style", func {
|
||||||
theme_font = getprop("/sim/gui/selected-style/fonts/message-display/name");
|
theme_font = getprop("/sim/gui/selected-style/fonts/message-display/name");
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
log = window.new(nil, -30, 10, 10);
|
if (getprop("/sim/chat-on-the-left")) {
|
||||||
|
log = window.new(5, -30, 10, 10);
|
||||||
|
log.align = "left";
|
||||||
|
} else {
|
||||||
|
log = window.new(nil, -30, 10, 10);
|
||||||
|
}
|
||||||
log.sticky = 0; # do not turn on; makes scrolling up messages jump left and right
|
log.sticky = 0; # do not turn on; makes scrolling up messages jump left and right
|
||||||
|
|
||||||
var b = "/sim/screen/";
|
var b = "/sim/screen/";
|
||||||
|
|
|
@ -899,6 +899,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<auto-attach type="bool" userarchive="y">true</auto-attach>
|
<auto-attach type="bool" userarchive="y">true</auto-attach>
|
||||||
</mp-carriers>
|
</mp-carriers>
|
||||||
<freeze-mouse-flight-controls-on-pause type="bool" userarchive="n">true</freeze-mouse-flight-controls-on-pause>
|
<freeze-mouse-flight-controls-on-pause type="bool" userarchive="n">true</freeze-mouse-flight-controls-on-pause>
|
||||||
|
<chat-on-the-left type="bool" userarchive="y">false</chat-on-the-left>
|
||||||
</sim>
|
</sim>
|
||||||
<!-- accelerations -->
|
<!-- accelerations -->
|
||||||
<accelerations>
|
<accelerations>
|
||||||
|
|
|
@ -147,6 +147,15 @@
|
||||||
</binding>
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
|
||||||
|
<checkbox>
|
||||||
|
<halign>left</halign>
|
||||||
|
<label>Chat and event log on the left (requires restart)</label>
|
||||||
|
<property>/sim/chat-on-the-left</property>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
|
||||||
<checkbox>
|
<checkbox>
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Show popup messages</label>
|
<label>Show popup messages</label>
|
||||||
|
|
Loading…
Reference in a new issue