Debian Codegraph @

gui/dialogs/chat_full.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4 <name>chat-full</name>
5 <modal>false</modal>
6 <layout>vbox</layout>
7 <resizable>true</resizable>
8 <x>-20</x>
9 <y>20</y>
10
11 <group>
12 <layout>hbox</layout>
13
14 <text>
15 <label>Multiplayer Chat</label>
16 </text>
17
18 <empty><stretch>1</stretch></empty>
19
20 <button>
21 <legend>-</legend>
22 <pref-width>20</pref-width>
23 <pref-height>20</pref-height>
24 <binding>
25 <command>dialog-show</command>
26 <dialog-name>chat</dialog-name>
27 </binding>
28 <binding>
29 <command>dialog-close</command>
30 </binding>
31 </button>
32
33 <button>
34 <legend>X</legend>
35 <key>Esc</key>
36 <pref-width>20</pref-width>
37 <pref-height>20</pref-height>
38 <binding>
39 <command>dialog-close</command>
40 </binding>
41 </button>
42 </group>
43
44 <hrule/>
45
46 <textbox>
47 <halign>fill</halign>
48 <valign>fill</valign>
49 <stretch>true</stretch>
50 <pref-width>350</pref-width>
51 <pref-height>150</pref-height>
52 <padding>5</padding>
53 <slider>20</slider>
54 <live>true</live>
55 <wrap>true</wrap>
56 <editable>false</editable>
57 <top-line>-1</top-line>
58 <property>/sim/multiplay/chat-history</property>
59 </textbox>
60
61 <group>
62 <layout>hbox</layout>
63 <padding>4</padding>
64
65 <input>
66 <name>compose</name>
67 <stretch>true</stretch>
68 <halign>fill</halign>
69 <stretch>true</stretch>
70 <length>50</length>
71 <property>/sim/multiplay/chat-compose</property>
72 </input>
73
74 <button>
75 <legend>Send</legend>
76 <default>true</default>
77 <binding>
78 <command>dialog-apply</command>
79 <object-name>compose</object-name>
80 </binding>
81 <binding>
82 <command>nasal</command>
83 <script>
84 var lchat = getprop("/sim/multiplay/chat-compose");
85 if (lchat != "")
86 {
87 setprop("/sim/multiplay/chat", lchat);
88 setprop("/sim/multiplay/chat-compose", "");
89 gui.dialog_update("chat-full", "compose");
90 }
91 </script>
92 </binding>
93 </button>
94 </group>
95 </PropertyList>