Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "gui/glut_support.h"
#include "gfx/hud.h"
#include "cmd/unit_generic.h"
#include "universe_util.h"
#include "config_xml.h"
#include "drawlist.h"
#include "gfx/masks.h"
Go to the source code of this file.
Macros | |
#define | INIT_COL_ARRAY(col, r, g, b, a) do{ col[0] = r; col[1] = g; col[2] = b; col[3] = a; }while(0) |
Functions | |
string | getUnitNameAndFgNoBase (Unit *target) |
void | drawdescription (Unit *source, float x_, float y_, float size_x, float size_y, bool ignore_occupied_areas, navscreenoccupied *screenoccupation, const GFXColor &col) |
void | drawdescription (string text, float x_, float y_, float size_x, float size_y, bool ignore_occupied_areas, navscreenoccupied *screenoccupation, const GFXColor &col) |
static GFXColor | getUnitTypeColor (std::string name, bool text, float col[4], float unselectedalpha) |
void | drawlistitem (int type, float size, float x, float y, Unit *source, navscreenoccupied *screenoccupation, bool inmouserange, bool currentistail, float unselectedalpha, GFXColor *factioncolours) |
#define INIT_COL_ARRAY | ( | col, | |
r, | |||
g, | |||
b, | |||
a | |||
) | do{ col[0] = r; col[1] = g; col[2] = b; col[3] = a; }while(0) |
Definition at line 178 of file drawlist.cpp.
Referenced by drawlistitem(), and getUnitTypeColor().
void drawdescription | ( | Unit * | source, |
float | x_, | ||
float | y_, | ||
float | size_x, | ||
float | size_y, | ||
bool | ignore_occupied_areas, | ||
navscreenoccupied * | screenoccupation, | ||
const GFXColor & | col | ||
) |
Definition at line 123 of file drawlist.cpp.
References drawdescription(), and getUnitNameAndFgNoBase().
Referenced by drawdescription(), drawlistitem(), NavigationSystem::DrawMission(), and NavigationSystem::DrawSectorList().
void drawdescription | ( | string | text, |
float | x_, | ||
float | y_, | ||
float | size_x, | ||
float | size_y, | ||
bool | ignore_occupied_areas, | ||
navscreenoccupied * | screenoccupation, | ||
const GFXColor & | col | ||
) |
Definition at line 137 of file drawlist.cpp.
References TextPlane::bgcol, TextPlane::col, TextPlane::Draw(), navscreenoccupied::findfreesector(), float, VegaConfig::getVariable(), XMLSupport::parse_float(), TextPlane::SetCharSize(), TextPlane::SetPos(), TextPlane::SetText(), and vs_config.
void drawlistitem | ( | int | type, |
float | size, | ||
float | x, | ||
float | y, | ||
Unit * | source, | ||
navscreenoccupied * | screenoccupation, | ||
bool | inmouserange, | ||
bool | currentistail, | ||
float | unselectedalpha, | ||
GFXColor * | factioncolours | ||
) |
Definition at line 200 of file drawlist.cpp.
References GFXColor::a, Delta(), NavigationSystem::DrawCircle(), drawdescription(), NavigationSystem::DrawHalfCircleTop(), NavigationSystem::DrawJump(), NavigationSystem::DrawMissile(), NavigationSystem::DrawPlanet(), NavigationSystem::DrawStation(), Unit::faction, VegaConfig::getColor(), UniverseUtil::getCurrentPlayer(), UniverseUtil::getPlayerX(), Unit::getRelation(), getUnitTypeColor(), INIT_COL_ARRAY, navasteroid, navcapship, navcurrentplayer, navfighter, navjump, navmissile, navnebula, navplanet, navplayer, navstation, navsun, and vs_config.
Referenced by navdrawlist::draw(), and NavigationSystem::DrawSystem().
string getUnitNameAndFgNoBase | ( | Unit * | target) |
Definition at line 60 of file vdu.cpp.
Referenced by drawdescription(), and CockpitKeys::TextMessageCallback().
|
static |
Definition at line 180 of file drawlist.cpp.
References GFXColor::a, VegaConfig::getColor(), INIT_COL_ARRAY, and vs_config.
Referenced by drawlistitem().