More work. We can have what we had with the phil's gui when Justin does
[krufty_fps.git] / pack_out / run.xml
blob73b2ec3dcb475a9b62d6d8500838771fd0575e7e
1 <?xml version="1.0" encoding="UTF-8"?>
2 <game>
4   <!--
5       The way this will work, is that various objects are defined in the
6       <def> section. Each of those can be instantiated multiple times, unless
7       defined to be single. There may be game objects or menu objects in there.
8   -->
10   <def>
12     <object>
13       <name>camera</name>
14       <script></script>
16       <tangible>0</tangible>
17       <type>camera</type>
19       <!--
20           
21           This, at the moment, can be camera, light, static {mesh}
22           particle {system}, skybox, skydome, terrain, text, empty.
23           
24           Although not all options are implemented yet. And these
25           only apply for the intangibles. All the tangibles can be
26           are animated mesh.
27           
28       -->
30     </object>
31     
32     <menu>
33       <name>credits</name>
34       
35       <elements>
36         <image name="background_image"
37                x="0"
38                y="0"
39                width="100"
40                height="100"
41                target="v "
42                parent="NONE"
43                text="credits.png">d
44         </image>
45         <button name="go_back"
46                 x="10"
47                 y="20"
48                 width="20"
49                 height="10"
50                 parent="background_image"
51                 target="the_engine.setMenu('main_menu')"
52                 text="Back to main menu...">
53         </button>
54         <label name="title"
55                x="35"
56                y="10"
57                width="20"
58                height="5"
59                target=""
60                parent="background_image"
61                text="Credits...">
62         </label>
63         <label name="joe#1"
64                x="35"
65                y="15"
66                width="20"
67                height="5"
68                target=""
69                parent="background_image"
70                text="Project Lead: Joe Lopatta">
71         </label>
72         <label name="modeling"
73                x="35"
74                y="20"
75                width="25"
76                height="7"
77                target=""
78                parent="background_image"
79                text="Modeling Lead: Joe Lopatta Modeling: Calvin Strumsky">
80         </label>
81         <label name="imaging"
82                x="35"
83                y="27"
84                width="25"
85                height="5"
86                target=""
87                parent="background_image"
88                text="Imaging Lead: Joe Lopatta Imaging: Calvin Strumsky">
89         </label>
91         <label name="programming"
92                x="35"
93                y="35"
94                width="30"
95                height="7"
96                target=""
97                parent="background_image"
98                text="Programming Lead: Brian Caine Programming: Brian Caine">
99         </label>
100         <label name="prince"
101                x="35"
102                y="42"
103                width="40"
104                height="5"
105                target=""
106                parent="background_image"
107                text="Prince of Programming, his majesty: Brian Caine">
108         </label>
109         <label name="origins"
110                x="35"
111                y="50"
112                width="40"
113                height="5"
114                target=""
115                parent="background_image"
116                text="Original Universe Creators: Matt Dell / Joe Lopatta">
117         </label>
118         <label name="webhost"
119                x="35"
120                y="55"
121                width="20"
122                height="5"
123                target=""
124                parent="background_image"
125                text="Web Host: Brandon Brizzi">
126         </label>
127         <label name="design"
128                x="35"
129                y="60"
130                width="40"
131                height="10"
132                target=""
133                parent="background_image"
134                text="Design Consultants: Brandon Brizzi, Michael Bender,">
135         </label>
136         <label name="designcont"
137                x="35"
138                y="63"
139                width="40"
140                height="10"
141                target=""
142                parent="background_image"
143                text="Brandon Herlock, Jarred Fritz">
144         </label>
145         <label name="gamer_tag"
146                x="35"
147                y="67"
148                width="40"
149                height="5"
150                target=""
151                parent="background_image"
152                text="Gamer Tag - Joe Lopatta - XSOULSTEALERX">
153         </label>
154         <label name="pseudonym"
155                x="35"
156                y="72"
157                width="40"
158                height="5"
159                target=""
160                parent="background_image"
161                text="Internet Pseudonym - Brian Caine - canine">
162         </label>
163         <label name="most_important"
164                x="5"
165                y="90"
166                width="40"
167                height="7"
168                target=""
169                parent="background_image"
170                text="Thanks to the teacher whose classroom we used to make the game - Thank you Mrs. Wood">
171         </label>
173       </elements>
174     </menu>
176     <object>
177       <name>initial_script</name>
178       <script>main.sq</script>
180       <tangible>0</tangible>
181       <type>empty</type>
182     </object>
183     
184     <object>
186       <name>person</name>
187       <script></script>
189       <tangible>1</tangible>
190       <model>guy.3ds</model>
192       <!--
193       <textures>
194         <type>0</type>
195         <texture idx="1"></texture>
196       </textures>
198       The type tag is acquired from the Irrlicht documentation.
199       In this case, 0 means EMT_SOLID
200       -->
202     </object>
204     <menu>
205       <name>main_menu</name>
206       
207       <elements>
208         <image name="background_image"
209                x="0"
210                y="0"
211                width="100"
212                height="100"
213                target="v "
214                parent="NONE"
215                text="Titlescreen_texturized.png">
217         </image>
219         <button name="lan_match"
220                 x="5"
221                 y="10"
222                 width="25"
223                 height="10"
224                 target="self.engine.setMenu('lan_menu')"
225                 parent="background_image"
226                 text="LAN Match">
227         </button>
228 <!--
229         <button name="test"
230                 x="75"
231                 y="10"
232                 width="20"
233                 height="10"
234                 target="exec('the_engine.addFile(&quot;a_map.xml&quot;, &quot;run.xml&quot;)\nthe_engine.setMenu(&quot;game&quot;)')"
235                 text="Test"
236                 parent="">d
237         </button>-->
239         <button name="internet_match"
240                 x="5"
241                 y="25"
242                 width="25"
243                 height="10"
244                 target="print 'Internet Match: Not implemented yet.'"
245                 parent="background_image"
246                 text="Internet Match">
247         </button>
248         <button name="options"
249                 x="5"
250                 y="40"
251                 width="25"
252                 height="10"
253                 target="print 'Options: Not implemented yet.'"
254                 parent="background_image"
255                 text="Options">
256         </button>
257         <button name="credits"
258                 x="5"
259                 y="55"
260                 width="25"
261                 height="10"
262                 parent="background_image"
263                 target="self.engine.setMenu('credits')"
264                 text="Credits">
265         </button>
266         <button name="exit"
267                 x="5"
268                 y="70"
269                 width="25"
270                 height="10"
271                 parent="background_image"
272                 target="self.engine.killGame()"
273                 text="Exit">
274         </button>
275       </elements>
277     </menu>
279     <menu>
281       <name>not_implemented</name>
283       <elements>
285         <window name="message_box"
286                 x="0"
287                 y="0"
288                 width="25"
289                 height="25"
290                 target=""
291                 parent="NONE"
292                 text="Oops!">d
293         </window>
295         <label name="information"
296                x="5"
297                y="4"
298                width="15"
299                height="15"
300                target=""
301                parent="message_box"
302                text="Whatever you clicked on isn't implemented yet. Sorry">d
303         </label>
305         <button name="return_button"
306                 x="5"
307                 y="17"
308                 width="15"
309                 height="5"
310                 target="::hideAll();::addMenu(::return_string);"
311                 parent="message_box"
312                 text="Ok then.">d
313         </button>
315         <button name="secret"
316                 x="1"
317                 y="1"
318                 width="1"
319                 height="1"
320                 target="::hideMenu(&quot;not_implemented&quot;);
321                         ::addMenu(&quot;squirrel&quot;);"
322                 parent="message_box"
323                 text="">
324           d
325         </button>
327       </elements>
329     </menu>
331     <menu>
333       <name>lan_menu</name>
335       <elements>
337         <image name="background_image"
338                x="0"
339                y="0"
340                width="100"
341                height="100"
342                target="v "
343                parent="NONE"
344                text="server.png">d
345         </image>
347         <label name="title"
348                x="10"
349                y="5"
350                width="20"
351                height="5"
352                parent="background_image"
353                target=""
354                text="LAN Server List...">d
355         </label>
356         <button name="refresh_button"
357                 x="40"
358                 y="85"
359                 width="20"
360                 height="10"
361                 parent="background_image"
362                 target=""
363                 text="Refresh Server List">d
364         </button>
365         <button name="back_button"
366                 x="10"
367                 y="85"
368                 width="20"
369                 height="10"
370                 parent="background_image"
371                 target="the_engine.setMenu('main_menu')"
372                 text="Return to Main Menu">d
373         </button>
374         <button name="join_button"
375                 x="70"
376                 y="85"
377                 width="20"
378                 height="10"
379                 parent="background_image"
380                 target=""
381                 text="Join Server">d
382         </button>
383         <listbox name="server_list"
384                 x="10"
385                 y="10"
386                 width="28"
387                 height="70"
388                 parent="background_image"
389                 target=""
390                 text="">d
391         </listbox>
392         <label name="info_label"
393                 x="40"
394                 y="10"
395                 width="20"
396                 height="10"
397                 parent="background_image"
398                 target=""
399                 text="Server Information...">d
400         </label>
401         <listbox name="list_server"
402                  x="40"
403                  y="20"
404                  width="50"
405                  height="60"
406                  parent="background_image"
407                  target=""
408                  text="Server Information...">d
409         </listbox>
410       </elements>
411     </menu>
413     <object>
414       <name>net_script</name>
415       <script>net_script.py</script>
416       <tangible>0</tangible>
417       <model></model>
418     </object>
420     <menu>
421       <name>searching</name>
423       <elements>
424         <window name="searching_window"
425                 x="30"
426                 y="40"
427                 width="40"
428                 height="20"
429                 parent="NONE"
430                 target=""
431                 text="Searching...">d
432         </window>
433         <label name="info_label"
434                x="5"
435                y="5"
436                width="30"
437                height="10"
438                parent="searching_window"
439                target=""
440                text="Searching for servers...">d
441         </label>
442       </elements>
443     </menu>
445     <menu>
446       <name>net_menu</name>
448       <elements>
449         <label name="title"
450                x="5"
451                y="5"
452                width="30"
453                height="10"
454                parent="background_image"
455                target=""
456                text="Lobby">d
457         </label>
458         <listbox name="player_list"
459                  x="5"
460                  y="20"
461                  width="30"
462                  height="60"
463                  parent="background_image"
464                  target=""
465                  text="">d
466         </listbox>
467         <listbox name="chat_list"
468                  x="40"
469                  y="20"
470                  width="50"
471                  height="45"
472                  parent="background_image"
473                  target=""
474                  text="">d
475         </listbox>
476         <editbox name="chat"
477                  x="40"
478                  y="70"
479                  width="49"
480                  height="5"
481                  parent="background_image"
482                  target=""
483                  text="">
484         </editbox>
485         <button name="back_button"
486                 x="5"
487                 y="85"
488                 width="20"
489                 height="10"
490                 parent="background_image"
491                 target=""
492                 text="Leave Server">d
493         </button>
494         <button name="ready_button"
495                 x="35"
496                 y="85"
497                 width="20"
498                 height="10"
499                 parent="background_image"
500                 target=""
501                 text="Ready">d
502         </button>
503         <button name="start_button"
504                 x="65"
505                 y="85"
506                 width="20"
507                 height="10"
508                 parent="background_image"
509                 target=""
510                 text="Start">d
511         </button>
513         <image name="background_image"
514                x="0"
515                y="0"
516                width="100"
517                height="100"
518                target="v "
519                parent="NONE"
520                text="server.png">d
521         </image>
522       </elements>
524     </menu>
526     <menu>
528       <name>game</name>
530       <elements>
531         <button name="return_button"
532                 x="0"
533                 y="0"
534                 width="20"
535                 height="10"
536                 parent="background_image"
537                 target="exec('the_engine.app.remove(the_engine.main_container)\nthe_engine.removeFile(&quot;a_map.xml&quot;)')"
538                 text="Start">d
539         </button>
541       </elements>
542     </menu>
544   </def>
546   <instance>
547     <object name="net_script">net_script</object>
548     <!--
550         This is an example of a person instantiated, but we don't want that
551         for the run.xml file
553     <object name="person" position="1 0 1" torque="0 0 0" > </object>
554     -->
556     <menu>main_menu</menu>
558   </instance>
560 </game>