1/* mac/moria.r: MacMoria resources, for Mac functionality
2
3   Copyright (c) 1989-94 Curtis McCauley, James E. Wilson
4
5   This software may be copied and distributed for educational, research, and
6   not for profit purposes provided that this copyright and statement are
7   included in all such copies. */
8
9#include "Types.r"
10
11include "ScrnMgr.rsrc";
12
13type 'MRIA' as 'STR ';
14
15type 'CNFG' (256 : 257) {
16	longint;
17};
18
19type 'TEXT' {
20	string;
21};
22
23resource 'MRIA' (0) {
24	"Moria 5.4 for the Macintosh"
25};
26
27resource 'BNDL' (128, purgeable) {
28	'MRIA',
29	0,
30	{ /* array TypeArray: 2 elements */
31		/* [1] */
32		'ICN#',
33		{ /* array IDArray: 3 elements */
34			/* [1] Application */
35			0, 128,
36			/* [2] Save file */
37			1, 129,
38			/* [3] Aux files */
39			2, 130
40		},
41		/* [2] */
42		'FREF',
43		{ /* array IDArray: 5 elements */
44			/* [1] Appilication */
45			0, 128,
46			/* [2] Save file */
47			1, 129,
48			/* [3] Info files */
49			2, 130,
50			/* [4] Score file */
51			3, 131,
52			/* [5] Config file */
53			4, 132
54		}
55	}
56};
57
58resource 'FREF' (128, "Application", purgeable) {
59	'APPL',
60	0,
61	""
62};
63
64resource 'FREF' (129, "Save Files", purgeable) {
65	'SAVE',
66	1,
67	""
68};
69
70resource 'FREF' (130, "Info Files", purgeable) {
71	'TEXT',
72	2,
73	""
74};
75
76resource 'FREF' (131, "Score File", purgeable) {
77	'SCOR',
78	2,
79	""
80};
81
82resource 'FREF' (132, "Config File", purgeable) {
83	'CNFG',
84	2,
85	""
86};
87
88resource 'ICON' (128, "Application", purgeable) {
89	$"00 01 00 00 00 02 80 00 00 04 40 00 00 08 20 00"
90	$"00 10 10 00 00 22 08 00 00 45 04 00 00 88 82 00"
91	$"01 05 15 00 02 02 A8 80 04 40 40 40 08 A8 80 20"
92	$"11 15 00 10 24 8A 00 28 40 51 3F 44 91 20 C0 8A"
93	$"40 00 80 51 24 41 30 22 10 01 C8 14 09 1E 7F 8F"
94	$"04 02 30 07 02 41 00 07 01 00 80 07 00 80 60 07"
95	$"00 40 1F E7 00 20 02 1F 00 10 04 07 00 08 08 00"
96	$"00 04 10 00 00 02 20 00 00 01 40 00 00 00 80"
97};
98
99resource 'ICON' (256, "Command Set", purgeable) {
100	$"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
101	$"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
102	$"00 00 00 00 7F FF FF FE 80 00 00 01 9A AA AA A9"
103	$"80 00 00 01 95 55 55 59 80 00 00 01 9A AA AA A9"
104	$"80 00 00 01 85 7F FF 51 80 00 00 01 80 00 00 01"
105	$"7F FF FF FE"
106};
107
108resource 'ICON' (257, "TEXT Editor", purgeable) {
109	$"0F FF FE 00 08 00 03 00 08 00 02 80 08 00 02 40"
110	$"08 00 02 20 08 00 02 10 08 00 03 F8 08 00 00 08"
111	$"08 00 00 08 08 07 C0 08 08 0F E0 08 08 18 30 08"
112	$"08 30 18 08 08 20 18 08 08 00 18 08 08 00 30 08"
113	$"08 00 60 08 08 00 C0 08 08 01 80 08 08 01 80 08"
114	$"08 01 80 08 08 01 80 08 08 00 00 08 08 01 80 08"
115	$"08 03 C0 08 08 01 80 08 08 00 00 08 08 00 00 08"
116	$"08 00 00 08 08 00 00 08 08 00 00 08 0F FF FF F8"
117};
118
119resource 'ICN#' (128, "Application", purgeable) {
120	{ /* array: 2 elements */
121		/* [1] */
122		$"00 01 00 00 00 02 80 00 00 04 40 00 00 08 20 00"
123		$"00 10 10 00 00 22 08 00 00 45 04 00 00 88 82 00"
124		$"01 05 15 00 02 02 A8 80 04 40 40 40 08 A8 80 20"
125		$"11 15 00 10 24 8A 00 28 40 51 3F 44 91 20 C0 8A"
126		$"40 00 80 51 24 41 30 22 10 01 C8 14 09 1E 7F 8F"
127		$"04 02 30 07 02 41 00 07 01 00 80 07 00 80 60 07"
128		$"00 40 1F E7 00 20 02 1F 00 10 04 07 00 08 08 00"
129		$"00 04 10 00 00 02 20 00 00 01 40 00 00 00 80",
130		/* [2] */
131		$"00 01 00 00 00 03 80 00 00 07 C0 00 00 0F E0 00"
132		$"00 1F F0 00 00 3F F8 00 00 7F FC 00 00 FF FE 00"
133		$"01 FF FF 00 03 FF FF 80 07 FF FF C0 0F FF FF E0"
134		$"1F FF FF F0 3F FF FF F8 7F FF FF FC FF FF FF FE"
135		$"7F FF FF FF 3F FF FF FE 1F FF FF FC 0F FF FF FF"
136		$"07 FF FF FF 03 FF FF FF 01 FF FF FF 00 FF FF FF"
137		$"00 7F FF FF 00 3F FE 1F 00 1F FC 07 00 0F F8 00"
138		$"00 07 F0 00 00 03 E0 00 00 01 C0 00 00 00 80"
139	}
140};
141
142resource 'ICN#' (129, "Save Files", purgeable) {
143	{ /* array: 2 elements */
144		/* [1] */
145		$"0F FF FE 00 08 00 03 00 08 00 02 80 08 00 02 40"
146		$"08 00 02 20 08 00 02 10 08 00 03 F8 08 00 00 08"
147		$"08 00 00 08 08 7F FE 08 08 FF FF 08 09 80 01 88"
148		$"09 9F F9 88 09 B0 09 88 09 B1 29 88 09 92 A9 88"
149		$"09 91 29 88 09 B0 49 88 09 B0 09 88 09 9F F9 88"
150		$"09 80 01 88 09 FF FF 88 09 FF FF 88 09 80 01 88"
151		$"08 00 00 08 09 12 64 88 09 B5 55 48 09 55 65 C8"
152		$"09 15 55 48 09 12 55 48 08 00 00 08 0F FF FF F8",
153		/* [2] */
154		$"0F FF FE 00 0F FF FF 00 0F FF FF 80 0F FF FF C0"
155		$"0F FF FF E0 0F FF FF F0 0F FF FF F8 0F FF FF F8"
156		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
157		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
158		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
159		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
160		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
161		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
162	}
163};
164
165resource 'ICN#' (130, "Aux Files", purgeable) {
166	{ /* array: 2 elements */
167		/* [1] */
168		$"0F FF FE 00 08 00 03 00 08 00 02 80 09 FB AE 40"
169		$"08 00 02 20 08 00 02 10 09 F7 7B F8 08 00 00 08"
170		$"08 00 00 08 09 BB ED C8 08 00 00 08 08 00 00 08"
171		$"09 F7 B7 C8 08 00 00 08 08 00 00 08 09 B5 FD C8"
172		$"08 00 00 08 08 00 00 08 09 77 B6 C8 08 00 00 08"
173		$"08 00 00 08 09 EB B7 48 08 00 00 08 08 00 00 08"
174		$"08 00 00 08 09 12 64 88 09 B5 55 48 09 55 65 C8"
175		$"09 15 55 48 09 12 55 48 08 00 00 08 0F FF FF F8",
176		/* [2] */
177		$"0F FF FE 00 0F FF FF 00 0F FF FF 80 0F FF FF C0"
178		$"0F FF FF E0 0F FF FF F0 0F FF FF F8 0F FF FF F8"
179		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
180		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
181		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
182		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
183		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
184		$"0F FF FF F8 0F FF FF F8 0F FF FF F8 0F FF FF F8"
185	}
186};
187
188resource 'DLOG' (128, "About", purgeable) {
189	{46, 26, 304, 274},
190	dBoxProc,
191	invisible,
192	noGoAway,
193	0x0,
194	128,
195	""
196};
197
198resource 'DITL' (128, "About", purgeable) {
199	{	/* array DITLarray: 4 elements */
200		/* [1] */
201		{224, 192, 247, 235},
202		Button {
203			enabled,
204			"OK"
205		},
206		/* [2] */
207		{232, 224, 241, 233},
208		UserItem {
209			disabled
210		},
211		/* [3] */
212		{16, 8, 248, 184},
213		StaticText {
214			disabled,
215			"Moria for the Macintosh\n"
216			"Version 5.4\n"
217			"Programmers:\n"
218			"Robert Alan Koeneke\n"
219			"Jimmey Wayne Todd\n\n"
220			"UNIX Port:\n"
221			"James E. Wilson\n\n"
222			"Macintosh Port:\n"
223			"Curtis W. McCauley"
224		},
225		/* [4] */
226		{16, 195, 48, 227},
227		Icon {
228			disabled,
229			128
230		}
231	}
232};
233
234resource 'STR ' (128, "About Title", purgeable) {
235	"About Moria\311"
236};
237
238resource 'CNFG' (256, "Command Set", purgeable) {
239	'-o\0x00\0x00'
240};
241
242resource 'DLOG' (256, "Command Set", purgeable) {
243	{42, 34, 218, 404},
244	dBoxProc,
245	invisible,
246	noGoAway,
247	0x0,
248	256,
249	""
250};
251
252resource 'DITL' (256, "Command Set", purgeable) {
253	{	/* array DITLarray: 9 elements */
254		/* [1] */
255		{24, 296, 48, 352},
256		Button {
257			enabled,
258			"OK"
259		},
260		/* [2] */
261		{64, 296, 88, 352},
262		Button {
263			enabled,
264			"Cancel"
265		},
266		/* [3] */
267		{40, 24, 56, 200},
268		RadioButton {
269			enabled,
270			"Rogue-Like Commands"
271		},
272		/* [4] */
273		{64, 24, 80, 200},
274		RadioButton {
275			enabled,
276			"Original Commands"
277		},
278		/* [5] */
279		{112, 72, 168, 352},
280		StaticText {
281			disabled,
282			"Choose the desired command set.  The change "
283			"will take effect when you start the next game."
284		},
285		/* [6] */
286		{16, 16, 96, 232},
287		UserItem {
288			disabled
289		},
290		/* [7] */
291		{8, 24, 24, 104},
292		StaticText {
293			enabled,
294			"Choose One"
295		},
296		/* [8] */
297		{32, 336, 40, 344},
298		UserItem {
299			disabled
300		},
301		/* [9] */
302		{112, 16, 144, 48},
303		Icon {
304			disabled,
305			256
306		}
307	}
308};
309
310resource 'CNFG' (257, "TEXT Editor", purgeable) {
311	'MACA'
312};
313
314resource 'DLOG' (257, "TEXT Editor", purgeable) {
315	{42, 34, 226, 426},
316	dBoxProc,
317	invisible,
318	noGoAway,
319	0x0,
320	257,
321	""
322};
323
324resource 'DITL' (257, "TEXT Editor", purgeable) {
325	{	/* array DITLarray: 11 elements */
326		/* [1] */
327		{24, 320, 48, 376},
328		Button {
329			enabled,
330			"OK"
331		},
332		/* [2] */
333		{64, 320, 88, 376},
334		Button {
335			enabled,
336			"Cancel"
337		},
338		/* [3] */
339		{40, 24, 56, 200},
340		RadioButton {
341			enabled,
342			"MacWrite"
343		},
344		/* [4] */
345		{64, 24, 80, 176},
346		RadioButton {
347			enabled,
348			"Microsoft Word"
349		},
350		/* [5] */
351		{88, 24, 104, 176},
352		RadioButton {
353			enabled,
354			"Other:  File Creator"
355		},
356		/* [6] */
357		{88, 176, 104, 240},
358		EditText {
359			disabled,
360			""
361		},
362		/* [7] */
363		{136, 72, 176, 376},
364		StaticText {
365			disabled,
366			"Choose what kind of documents you want Moria "
367			"to create when it prints to a file."
368		},
369		/* [8] */
370		{16, 8, 120, 264},
371		UserItem {
372			disabled
373		},
374		/* [9] */
375		{8, 24, 24, 104},
376		StaticText {
377			enabled,
378			"Choose One"
379		},
380		/* [10] */
381		{32, 360, 40, 368},
382		UserItem {
383			disabled
384		},
385		/* [11] */
386		{136, 16, 168, 48},
387		Icon {
388			disabled,
389			257
390		}
391	}
392};
393
394resource 'DLOG' (258, "Save, Quit, or Cancel", purgeable) {
395	{40, 40, 168, 318},
396	dBoxProc,
397	invisible,
398	noGoAway,
399	0x0,
400	258,
401	""
402};
403
404resource 'DITL' (258, "Save, Quit, or Cancel", purgeable) {
405	{	/* array DITLarray: 6 elements */
406		/* [1] */
407		{64, 16, 84, 76},
408		Button {
409			enabled,
410			"Save"
411		},
412		/* [2] */
413		{96, 16, 116, 76},
414		Button {
415			enabled,
416			"Quit"
417		},
418		/* [3] */
419		{96, 200, 116, 260},
420		Button {
421			enabled,
422			"Cancel"
423		},
424		/* [4] */
425		{64, 200, 80, 216},
426		UserItem {
427			disabled
428		},
429		/* [5] */
430		{8, 56, 48, 264},
431		StaticText {
432			disabled,
433			"What do you want to do with the game in progress?"
434		},
435		/* [6] */
436		{8, 16, 40, 48},
437		Icon {
438			disabled,
439			0
440		}
441	}
442};
443
444resource 'MENU' (129, "File") {
445	129,
446	textMenuProc,
447	0x7FFFFFC3,
448	enabled,
449	"File",
450	{	/* array: 7 elements */
451		/* [1] */
452		"New", noIcon, "N", "", plain,
453		/* [2] */
454		"Open\311", noIcon, "O", "", plain,
455		/* [3] */
456		"-", noIcon, "", "", plain,
457		/* [4] */
458		"Save", noIcon, "S", "", plain,
459		/* [5] */
460		"Save As\311", noIcon, "", "", plain,
461		/* [6] */
462		"-", noIcon, "", "", plain,
463		/* [7] */
464		"Quit", noIcon, "Q", "", plain
465	}
466};
467
468resource 'MENU' (229, "File (No Keys)") {
469	229,
470	textMenuProc,
471	0x7FFFFFC3,
472	enabled,
473	"File",
474	{	/* array: 7 elements */
475		/* [1] */
476		"New", noIcon, "", "", plain,
477		/* [2] */
478		"Open\311", noIcon, "", "", plain,
479		/* [3] */
480		"-", noIcon, "", "", plain,
481		/* [4] */
482		"Save", noIcon, "", "", plain,
483		/* [5] */
484		"Save As\311", noIcon, "", "", plain,
485		/* [6] */
486		"-", noIcon, "", "", plain,
487		/* [7] */
488		"Quit", noIcon, "", "", plain
489	}
490};
491
492resource 'MENU' (133, "Moria") {
493	133,
494	textMenuProc,
495	0x7FFFFF17,
496	enabled,
497	"Moria",
498	{	/* array: 5 elements */
499		/* [1] */
500		"Help\311", noIcon, "H", "", plain,
501		/* [2] */
502		"Command Set\311", noIcon, "", "", plain,
503		/* [3] */
504		"TEXT Editor\311", noIcon, "", "", plain,
505		/* [4] */
506		"-", noIcon, "", "", plain,
507		/* [5] */
508		"High Scores\311", noIcon, "", "", plain
509	}
510};
511
512resource 'MENU' (233, "Moria (No Keys)") {
513	233,
514	textMenuProc,
515	0x7FFFFF17,
516	enabled,
517	"Moria",
518	{	/* array: 5 elements */
519		/* [1] */
520		"Help\311", noIcon, "", "", plain,
521		/* [2] */
522		"Command Set\311", noIcon, "", "", plain,
523		/* [3] */
524		"TEXT Editor\311", noIcon, "", "", plain,
525		/* [4] */
526		"-", noIcon, "", "", plain,
527		/* [5] */
528		"High Scores\311", noIcon, "", "", plain
529	}
530};
531
532resource 'DLOG' (512, "Mac Help", purgeable) {
533	{40, 34, 310, 496},
534	dBoxProc,
535	invisible,
536	noGoAway,
537	0x0,
538	512,
539	""
540};
541
542resource 'DITL' (512, "Mac Help", purgeable) {
543	{	/* array DITLarray: 6 elements */
544		/* [1] */
545		{16, 392, 36, 452},
546		Button {
547			enabled,
548			"Ok"
549		},
550		/* [2] */
551		{24, 432, 32, 440},
552		UserItem {
553			disabled
554		},
555		/* [3] */
556		{48, 8, 264, 440},
557		UserItem {
558			disabled
559		},
560		/* [4] */
561		{48, 439, 264, 455},
562		Control {
563			enabled,
564			512
565		},
566		/* [5] */
567		{8, 52, 40, 380},
568		StaticText {
569			disabled,
570			"Moria for the Macintosh Version 5.4"
571		},
572		/* [6] */
573		{8, 8, 40, 40},
574		Icon {
575			disabled,
576			128
577		}
578	}
579};
580
581resource 'CNTL' (512, "Mac Help Scroll Bar", purgeable) {
582	{0, 0, 216, 16},
583	0,
584	visible,
585	0,
586	0,
587	scrollBarProc,
588	0,
589	""
590};
591
592resource 'TEXT' (512, "Mac Help", purgeable) {
593	"This is an beta version of Mac Moria, implementation 2.0b1, which is "
594	"based on the Umoria 5.4 sources.  Please send comments and bug repor"
595	"ts to wilson@toad.com (Jim Wilson).\n\n"
596	"Users of previous versions o"
597	"f Mac Moria should discard the old program.  Otherwise, the Finder mig"
598	"ht get confused when you double-click on a saved game to start Moria.\n"
599	"\n*****************************\n\nMoria is a dungeon exploration game.  "
600	"The name comes from \322The Lord of the Rings\323 trilogy written by J. R"
601	". R. Tolkien.  Moria is pronounced with the accent on the first syllable,"
602	" e.g. MORE-ee-ah.  For details on the game itself, please read the Mor"
603	"ia Docs file that is distributed along with Moria.\n\nMoria was original"
604	"ly written for VAX/VMS systems.  As such,  it is heavily dependent on "
605	"the keyboard for game play.  The mouse is not used at all, except for "
606	"standard things like menus and dialogs.  To get a list of the availabl"
607	"e keyboard commands, hit the \324?\325 key while playing the game.\n\nSome"
608	" of the commands are specified as being control characters, i.e.  saving t"
609	"he game is ^X.  To type these characters hold down the control key and"
610	" then press the appropriate character key.  If you do not have a contr"
611	"ol key, use the command key (apple/cloverleaf key) instead of the cont"
612	"rol key.  If you prefer, you may enter these commands using two keystr"
613	"okes, by first typing the '^' key followed by the letter.\n\nThe game al"
614	"so uses the escape key (ESC) quite a bit.  If you do not have an escap"
615	"e key on your keyboard, you can use the ` key or the Clear key on the "
616	"numeric keypad instead.  An escape can also by typed as ^[, i.e. contr"
617	"ol (or command) left bracket.\n\nFile Menu\n\nThe game fully supports the "
618	"standard Macintosh file menu.  Use New to start playing a new game,  o"
619	"r Open to restart a previous game.   Save As will always ask you for t"
620	"he name of the file to save your character in.  Save will usually save"
621	" the game in a file with the same name as the name of the current char"
622	"acter.  If you are playing a new game, or have changed the name of you"
623	"r character, Save will instead ask you for the name of the save file. "
624	" The Quit option, of course, is used to exit the game.\n\nA game can onl"
625	"y be saved at the point where it is your turn to move.  At all other t"
626	"imes the Save command will not be available.\n\nThe File Menu is disable"
627	"d while saving and restoring games.  There is no cause for alarm if you "
628	"see this occur.  After the operation is completed, there will be a prompt"
629	" that says \322press any key to continue\323.  After you press a key, t"
630	"he File Menu will be reenabled.\n\nIf your character dies, or you decide"
631	" to stop running him, you will be prompted via a standard file dialog "
632	"for the name of a file in which to save his memories.  Pressing cancel"
633	" will avoid saving the memories.\n\nEdit Menu\n\nThe Edit Menu items are n"
634	"ot used by the game.  The Edit menu is disabled unless there is a Desk"
635	" Accessory open.\n\nScreen/FontSize Menu\n\nIf you have a color system, th"
636	"e Color item allows you to choose the background and foreground colors"
637	" of the game window.  The game must use a constant width font, so only"
638	" the Monaco font is supported.  You can, however, specify which point "
639	"size that you want to use.  The menu will list every point size availa"
640	"ble on your Macintosh for the Monaco font.\n\nAdvanced users can choose "
641	"a different font by using ResEdit or a similar program to edit the STR"
642	" \"Font Name\" resource.\n\nMoria Menu\n\nHelp brings up this dialog.\n\n"
643	"Command Set allows you to choose between the original Moria command set "
644	"and an optional command set similar to the UNIX game Rogue.  The main dif"
645	"ference between the two is that the original command set uses the nume"
646	"ric keypad for movement, whereas the Rogue-like command set uses the \324"
647	"hjkl\325 keys for, respectively, left down up and right.  The program wil"
648	"l remember your setting and use it as a default the next time you star"
649	"t a new character.  The command set can be chosen for the current char"
650	"acter by using the set options ('=') command.\n\nNote that the numeric k"
651	"eypad, if your system has one, is always available for indicating dire"
652	"ctions, regardless of the command set chosen.  The arrow keys will wor"
653	"k as well.\n\nText Editor allows you to choose the type of TEXT file cre"
654	"ated by Moria, that is, it allows you to specify which application wil"
655	"l be used by the Finder when you open a TEXT file created by Moria.  Y"
656	"ou can choose MacWrite or Microsoft Word files.  You can also specify "
657	"the signature of the desired application if you prefer something else."
658	"\n\nHigh Scores displays all of the scores stored in the scorefile.  You"
659	" can clear these scores by just deleting the High Scores file.  This f"
660	"eature is not implemented.\n\nConfiguration Info\n\nMoria is fully Multifi"
661	"nder compatible/aware.  It requires 450 K of memory under Multifinder."
662	"  The game will run on any Macintosh with 1 Megabyte or more of memory"
663	".\n\nMoria comes with a documentation file, called Moria Docs.  The Mori"
664	"a Docs file is an explanation of the game system.  Please remember to "
665	"always distribute this file with the game, since it contains much impo"
666	"rtant information.\n\nMoria will create two files when it is run.  The H"
667	"igh Scores file keeps a list of the scores of all of the previous game"
668	"s.  If this file is not present, a new one will be created in the fold"
669	"er which contains the game.  This file can be kept either in the folde"
670	"r that contains the application, or in the System Folder.\n\nMoria also "
671	"creates a file called Moria Config in the System Folder.  This file co"
672	"ntains all of the configuration info for Moria, such as the size and l"
673	"ocation of windows, the font size, the command set, etc.  This file mu"
674	"st remain in the Sytem Folder.\n\nThe text displayed when Moria starts u"
675	"p is stored in the data fork of this program.  You can edit it with mo"
676	"st text editors by first changing the file type of the program from 'A"
677	"PPL' to 'TEXT' with ResEdit.  Remember to change the file type back ag"
678	"ain when you are through.  Be careful not to disturb the lines which b"
679	"egin with a '#'.\n\0x00"
680};
681
682type 'DFPR' {
683	unsigned hex integer = $600A;					/* branch around header */
684	unsigned hex integer;							/* flags */
685	unsigned literal longint;						/* resource type */
686	integer;										/* resource id */
687	integer;										/* version */
688	unsigned hex integer = $4EF9;					/* jump instruction */
689	unsigned hex longint = $0;						/* target address for jump */
690};
691
692type 'LDEF' as 'DFPR';
693
694resource 'LDEF' (514, "High Scores", purgeable) {
695	$0, 'LDEF', 514, 0
696};
697
698resource 'DITL' (514, "High Scores", purgeable) {
699	{	/* array DITLarray: 5 elements */
700		/* [1] */
701		{15, 422, 35, 482},
702		Button {
703			enabled,
704			"Ok"
705		},
706		/* [2] */
707		{24, 464, 32, 472},
708		UserItem {
709			disabled
710		},
711		/* [3] */
712		{48, 2, 281, 490},
713		UserItem {
714			disabled
715		},
716		/* [4] */
717		{8, 56, 40, 336},
718		StaticText {
719			disabled,
720			"Moria High Scores\n"
721			"Positions ^0 to ^1"
722		},
723		/* [5] */
724		{8, 8, 40, 40},
725		Icon {
726			disabled,
727			128
728		}
729	}
730};
731
732resource 'DLOG' (514, "High Scores", purgeable) {
733	{40, 34, 327, 526},
734	dBoxProc,
735	invisible,
736	noGoAway,
737	0x0,
738	514,
739	""
740};
741
742resource 'DITL' (1024, "General Error", purgeable) {
743	{	/* array DITLarray: 2 elements */
744		/* [1] */
745		{80, 304, 100, 364},
746		Button {
747			enabled,
748			"Ok"
749		},
750		/* [2] */
751		{7, 68, 71, 364},
752		StaticText {
753			disabled,
754			"^0"
755		}
756	}
757};
758
759resource 'ALRT' (1024, "General Error", purgeable) {
760	{42, 42, 148, 416},
761	1024,
762	{	/* array: 4 elements */
763		/* [1] */
764		OK, visible, sound1,
765		/* [2] */
766		OK, visible, sound1,
767		/* [3] */
768		OK, visible, sound1,
769		/* [4] */
770		OK, visible, sound1
771	}
772};
773
774resource 'SIZE' (-1) {
775	dontSaveScreen,
776	acceptSuspendResumeEvents,
777	enableOptionSwitch,
778	canBackground,
779	multiFinderAware,
780	backgroundAndForeground,
781	dontGetFrontClicks,
782	ignoreChildDiedEvents,
783	not32BitCompatible,
784	reserved,
785	reserved,
786	reserved,
787	reserved,
788	reserved,
789	reserved,
790	reserved,
791	375 * 1024,
792	375 * 1024
793};
794