____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <string>
#include <map>
Go to the source code of this file.
Classes | |
| class | CIcon |
| Icon: rectangle image used in menus. More... | |
| class | IconConfig |
Defines | |
| #define | IconActive 1 |
| cursor on icon | |
| #define | IconClicked 2 |
| mouse button down on icon | |
| #define | IconSelected 4 |
| this the selected icon | |
| #define | IconDisabled 8 |
| icon disabled | |
| #define | IconAutoCast 16 |
| auto cast icon | |
Functions | |
| void | InitIcons (void) |
| Init icons. | |
| void | LoadIcons (void) |
| Load icons. | |
| void | CleanIcons (void) |
| Cleanup icons. | |
| void | IconCclRegister (void) |
Variables | |
| std::map< std::string, CIcon * > | Icons |
| Map of ident to icon. | |
Definition in file icons.h.
| #define IconActive 1 |
cursor on icon
Definition at line 89 of file icons.h.
Referenced by DrawEditorPanel(), DrawInfoPanelMultipleSelected(), DrawTrainingUnits(), DrawTransportingUnits(), DrawUnitInfo(), and GetButtonStatus().
| #define IconAutoCast 16 |
auto cast icon
Definition at line 93 of file icons.h.
Referenced by CIcon::DrawUnitIcon(), and GetButtonStatus().
| #define IconClicked 2 |
| #define IconSelected 4 |
this the selected icon
Definition at line 91 of file icons.h.
Referenced by DrawEditorPanel(), CIcon::DrawUnitIcon(), and GetButtonStatus().
| void CleanIcons | ( | void | ) |
Cleanup icons.
Register CCL features
Clean up memory used by the icons.
Definition at line 160 of file icons.cpp.
References AllIcons, and Icons.
Referenced by CleanModules().
| void IconCclRegister | ( | void | ) |
| void InitIcons | ( | void | ) |
Init icons.
Init the icons.
Add the short name and icon aliases to hash table.
Definition at line 136 of file icons.cpp.
Referenced by CreateGame(), and InitModules().
| void LoadIcons | ( | void | ) |
Load icons.
Load the graphics for the icons.
Definition at line 143 of file icons.cpp.
References _C_, AllIcons, DebugPrint, CGraphic::File, CIcon::Frame, CIcon::G, CIcon::GetIdent(), CGraphic::Load(), CGraphic::NumFrames, and ShowLoadProgress().
Referenced by CreateGame(), and LoadModules().
Map of ident to icon.
Definition at line 57 of file icons.cpp.
Referenced by CleanIcons(), CIcon::Get(), and CIcon::New().
1.5.6