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

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

#include "dialogues.h"
#include "main.h"
#include "hqrdepack.h"
#include "resources.h"
#include "sdlengine.h"
#include "menu.h"
#include "interface.h"

Include dependency graph for dialogues.c:

Go to the source code of this file.

Functions

void init_dialogue_bank (int bankIdx)
void draw_character (int x, int y, unsigned char character)
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)
int get_text (int index)
void copy_dialogues_text (char *a, char *b, int c)
void get_menu_text (int index, char *dialogue)

Variables

unsigned char textVar2 [256]
unsigned char textVar3
unsigned char * dialTextPtr
unsigned char * dialOrderPtr
short int numDialTextEntries


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.c.


Function Documentation

void copy_dialogues_text ( char *  a,
char *  b,
int  c 
)

Definition at line 279 of file dialogues.c.

Referenced by get_menu_text().

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 draw_character ( int  x,
int  y,
unsigned char  character 
)

void get_menu_text ( int  index,
char *  dialogue 
)

int get_text ( int  index  ) 

Definition at line 244 of file dialogues.c.

References currDialTextPtr, currDialTextSize, dialOrderPtr, dialTextPtr, and numDialTextEntries.

Referenced by get_menu_text().

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* dialOrderPtr

Dialogue entry order pointer

Definition at line 40 of file dialogues.c.

Referenced by get_text(), and init_dialogue_bank().

unsigned char* dialTextPtr

Dialogue text pointer

Definition at line 38 of file dialogues.c.

Referenced by get_text(), and init_dialogue_bank().

short int numDialTextEntries

Number of dialogues text entries

Definition at line 42 of file dialogues.c.

Referenced by get_text(), and init_dialogue_bank().

unsigned char textVar2[256]

Definition at line 34 of file dialogues.c.

Referenced by init_dialogue_bank().

unsigned char textVar3

Definition at line 35 of file dialogues.c.

Referenced by init_dialogue_bank().


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