D:/WorkAround/prequengine/trunk/src/menu.h File Reference

This file contains main menu create and processing routines. More...

#include "sdlengine.h"

Include dependency graph for menu.h:

This graph shows which files directly or indirectly include this file:

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


Detailed Description

This file contains main menu create and processing routines.

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.


Function Documentation

void draw_button_box ( int  left,
int  top,
int  right,
int  bottom 
)

Draw the entire button box

Parameters:
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

Parameters:
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 (  ) 

void main_menu (  ) 

int options_menu (  ) 

void process_plasma_effect ( int  top,
int  color 
)

Process the plasma effect

Parameters:
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().


Variable Documentation

Definition at line 31 of file menu.h.

Referenced by get_menu_text(), and init_vars().

char currMenuTextBuffer[256]

Definition at line 32 of file menu.h.

Referenced by get_menu_text().

Definition at line 30 of file menu.h.

Referenced by get_menu_text(), and init_vars().

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().


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5