1
0
Fork 0

Add option to move chat to the left and align left.

This commit is contained in:
Michael Danilov 2021-02-09 13:48:48 +01:00
parent f9b68b3ef5
commit 2b06998c47

View file

@ -48,12 +48,6 @@
target.getNode("property").setValue(enabled.getPath());
}
}
if (getprop("/sim/gui/chat-box-location") == "left") {
setprop("/sim/gui/dialogs/view/chat-box-left-checked", 1);
} else {
setprop("/sim/gui/dialogs/view/chat-box-left-checked", 0);
}
</open>
</nasal>
@ -153,25 +147,25 @@
</binding>
</checkbox>
<checkbox>
<live>true</live>
<halign>left</halign>
<label>Chat and event log on the left (requires restart)</label>
<property>/sim/gui/dialogs/view/chat-box-left-checked</property>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
if (getprop("/sim/gui/dialogs/view/chat-box-left-checked")) {
setprop("/sim/gui/chat-box-location", "left");
} else {
setprop("/sim/gui/chat-box-location", "default");
}
</script>
</binding>
</checkbox>
<group>
<layout>hbox</layout>
<text>
<label>Chat and event log position (requires restart):</label>
</text>
<combo>
<name>chatlocation</name>
<property>/sim/gui/chat-box-location</property>
<value>default</value>
<value>left</value>
<binding>
<command>dialog-apply</command>
<object-name>chatlocation</object-name>
</binding>
</combo>
</group>
<checkbox>
<halign>left</halign>