Rev 5225 | Rev 5291 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5225 | Rev 5243 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | #include "rsgame.h" |
3 | #include "rsgame.h" |
Line -... | Line 4... | ||
- | 4 | ||
- | 5 | #include "rskos.h" |
|
4 | 6 | ||
5 | #include "rskos.h" |
7 | #include "strings.h" |
6 | 8 | ||
7 | PRSFUNC0 menu_actions[] = { |
9 | PRSFUNC0 menu_actions[] = { |
8 | /* a */ &menu_action_start, |
10 | /* a */ &menu_action_start, |
Line 9... | Line 11... | ||
9 | /* b */ &menu_action_exit, |
11 | /* b */ &menu_action_exit, |
Line -... | Line 12... | ||
- | 12 | /* c */ &menu_action_change_window_scale |
|
- | 13 | }; |
|
- | 14 | ||
- | 15 | char window_scale_str[] = "c< 2X >"; |
|
- | 16 | ||
- | 17 | /* |
|
- | 18 | First char: |
|
- | 19 | - letter a...z means action (a = 0th, b = 1st, c = 2nd, see menu_actions[] above) |
|
- | 20 | - number 0...9 means goto menu #0, #1, #2... see menu_titles[] below |
|
- | 21 | - space ' ' means no action, menu item is unselectable |
|
- | 22 | - empty string "" is now allowed and can cause segfault |
|
10 | /* c */ &menu_action_change_window_scale |
23 | String from second char is label of menu item |
11 | }; |
24 | |
12 | 25 | */ |
|
13 | char window_scale_str[] = "c< 2X >"; |
26 | |
14 | 27 | ||
15 | char* menu_main_titles[] = { |
28 | char* menu_main_titles[] = { |
16 | "a5TART", |
29 | "a"L_START, |
Line 17... | Line 30... | ||
17 | "15ETTING5", |
30 | "1"L_SETTINGS, |
18 | "2ABOUT", |
31 | "2"L_ABOUT, |
19 | "bQUIT", |
32 | "b"L_QUIT, |
20 | 0 |
33 | 0 |
21 | }; |
34 | }; |
22 | 35 | ||
23 | char* menu_settings_titles[] = { |
36 | char* menu_settings_titles[] = { |
Line 24... | Line 37... | ||
24 | " WINDOW SCALE:", |
37 | " "L_WINDOW_SCALE, |
25 | window_scale_str, |
38 | window_scale_str, |
26 | " ", |
39 | " ", |
27 | "0DONE", |
40 | "0"L_DONE, |
28 | 0 |
41 | 0 |
29 | }; |
42 | }; |
30 | 43 | ||
Line 31... | Line 44... | ||
31 | char* menu_about_titles[] = { |
44 | char* menu_about_titles[] = { |
32 | " DEVELOPED BY", |
45 | " "L_DEVELOPED_BY, |
Line 111... | Line 124... | ||
111 | game.ty = GAME_HEIGHT/2 - 10; |
124 | game.ty = GAME_HEIGHT/2 - 10; |
Line 112... | Line 125... | ||
112 | 125 | ||
Line 113... | Line 126... | ||
113 | }; |
126 | }; |
114 | 127 | ||
115 | void menu_action_exit() { |
128 | void menu_action_exit() { |
116 | #ifndef RS_LINUX |
129 | #ifdef RS_KOS |
117 | GameTerm(); |
130 | GameTerm(); |
118 | #endif |
131 | #endif |