e092ee9abc
- save /sim/multiplayer/chat-display to autosave.xml - remove trailing spaces
71 lines
1.6 KiB
XML
71 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
<name>chat</name>
|
|
<modal>false</modal>
|
|
<layout>vbox</layout>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
|
|
<input>
|
|
<name>compose</name>
|
|
<pref-width>500</pref-width>
|
|
<stretch>true</stretch>
|
|
<halign>fill</halign>
|
|
<length>50</length>
|
|
<property>/sim/multiplay/chat-compose</property>
|
|
</input>
|
|
|
|
<button>
|
|
<legend>Send</legend>
|
|
<default>true</default>
|
|
<key>Enter</key>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
var lchat = getprop("/sim/multiplay/chat-compose");
|
|
if (lchat != "")
|
|
{
|
|
setprop("/sim/multiplay/chat", lchat);
|
|
setprop("/sim/multiplay/chat-compose", "");
|
|
fgcommand("dialog-update", props.Node.new({"object-name": "compose",
|
|
"dialog-name": "chat"}));
|
|
}
|
|
</script>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
<legend>Close</legend>
|
|
<default>true</default>
|
|
<key>Esc</key>
|
|
<binding>
|
|
<command>dialog-close</command>
|
|
</binding>
|
|
</button>
|
|
|
|
<button>
|
|
<legend>More v</legend>
|
|
<default>false</default>
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>chat-full</dialog-name>
|
|
</binding>
|
|
<binding>
|
|
<command>dialog-close</command>
|
|
</binding>
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
</group>
|
|
</PropertyList>
|