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 |
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 WHITE_COLOR_0 0 |
Definition at line 29 of file dialogues.h.
| 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 | |||
| ) |
Definition at line 286 of file dialogues.c.
References copy_dialogues_text(), currDialTextPtr, currDialTextSize, currentTextBank, currMenuTextBank, currMenuTextBuffer, currMenuTextIndex, and get_text().
Referenced by draw_button_gfx().
| void init_dialogue_bank | ( | int | bankIdx | ) |
Initialize dialogue
| 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().
| unsigned char* currDialTextPtr |
| int currDialTextSize |
| int currentTextBank |
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().
| int dialCharSpace |
Definition at line 38 of file dialogues.h.
Referenced by dialogue_text_size(), display_dialogue_text(), and set_font_parameters().
| int dialSpaceBetween |
Definition at line 37 of file dialogues.h.
Referenced by dialogue_text_size(), display_dialogue_text(), and set_font_parameters().
| int dialTextColor |
| int dialTextSize |
Definition at line 36 of file dialogues.h.
Referenced by dialogue_text_size(), and display_dialogue_text().
| int dialTextStepSize |
| unsigned char* fontPtr |
Definition at line 34 of file dialogues.h.
Referenced by dialogue_text_size(), display_dialogue_text(), draw_character(), and init_resources().
1.5.5