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()); 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> </open>
</nasal> </nasal>
@ -153,25 +147,25 @@
</binding> </binding>
</checkbox> </checkbox>
<checkbox> <group>
<live>true</live> <layout>hbox</layout>
<halign>left</halign>
<label>Chat and event log on the left (requires restart)</label> <text>
<property>/sim/gui/dialogs/view/chat-box-left-checked</property> <label>Chat and event log position (requires restart):</label>
<binding> </text>
<command>dialog-apply</command>
</binding> <combo>
<binding> <name>chatlocation</name>
<command>nasal</command> <property>/sim/gui/chat-box-location</property>
<script> <value>default</value>
if (getprop("/sim/gui/dialogs/view/chat-box-left-checked")) { <value>left</value>
setprop("/sim/gui/chat-box-location", "left"); <binding>
} else { <command>dialog-apply</command>
setprop("/sim/gui/chat-box-location", "default"); <object-name>chatlocation</object-name>
} </binding>
</script> </combo>
</binding>
</checkbox> </group>
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>