1
0
Fork 0
fgdata/gui/dialogs/chat_full.xml
2009-01-10 22:47:36 +00:00

98 lines
2 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>chat-full</name>
<modal>false</modal>
<layout>vbox</layout>
<resizable>true</resizable>
<text>
<label>Multiplayer Chat</label>
</text>
<hrule/>
<textbox>
<halign>fill</halign>
<valign>fill</valign>
<stretch>true</stretch>
<pref-width>550</pref-width>
<pref-height>120</pref-height>
<slider>20</slider>
<live>true</live>
<wrap>true</wrap>
<editable>false</editable>
<property>/sim/multiplay/chat-history</property>
</textbox>
<text>
<label></label>
</text>
<group>
<layout>hbox</layout>
<input>
<name>compose</name>
<stretch>true</stretch>
<halign>fill</halign>
<stretch>true</stretch>
<length>50</length>
<pref-width>500</pref-width>
<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", "");
gui.dialog_update("chat-full", "compose");
}
</script>
</binding>
</button>
</group>
<text>
<label></label>
</text>
<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>Less ^</legend>
<default>false</default>
<binding>
<command>dialog-show</command>
<dialog-name>chat</dialog-name>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>