[go: up one dir, main page]

Menu

[r420]: / trunk / etw / include / menu.h  Maximize  Restore  History

Download this file

194 lines (157 with data), 3.7 kB

  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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* Li gestisco tramite makefile!
*
* #define DEBUG_DISABLED
*/
#ifndef ETW_MENU_H
#define ETW_MENU_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mytypes.h"
#include "lists.h"
#include "os_defs.h"
#include "version.h"
#include "gfx.h"
// #include "anim.h"
#include "tactics.h"
#include "sound.h"
#include "freq.h"
#include "teamsetup.h"
#include "mymacros.h"
#include "network.h"
#define RangeRand(v) (rand()%v)
#define BIG_FONT "newgfx/eat2.font"
#define TITLE_FONT "newgfx/eatinfo.font"
#define SMALL_FONT "newgfx/eat.font"
#define FIRST_ARCADE 3
#define NUMERO_CAMPI 6
#define NUMERO_LOOPS 15
#define ARCADE_TEAMS 10
#define NUMERO_SUONI_MENU ARCADE_TEAMS+5+FIRST_ARCADE
#define NUMERO_INTRO 6
#define FAKE_TEAM 127
#define NO_BUTTON -1
#define ID_QUIT_GAME -127
#define MAX_PLAYERS 2
/* AC: some day we need to reorder this figures. */
#define MENU_MAIN_MENU 0
#define MENU_PREFS 1
#define MENU_HIGHLIGHT 2
#define MENU_TEAMS 3
#define MENU_GAME_START 4
#define MENU_ARCADE 5
#define MENU_SIMULATION 6
#define MENU_CAREER 7
#define MENU_TRAINING 8
#define MENU_TEAM_SELECTION 9
#define MENU_SCORES 10
#define MENU_TEAM_SETTINGS 11
#define MENU_GAME_PREFS 12
#define MENU_VIDEO_PREFS 13
#define MENU_AUDIO_PREFS 14
#define MENU_WORLD_CUP 15
#define MENU_MATCHES 16
#define MENU_LEAGUE 17
#define MENU_SELECTION_TYPE 18
#define MENU_ARCADE_SELECTION 19
#define MENU_CHALLENGE 20
#define MENU_WORLD_CUP_END 21
#define MENU_MATCH_RESULT 22
#define MENU_VIEW_SCORES 23
#define MENU_HIGH_SELECTION 24
#define MENU_SYSTEM_PREFS 25
#define MENU_KEYCFG 26
#define MENU_JOYCFG 27
#define MENU_PAUSE 28
#define MENU_MOBILE_PREFS 29
#define MENU_SUBSTITUTIONS 30
#define MENUS MENU_SUBSTITUTIONS+1
#define NUMERO_SFONDI 12
// Defines per teamselection, the mobile version support max 32 teams for set
#ifdef MOBILE_VERSION
#define TS_RIGHE 8
#else
#define TS_RIGHE 16
#endif
#define TS_COLONNE 4
struct EasyStruct
{
const char *es_Title, *es_TextFormat, *es_GadgetFormat;
};
struct Button
{
int16_t X1, Y1, X2, Y2, ID;
uint8_t Color, Highlight;
char *Text;
};
struct Match
{
uint8_t t1, t2;
};
struct GfxMenu
{
char *Title;
struct Button *Button;
struct Button *Pannello;
int16_t NumeroBottoni, NumeroPannelli, ID;
int16_t X, Y;
int8_t Immagine;
uint8_t Color, Highlight;
APTR SpecialFunction;
};
// Palette pens of the MENUs
#ifndef SOUND_C
#define P_VERDE0 0
#define P_BIANCO 1
#define P_GRIGIO4 2
#define P_VERDE1 3
#define P_NERO 4
#define P_GRIGIO3 5
#define P_BLU2 6
#define P_ROSSO1 7
#define P_BLU1 8
#define P_ROSSO0 9
#define P_GRIGIO2 10
#define P_ARANCIO 11
#define P_GIALLO 12
#define P_GRIGIO0 13
#define P_GRIGIO1 14
#define P_BLU0 15
#endif
#define COLOR_UNSELECTED P_GRIGIO1
#define COLOR_TEAM_A P_BLU1
#define COLOR_TEAM_B P_ROSSO1
#define COLOR_COMPUTER P_GRIGIO0
#define COLOR_TATTICA_NON_SELEZIONATA P_GRIGIO1
#define COLOR_TATTICA_SELEZIONATA P_BLU2
// Tipi di controlli
#include "control_types.h"
// Per detail_level (bits)
#define USA_RADAR 1
#define USA_ARBITRO 2
#define USA_POLIZIOTTI 4
#define USA_FOTOGRAFI 8
#define USA_NOMI 16
#define USA_RISULTATO 32
#define USA_GUARDALINEE 64
/*
#ifdef __SASC
#define min(a,b) __builtin_min(a,b)
#define max(a,b) __builtin_max(a,b)
#else
#ifndef min
#define min(a,b) ((a)>(b) ? (b) : (a))
#endif
#ifndef MIN
#define MIN(a,b) min(a,b)
#endif
#ifndef max
#define max(a,b) ((a)<(b) ? (b) : (a) )
#endif
#ifndef MAX
#define MAX(a,b) max(a,b)
#endif
#endif
*/
#include "menu_externs.h"
#endif