#include "sdlengine.h"
Go to the source code of this file.
Functions | |
| void | process_plasma_effect (int top, int color) |
| void | draw_button_box (int left, int top, int right, int bottom) |
| void | draw_transparent_box (int left, int top, int right, int bottom, int colorAdj) |
| void | main_menu () |
| int | giveup_menu () |
| int | options_menu () |
Variables | |
| int | currMenuTextIndex |
| int | currMenuTextBank |
| char | currMenuTextBuffer [256] |
| short int | OptionsMenuSettings [] |
| unsigned char * | plasmaEffectPtr |
Prequengine: a Little Big Adventure engine
Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file menu.h.
| void draw_button_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) |
Draw the entire button box
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button |
Definition at line 335 of file menu.c.
References draw_line().
Referenced by draw_button_gfx().
| void draw_transparent_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| int | colorAdj | |||
| ) |
Draws inside buttons transparent area
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button | |
| colorAdj | index to adjust the transparent box color |
Definition at line 210 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, and screenLockupTable.
Referenced by draw_button_gfx().
| int giveup_menu | ( | ) |
Used to run the in-game give-up menu
Definition at line 922 of file menu.c.
References cfgfile, copy_screen(), currentTextBank, ConfigFile::Fps, fps_cycles(), frontVideoBuffer, GIVEUPMENU_CONTINUE, GIVEUPMENU_QUIT, GiveUpMenuSettings, GiveUpMenuSettingsWithSave, init_dialogue_bank(), process_menu(), ConfigFile::UseAutoSaving, and workVideoBuffer.
Referenced by show_giveup_menu().
| void main_menu | ( | ) |
Used to run the main menu
Definition at line 865 of file menu.c.
References cfgfile, convert_pal_2_RGBA(), copy_screen(), fade_2_pal(), flip(), ConfigFile::Fps, fps_cycles(), frontVideoBuffer, hqr_get_entry(), HQR_RESS_FILE, init_dialogue_bank(), MAINMENU_BKGIMAGE, MAINMENU_CONTINUEGAME, MAINMENU_NEWGAME, MAINMENU_OPTIONS, MAINMENU_QUIT, MainMenuSettings, new_game_menu(), options_menu(), OPTIONSMENU_RETURNMENU, OptionsMenuSettings, palette, paletteRGBA, PLASMA_EFFECT_FILESIZE, plasmaEffectPtr, play_track_music(), process_menu(), ConfigFile::Quit, RESSHQR_MAINPAL, RESSHQR_MENUIMG, RESSHQR_PLASMAEFFECT, and workVideoBuffer.
Referenced by init_engine().
| int options_menu | ( | ) |
Used to run the options menu
Definition at line 811 of file menu.c.
References advoptions_menu(), copy_screen(), flip(), frontVideoBuffer, OPTIONSMENU_ADVOPTIONS, OPTIONSMENU_RETURNGAME, OPTIONSMENU_RETURNMENU, OPTIONSMENU_SAVEMANAGE, OPTIONSMENU_VOLUME, OptionsMenuSettings, process_menu(), savemanage_menu(), volume_menu(), and workVideoBuffer.
Referenced by main_menu(), and show_game_options().
| void process_plasma_effect | ( | int | top, | |
| int | color | |||
| ) |
Process the plasma effect
| top | top height where the effect will be draw in the front buffer | |
| color | plasma effect start color |
Definition at line 292 of file menu.c.
References frontVideoBuffer, MAINMENU_BUTTONWIDTH, plasma_effect_init(), plasmaEffectVar1, and screenLockupTable.
Referenced by draw_button_gfx().
| int currMenuTextBank |
| char currMenuTextBuffer[256] |
| short int OptionsMenuSettings[] |
Options Menu Settings
Used to create the options menu.
Definition at line 137 of file menu.c.
Referenced by main_menu(), options_menu(), and show_game_options().
| unsigned char* plasmaEffectPtr |
Plasma Effect pointer to file content: RESS.HQR:51
Definition at line 214 of file menu.c.
Referenced by draw_button_gfx(), main_menu(), and plasma_effect_init().
1.5.5