diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-25 05:25:33 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-25 05:25:33 +0100 |
| commit | baa647ad7caf95ea2619d8456bcfd0f04a08a719 (patch) | |
| tree | 7a7f5408a8ae0cc18a70d7795a2a47af30cf59f5 /Source/Menu.c | |
| parent | 81d9242514b4e8e3fe97cf7063a15680f610bf2f (diff) | |
| download | airport-baa647ad7caf95ea2619d8456bcfd0f04a08a719.tar.gz | |
+ Added Message module, used for tutorials.
+ Added first tutorial level.
* Font now inserts line feed automatically if the next word is too long to fit.
* Gfx.c: added primitive list double buffering in order to gain some performance.
* MapEditor: now airport can be defined inside the tool.
Diffstat (limited to 'Source/Menu.c')
| -rw-r--r-- | Source/Menu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Menu.c b/Source/Menu.c index 325c0c4..a1f17ef 100644 --- a/Source/Menu.c +++ b/Source/Menu.c @@ -20,7 +20,7 @@ * Defines * * *************************************/ -#define BUTTON_SIZE 64 +#define MAIN_MENU_BUTTON_SIZE 64 #define SELECTED_BUTTON_LUMINANCE 0xC0 /* ************************************** @@ -168,7 +168,11 @@ static const char* MainMenuFiles[] = { "cdrom:\\DATA\\SPRITES\\MAINMENU.TIM;1" , static const char* MainMenuLevelList[] = { [LEVEL1] = "cdrom:\\DATA\\LEVELS\\LEVEL1.LVL;1" , [LEVEL2] = "cdrom:\\DATA\\LEVELS\\LEVEL2.LVL;1" }; -static const char* MainMenuLevel1Plt[] = {"cdrom:\\DATA\\LEVELS\\LEVEL1.PLT;1", "cdrom:\\DATA\\LEVELS\\EASY.PLT;1", NULL}; +static const char* MainMenuLevel1Plt[] = { "cdrom:\\DATA\\LEVELS\\TUTORIA1.PLT;1", + "cdrom:\\DATA\\LEVELS\\LEVEL1.PLT;1", + "cdrom:\\DATA\\LEVELS\\EASY.PLT;1", + NULL}; + static const char* MainMenuLevel2Plt[] = {"cdrom:\\DATA\\LEVELS\\LEVEL2.PLT;1", NULL}; static const char** MainMenuPltList[] = {[LEVEL1] = MainMenuLevel1Plt, [LEVEL2] = MainMenuLevel2Plt}; @@ -751,8 +755,8 @@ void MainMenuButtonHandler(void) void MainMenuDrawButton(TYPE_MMBtn * btn) { - MenuSpr.w = BUTTON_SIZE; - MenuSpr.h = BUTTON_SIZE; + MenuSpr.w = MAIN_MENU_BUTTON_SIZE; + MenuSpr.h = MAIN_MENU_BUTTON_SIZE; if ( (btn->timer) < (MainMenuBtnAni_sz - 1) ) { |
