$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <ui.h>
Public Member Functions | |
ui.cpp - The user interface globals. | |
CUserInterface () | |
~CUserInterface () | |
void | Load () |
Public Attributes | |
bool | MouseScroll |
bool | KeyScroll |
Enable mouse scrolling. | |
int | MouseScrollSpeed |
Mouse Scroll Speed (screenpixels per mousepixel). | |
int | MouseScrollSpeedDefault |
Middle-Mouse Scroll Speed (screenpixels per mousepixel). | |
int | MouseScrollSpeedControl |
Middle-Mouse Scroll Speed with Control pressed. | |
int | MouseWarpX |
int | MouseWarpY |
Cursor warp X position. | |
std::string | NormalFontColor |
Cursor warp Y position. | |
std::string | ReverseFontColor |
Color for normal text displayed. | |
std::vector< CFiller > | Fillers |
Color for reverse text displayed. | |
CResourceInfo | Resources [MaxResourceInfo] |
Filler graphics. | |
CInfoPanel | InfoPanel |
Icon+Text of all resources. | |
std::vector< CUnitInfoPanel * > | InfoPanelContents |
Info panel. | |
CUIButton * | SingleSelectedButton |
Info panel contents. | |
std::vector< CUIButton > | SelectedButtons |
Button for single selected unit. | |
CFont * | MaxSelectedFont |
Selected buttons. | |
int | MaxSelectedTextX |
Font type to use. | |
int | MaxSelectedTextY |
position to place '+#' text | |
CUIButton * | SingleTrainingButton |
if > maximum units selected | |
std::string | SingleTrainingText |
Button for single training. | |
CFont * | SingleTrainingFont |
Text for single training. | |
int | SingleTrainingTextX |
Font for single traning. | |
int | SingleTrainingTextY |
X text position single training. | |
std::vector< CUIButton > | TrainingButtons |
Y text position single training. | |
std::string | TrainingText |
Training buttons. | |
CFont * | TrainingFont |
Multiple Training Text. | |
int | TrainingTextX |
Multiple Training Font. | |
int | TrainingTextY |
Multiple Training X Text position. | |
CUIButton * | UpgradingButton |
Multiple Training Y Text position. | |
CUIButton * | ResearchingButton |
Button info for upgrade. | |
std::vector< CUIButton > | TransportingButtons |
Button info for researching. | |
SDL_Color | CompletedBarColorRGB |
Button info for transporting. | |
Uint32 | CompletedBarColor |
color for completed bar | |
bool | CompletedBarShadow |
color for completed bar | |
CButtonPanel | ButtonPanel |
should complete bar have shadow | |
CPieMenu | PieMenu |
ViewportModeType | ViewportMode |
CViewport * | MouseViewport |
Current viewport mode. | |
CViewport * | SelectedViewport |
Viewport containing mouse. | |
int | NumViewports |
Current selected active viewport. | |
CViewport | Viewports [MAX_NUM_VIEWPORTS] |
# Viewports currently used | |
CMapArea | MapArea |
Parameters of all viewports. | |
CFont * | MessageFont |
geometry of the whole map area | |
int | MessageScrollSpeed |
Font used for messages. | |
CUIButton | MenuButton |
Scroll speed in seconds for messages. | |
CUIButton | NetworkMenuButton |
menu button | |
CUIButton | NetworkDiplomacyButton |
network menu button | |
CMinimap | Minimap |
network diplomacy button | |
Uint32 | ViewportCursorColor |
minimap | |
CStatusLine | StatusLine |
minimap cursor color | |
CUITimer | Timer |
status line | |
int | Offset640X |
game timer | |
int | Offset480Y |
Offset for 640x480 X position. | |
CursorConfig | Point |
Offset for 640x480 Y position. | |
CursorConfig | Glass |
General pointing cursor. | |
CursorConfig | Cross |
HourGlass, system is waiting. | |
CursorConfig | YellowHair |
Multi-select cursor. | |
CursorConfig | GreenHair |
Yellow action,attack cursor. | |
CursorConfig | RedHair |
Green action,attack cursor. | |
CursorConfig | Scroll |
Red action,attack cursor. | |
CursorConfig | ArrowE |
Cursor for scrolling map around. | |
CursorConfig | ArrowNE |
Cursor pointing east. | |
CursorConfig | ArrowN |
Cursor pointing north east. | |
CursorConfig | ArrowNW |
Cursor pointing north. | |
CursorConfig | ArrowW |
Cursor pointing north west. | |
CursorConfig | ArrowSW |
Cursor pointing west. | |
CursorConfig | ArrowS |
Cursor pointing south west. | |
CursorConfig | ArrowSE |
Cursor pointing south. | |
CGraphic * | VictoryBackgroundG |
Cursor pointing south east. | |
CGraphic * | DefeatBackgroundG |
Victory background graphic. |
CUserInterface::CUserInterface | ( | ) |
CUserInterface::~CUserInterface | ( | ) |
Clean up a user interface.
void CUserInterface::Load | ( | ) |
Load the user interface graphics.
Enable mouse scrolling.
Mouse Scroll Speed (screenpixels per mousepixel).
Enable keyboard scrolling
Middle-Mouse Scroll Speed (screenpixels per mousepixel).
Middle-Mouse Scroll Speed with Control pressed.
Cursor warp X position.
std::string CUserInterface::NormalFontColor |
Cursor warp Y position.
std::string CUserInterface::ReverseFontColor |
Color for normal text displayed.
std::vector<CFiller> CUserInterface::Fillers |
Color for reverse text displayed.
CResourceInfo CUserInterface::Resources[MaxResourceInfo] |
Filler graphics.
Icon+Text of all resources.
std::vector<CUnitInfoPanel *> CUserInterface::InfoPanelContents |
Info panel.
Info panel contents.
std::vector<CUIButton> CUserInterface::SelectedButtons |
Button for single selected unit.
Selected buttons.
Font type to use.
position to place '+#' text
if > maximum units selected
std::string CUserInterface::SingleTrainingText |
Button for single training.
Text for single training.
Font for single traning.
X text position single training.
std::vector<CUIButton> CUserInterface::TrainingButtons |
Y text position single training.
std::string CUserInterface::TrainingText |
Training buttons.
Multiple Training Text.
Multiple Training Font.
Multiple Training X Text position.
Multiple Training Y Text position.
Button info for upgrade.
std::vector<CUIButton> CUserInterface::TransportingButtons |
Button info for researching.
SDL_Color CUserInterface::CompletedBarColorRGB |
Button info for transporting.
color for completed bar
color for completed bar
should complete bar have shadow
Current viewport mode.
Viewport containing mouse.
Current selected active viewport.
CViewport CUserInterface::Viewports[MAX_NUM_VIEWPORTS] |
# Viewports currently used
Parameters of all viewports.
geometry of the whole map area
Font used for messages.
Scroll speed in seconds for messages.
menu button
network menu button
network diplomacy button
minimap
minimap cursor color
status line
game timer
Offset for 640x480 X position.
Offset for 640x480 Y position.
General pointing cursor.
HourGlass, system is waiting.
Multi-select cursor.
Yellow action,attack cursor.
Green action,attack cursor.
Red action,attack cursor.
Cursor for scrolling map around.
Cursor pointing east.
Cursor pointing north east.
Cursor pointing north.
Cursor pointing north west.
Cursor pointing west.
Cursor pointing south west.
Cursor pointing south.
Cursor pointing south east.
Victory background graphic.