Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "vegastrike.h"
#include "painttext.h"
#include "vs_globals.h"
#include "config_xml.h"
#include "gldrv/gl_globals.h"
Go to the source code of this file.
Functions | |
bool | useStroke () |
static float | drawChars (const string &str, int start, int end, const Font &font, const GFXColor &color, float inRasterPos) |
static void | parseFormatFloat (const std::string &str, const string::size_type startPos, const string::size_type endPos, bool *formatSuccess, float *resultValue, string::size_type *resultPos, const char optionalTerminator= '\0') |
static void | parseFormatColor (const string &str, const string::size_type startPos, const string::size_type endPos, bool *formatSuccess, GFXColor &color, string::size_type *resultPos) |
static bool | isWordBreak (char c) |
std::string | colorsToCommandString (float r, float g, float b, float a) |
Variables | |
static const char | OLD_FORMAT_NEWLINE = '\\' |
static const char | DT_FORMAT_CHAR = '#' |
static const char | DT_FORMAT_NEWLINE_CHAR = 'n' |
static const char | DT_FORMAT_LINE_SPACING_CHAR = 'l' |
static const char | DT_FORMAT_STROKE_CHAR = 'b' |
static const char | DT_FORMAT_COLOR_CHAR = 'c' |
static const char | DT_FORMAT_POP_CHAR = '-' |
static const char | DT_FORMAT_RESET_CHAR = '!' |
static const char | DT_FORMAT_COLOR_SEP = ':' |
static const float | BOGUS_LINE_SPACING = -100.0 |
static const string::size_type | ELLIPSIS_FRAGMENT = 64 |
static const string | ELLIPSIS_STRING = "..." |
static const float | LINE_HEIGHT_EPSILON = .99 |
static const int | LINES_RESERVE = 50 |
Definition at line 747 of file painttext.cpp.
Referenced by factionColorTextString(), and BaseComputer::showPlayerInfo().
|
static |
Definition at line 200 of file painttext.cpp.
References GFXColor::a, GFXColor::b, Font::drawChar(), GFXColor::g, g_game, VegaConfig::getVariable(), XMLSupport::parse_bool(), GFXColor::r, Font::strokeWidth(), useStroke(), vs_config, and game_data_t::x_resolution.
Referenced by PaintText::drawLines().
|
static |
Definition at line 462 of file painttext.cpp.
Referenced by PaintText::parseFragmentsWithCharBreak(), and PaintText::parseFragmentsWithWordBreak().
|
static |
Definition at line 316 of file painttext.cpp.
References GFXColor::a, GFXColor::b, DT_FORMAT_CHAR, DT_FORMAT_COLOR_SEP, GFXColor::g, parseFormatFloat(), and GFXColor::r.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 277 of file painttext.cpp.
References c, and DT_FORMAT_CHAR.
Referenced by PaintText::parseFormat(), and parseFormatColor().
bool useStroke | ( | ) |
Definition at line 41 of file font.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_bool(), and vs_config.
Referenced by Font::calcMetrics(), Font::charWidth(), Font::drawChar(), drawChars(), and PaintText::drawLines().
|
static |
Definition at line 75 of file painttext.cpp.
Referenced by PaintText::calcLayout(), and PaintText::parseFormat().
|
static |
Definition at line 64 of file painttext.cpp.
Referenced by parseFormatColor(), parseFormatFloat(), PaintText::parseFragmentsWithCharBreak(), and PaintText::parseFragmentsWithWordBreak().
|
static |
Definition at line 69 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 73 of file painttext.cpp.
Referenced by parseFormatColor().
|
static |
Definition at line 67 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 66 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 70 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 71 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 68 of file painttext.cpp.
Referenced by PaintText::parseFormat().
|
static |
Definition at line 79 of file painttext.cpp.
Referenced by PaintText::drawLines(), and PaintText::parseFragmentsWithCharBreak().
|
static |
Definition at line 80 of file painttext.cpp.
Referenced by PaintText::drawLines(), and PaintText::parseFragmentsWithCharBreak().
|
static |
Definition at line 86 of file painttext.cpp.
Referenced by PaintText::drawLines(), and PaintText::visibleLineCountStartingWith().
|
static |
Definition at line 89 of file painttext.cpp.
Referenced by PaintText::calcLayout().
|
static |
Definition at line 61 of file painttext.cpp.
Referenced by PaintText::setText().