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

This file contains dialogues processing. It contains text and font functions. More...

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

Go to the source code of this file.

Defines

#define WHITE_COLOR_0   0

Functions

void init_dialogue_bank (int bankIdx)
void display_dialogue_text (int x, int y, char *dialogue)
int dialogue_text_size (char *dialogue)
void set_font_parameters (int spaceBetween, int charSpace)
void set_font_color (int color)
void set_dialogue_cross_color (int stopColor, int startColor, int stepSize)
void get_menu_text (int index, char *dialogue)

Variables

int currentTextBank
unsigned char * fontPtr
int dialTextSize
int dialSpaceBetween
int dialCharSpace
int dialTextColor
int dialTextStartColor
int dialTextStopColor
int dialTextStepSize
int dialTextBufferSize
int currDialTextSize
unsigned char * currDialTextPtr


Detailed Description

This file contains dialogues processing. It contains text and font functions.

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 dialogues.h.


Define Documentation

#define WHITE_COLOR_0   0

Definition at line 29 of file dialogues.h.


Function Documentation

int dialogue_text_size ( char *  dialogue  ) 

Definition at line 196 of file dialogues.c.

References dialCharSpace, dialSpaceBetween, dialTextSize, and fontPtr.

Referenced by draw_button_gfx().

void display_dialogue_text ( int  x,
int  y,
char *  dialogue 
)

Definition at line 168 of file dialogues.c.

References dialCharSpace, dialSpaceBetween, dialTextSize, draw_character(), and fontPtr.

Referenced by draw_button_gfx().

void get_menu_text ( int  index,
char *  dialogue 
)

void init_dialogue_bank ( int  bankIdx  ) 

Initialize dialogue

Parameters:
bankIdx Text bank index

Definition at line 46 of file dialogues.c.

References cfgfile, currentTextBank, dialOrderPtr, dialTextPtr, hqr_entry_size(), hqr_get_entry(), HQR_TEXT_FILE, ConfigFile::LanguageId, numDialTextEntries, textVar2, and textVar3.

Referenced by change_scene(), giveup_menu(), main_menu(), and show_game_options().

void set_dialogue_cross_color ( int  stopColor,
int  startColor,
int  stepSize 
)

Definition at line 236 of file dialogues.c.

References dialTextBufferSize, dialTextStartColor, dialTextStepSize, and dialTextStopColor.

Referenced by init_resources().

void set_font_color ( int  color  ) 

Definition at line 231 of file dialogues.c.

References dialTextColor.

Referenced by draw_button_gfx(), and init_resources().

void set_font_parameters ( int  spaceBetween,
int  charSpace 
)

Definition at line 225 of file dialogues.c.

References dialCharSpace, and dialSpaceBetween.

Referenced by init_resources().


Variable Documentation

unsigned char* currDialTextPtr

Definition at line 47 of file dialogues.h.

Referenced by get_menu_text(), and get_text().

Definition at line 46 of file dialogues.h.

Referenced by get_menu_text(), and get_text().

Current text bank

Definition at line 32 of file dialogues.h.

Referenced by change_scene(), get_menu_text(), giveup_menu(), init_dialogue_bank(), init_vars(), load_scene(), and show_game_options().

Definition at line 38 of file dialogues.h.

Referenced by dialogue_text_size(), display_dialogue_text(), and set_font_parameters().

Definition at line 37 of file dialogues.h.

Referenced by dialogue_text_size(), display_dialogue_text(), and set_font_parameters().

Definition at line 44 of file dialogues.h.

Referenced by set_dialogue_cross_color().

Definition at line 39 of file dialogues.h.

Referenced by draw_character(), and set_font_color().

Definition at line 36 of file dialogues.h.

Referenced by dialogue_text_size(), and display_dialogue_text().

Definition at line 41 of file dialogues.h.

Referenced by set_dialogue_cross_color().

Definition at line 43 of file dialogues.h.

Referenced by set_dialogue_cross_color().

Definition at line 42 of file dialogues.h.

Referenced by set_dialogue_cross_color().

unsigned char* fontPtr


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