| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <PropertyList> |
| 4 | <name>chat</name> |
| 5 | <modal>false</modal> |
| 6 | <resizable>true</resizable> |
| 7 | <x>-5</x> |
| 8 | <y>5</y> |
| 9 | <layout>hbox</layout> |
| 10 | <default-padding>5</default-padding> |
| 11 | |
| 12 | <color> |
| 13 | <enabled>false</enabled> |
| 14 | <red>0.5</red> |
| 15 | <green>0.5</green> |
| 16 | <blue>0.5</blue> |
| 17 | <alpha>0.3</alpha> |
| 18 | </color> |
| 19 | |
| 20 | <button-color> |
| 21 | <enabled>false</enabled> |
| 22 | <red>0.5</red> |
| 23 | <green>0.5</green> |
| 24 | <blue>0.5</blue> |
| 25 | <alpha>0.3</alpha> |
| 26 | </button-color> |
| 27 | |
| 28 | <button> |
| 29 | <legend>Close</legend> |
| 30 | <pref-width>45</pref-width> |
| 31 | <pref-height>30</pref-height> |
| 32 | <equal>true</equal> |
| 33 | <binding> |
| 34 | <command>dialog-close</command> |
| 35 | </binding> |
| 36 | <color> |
| 37 | <red alias="../../../button-color/red"/> |
| 38 | <green alias="../../../button-color/green"/> |
| 39 | <blue alias="../../../button-color/blue"/> |
| 40 | <alpha alias="../../../button-color/alpha"/> |
| 41 | </color> |
| 42 | </button> |
| 43 | |
| 44 | <button> |
| 45 | <legend>More</legend> |
| 46 | <equal>true</equal> |
| 47 | <pref-width>45</pref-width> |
| 48 | <pref-height>30</pref-height> |
| 49 | <binding> |
| 50 | <command>dialog-show</command> |
| 51 | <dialog-name>chat-full</dialog-name> |
| 52 | </binding> |
| 53 | <binding> |
| 54 | <command>dialog-close</command> |
| 55 | </binding> |
| 56 | <color> |
| 57 | <red alias="../../../button-color/red"/> |
| 58 | <green alias="../../../button-color/green"/> |
| 59 | <blue alias="../../../button-color/blue"/> |
| 60 | <alpha alias="../../../button-color/alpha"/> |
| 61 | </color> |
| 62 | </button> |
| 63 | |
| 64 | <input> |
| 65 | <name>compose</name> |
| 66 | <pref-width>500</pref-width> |
| 67 | <stretch>true</stretch> |
| 68 | <halign>fill</halign> |
| 69 | <length>50</length> |
| 70 | <property>/sim/multiplay/chat-compose</property> |
| 71 | <color> |
| 72 | <red>0.5</red> |
| 73 | <green>0.5</green> |
| 74 | <blue>0.5</blue> |
| 75 | <alpha>0.3</alpha> |
| 76 | </color> |
| 77 | <color-legend> |
| 78 | <red>1</red> |
| 79 | <green>1</green> |
| 80 | <blue>1</blue> |
| 81 | <alpha>1</alpha> |
| 82 | </color-legend> |
| 83 | <font> |
| 84 | <property>sim/gui/selected-style/fonts/gui-small</property> |
| 85 | </font> |
| 86 | </input> |
| 87 | |
| 88 | <button> |
| 89 | <legend>Send</legend> |
| 90 | <default>true</default> |
| 91 | <pref-width>45</pref-width> |
| 92 | <pref-height>30</pref-height> |
| 93 | <equal>true</equal> |
| 94 | <binding> |
| 95 | <command>dialog-apply</command> |
| 96 | </binding> |
| 97 | <binding> |
| 98 | <command>nasal</command> |
| 99 | <script> |
| 100 | var lchat = getprop("/sim/multiplay/chat-compose"); |
| 101 | if (lchat != "") |
| 102 | { |
| 103 | setprop("/sim/multiplay/chat", lchat); |
| 104 | setprop("/sim/multiplay/chat-compose", ""); |
| 105 | gui.dialog_update("chat", "compose"); |
| 106 | } |
| 107 | </script> |
| 108 | </binding> |
| 109 | <color> |
| 110 | <red alias="../../../button-color/red"/> |
| 111 | <green alias="../../../button-color/green"/> |
| 112 | <blue alias="../../../button-color/blue"/> |
| 113 | <alpha alias="../../../button-color/alpha"/> |
| 114 | </color> |
| 115 | </button> |
| 116 | </PropertyList> |