1
0
Fork 0

Added dialogs for the ' aircraft' ATC...

This commit is contained in:
sydadams 2007-06-03 06:26:37 +00:00
parent 9a37371eaa
commit 8cfd32dd2d
2 changed files with 111 additions and 0 deletions

39
gui/dialogs/ATC-log.xml Normal file
View file

@ -0,0 +1,39 @@
<?xml version="1.0"?>
<PropertyList>
<name>ATC-log</name>
<modal>false</modal>
<layout>vbox</layout>
<x>680</x>
<y>65</y>
<width>340</width>
<height>250</height>
<font>
<name>HELVETICA_12</name>
</font>
<color>
<red>0.8</red>
<green>0.8</green>
<blue>0.8</blue>
<alpha>0</alpha>
</color>
<draggable>false</draggable>
<textbox>
<color>
<red>0.0</red>
<green>0.0</green>
<blue>0.0</blue>
<alpha>1</alpha>
</color>
<halign>fill</halign>
<pref-width>330</pref-width>
<pref-height>240</pref-height>
<slider>15</slider>
<live>true</live>
<wrap>false</wrap>
<editable>false</editable>
<property>/sim/multiplay/chat_history</property>
</textbox>
</PropertyList>

72
gui/dialogs/ATCchat.xml Normal file
View file

@ -0,0 +1,72 @@
<?xml version="1.0"?>
<PropertyList>
<name>ATCchat</name>
<x>0</x>
<y>15</y>
<width>880</width>
<height>20</height>
<modal>false</modal>
<font>
<name>HELVETICA_12</name>
</font>
<color>
<red>0.8</red>
<green>0.8</green>
<blue>0.8</blue>
<alpha>0</alpha>
</color>
<draggable>false</draggable>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text>
<x>0</x>
<y>12</y>
<label>ATC Chat</label>
<color>
<red>1.0</red>
<green>1.0</green>
<blue>1.0</blue>
</color>
</text>
<input>
<name>compose</name>
<color>
<red>0.0</red>
<green>0.0</green>
<blue>0.0</blue>
</color>
<pref-width>880</pref-width>
<stretch>true</stretch>
<halign>fill</halign>
<length>880</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": "ATCchat"}));
}
</script>
</binding>
</button>
</group>
</PropertyList>