_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
94 #define IconSelected 4
95 #define IconDisabled 8
96 #define IconAutoCast 16
112 CIcon(
const std::string &ident);
115 static CIcon *
New(
const std::string &ident);
116 static CIcon *
Get(
const std::string &ident);
128 unsigned flags,
const PixelPos &pos,
const std::string &text,
const int playerIndex = -1)
const;
130 unsigned flags,
const PixelPos &pos,
const std::string &text,
const CUnit &unit)
const;
132 unsigned flags,
const PixelPos &pos,
const std::string &text,
const CUnit &unit)
const;
134 unsigned flags,
const PixelPos &pos,
const std::string &text,
const CUnit &unit)
const;
136 const std::string &
GetIdent()
const {
return this->Ident; }
160 std::vector<CPlayerColorGraphic *> SingleSelectionG;
161 std::vector<CPlayerColorGraphic *> GroupSelectionG;
162 std::vector<CPlayerColorGraphic *> ContainedG;
168 std::vector<PaletteSwap> PaletteSwaps;
193 #endif // !__ICONS_H__
Diplomacy states for CommandDiplomacy.
Definition: player.h:83
void DrawSingleSelectionIcon(const ButtonStyle &style, unsigned flags, const PixelPos &pos, const std::string &text, const CUnit &unit) const
Definition: icons.cpp:233
CIcon * Icon
config icon name
Definition: icons.h:181
void DrawGroupSelectionIcon(const ButtonStyle &style, unsigned flags, const PixelPos &pos, const std::string &text, const CUnit &unit) const
Definition: icons.cpp:239
Icon reference (used in config tables)
Definition: icons.h:172
static CIcon * New(const std::string &ident)
Definition: icons.cpp:86
void DrawContainedIcon(const ButtonStyle &style, unsigned flags, const PixelPos &pos, const std::string &text, const CUnit &unit) const
Definition: icons.cpp:245
Icon: rectangle image used in menus.
Definition: icons.h:109
void AddGroupSelectionGraphic(CPlayerColorGraphic *g)
Definition: icons.cpp:263
void SetPaletteSwaps(std::vector< PaletteSwap > &newSwaps)
Definition: icons.cpp:273
void CleanIcons()
Load icons.
Definition: icons.cpp:403
bool LoadNoLog()
Definition: icons.cpp:363
CPlayerColorGraphic * GScale
Graphic data.
Definition: icons.h:148
void AddContainedGraphic(CPlayerColorGraphic *g)
Definition: icons.cpp:268
void DrawIcon(const PixelPos &pos, const int player=-1) const
Draw icon.
Definition: icons.cpp:149
std::string Name
Definition: icons.h:180
CIcon(const std::string &ident)
Map of ident to icon.
Definition: icons.cpp:64
void DrawUnitIcon(const ButtonStyle &style, unsigned flags, const PixelPos &pos, const std::string &text, const int playerIndex=-1) const
Draw icon of a unit.
Definition: icons.cpp:289
void Load()
Definition: icons.cpp:112
CPlayerColorGraphic * G
Definition: icons.h:147
const std::string & GetIdent() const
Definition: icons.h:136
IconConfig()
Definition: icons.h:175
void DrawGrayscaleIcon(const PixelPos &pos, const int player=-1) const
Draw grayscale icon.
Definition: icons.cpp:163
~CIcon()
Definition: icons.cpp:72
void DrawCooldownSpellIcon(const PixelPos &pos, const int percent) const
Draw cooldown spell.
Definition: icons.cpp:180
bool Load()
Definition: icons.cpp:376
void ClearExtraGraphics()
Modify the extra icon graphics.
Definition: icons.cpp:251
int Frame
Icon when drawn grayscaled.
Definition: icons.h:149
static CIcon * Get(const std::string &ident)
Definition: icons.cpp:103
void LoadIcons()
Definition: icons.cpp:390
The big unit structure.
Definition: unit.h:135
void AddSingleSelectionGraphic(CPlayerColorGraphic *g)
Definition: icons.cpp:258
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.