aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/builder/scumm/bl_dialogs.c
blob: 7d6d2a0d5e048d3c597a546b6539e00ac1b23d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#include <PalmOS.h>
#include "b_globals.h"

typedef struct {
	Int32 num;
	char string[80];
} ResString;

static void addDialogs_string_map_table_v7() {
	ResString string_map_table_v7[] = {
		{96, "game name and version"}, //that's how it's supposed to be
		{77, "Select a game to LOAD"},
		{76, "Name your SAVE game"},
		{70, "save"}, //boot8
		{71, "load"}, //boot9
		{72, "play"}, //boot10
		{73, "cancel"}, //boot11
		{74, "quit"}, //boot12
		{75, "ok"}, //boot13
		{85, "game paused"}, // boot3					

		/* this is the almost complete string map for v7
		{63, "how may I serve you?"},
		{64, "the dig v1.0"}, //(game name/version)
		{67, "text display only"},
		{68, "c:\\dig"}, //boot007 (save path ?)
		{69, "the dig"}, //boot21 (game name)
		{70, "save"}, //boot8
		{71, "load"}, //boot9
		{72, "play"}, //boot10
		{73, "cancel"}, //boot11
		{74, "quit"}, //boot12
		{75, "ok"}, //boot13
		{76, "name your save game"}, //boot19
		{77, "select a game to load"}, //boot20
		{78, "you must enter a name"},//boot14
		{79, "saving '%s'"}, //boot17
		{80, "loading '%s'"}, //boot18
		{81, "the game was NOT saved"}, //boot15
		{82, "the game was NOT loaded"}, //boot16
		{83, "how may I serve you?"},
		{84, "how may I serve you?"},
		{85, "game paused"}, // boot3
		{86, "Are you sure you want to restart"},
		{87, "Are you sure you want to quit?"}, //boot05
		{89, "how may I serve you?"},
		{90, "music"}, //boot22
		{91, "voice"}, //boot23
		{92, "sfx"}, //boot24
		{93, "disabled"}, //boot25
		{94, "text speed"}, //boot26
		{95, "text display"}, //boot27
		{96, "the dig v1.0"},*/
		
	};
	writeRecord(string_map_table_v7, sizeof(string_map_table_v7), GBVARS_STRINGMAPTABLEV7_INDEX , GBVARS_SCUMM);
}

static void addDialogs_string_map_table_v6() {
	ResString string_map_table_v6[] = {
		{117, "How may I serve you?"}, 
		{109, "Select a game to LOAD"}, 
		{108, "Name your SAVE game"}, 
		{96, "Save"}, 
		{97, "Load"}, 
		{98, "Play"}, 
		{99, "Cancel"}, 
		{100, "Quit"}, 
		{101, "OK"}, 
		{93, "Game paused"}, 
	};
	writeRecord(string_map_table_v6, sizeof(string_map_table_v6), GBVARS_STRINGMAPTABLEV6_INDEX , GBVARS_SCUMM);
}

static void addDialogs_string_map_table_v5() {
	ResString string_map_table_v5[] = {
		{28, "How may I serve you?"}, 
		{20, "Select a game to LOAD"},
		{19, "Name your SAVE game"},
		{7, "Save"},
		{8, "Load"},
		{9, "Play"},
		{10, "Cancel"},
		{11, "Quit"},
		{12, "OK"},
		{4, "Game paused"}
	};
	writeRecord(string_map_table_v5, sizeof(string_map_table_v5), GBVARS_STRINGMAPTABLEV5_INDEX , GBVARS_SCUMM);
}
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////

void addDialogs() {
	addDialogs_string_map_table_v7();
	addDialogs_string_map_table_v6();
	addDialogs_string_map_table_v5();

}