____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <ui.h>
Public Member Functions | |
| CStatusLine () | |
| void | Draw () |
| void | Set (const std::string &status) |
| const std::string & | Get () |
| void | Clear () |
Public Attributes | |
| int | Width |
| int | TextX |
| int | TextY |
| CFont * | Font |
Definition at line 309 of file ui.h.
| void CStatusLine::Draw | ( | void | ) |
Draw status line.
Definition at line 745 of file mainscr.cpp.
References Font, CVideo::Height, PopClipping(), PushClipping(), SetClipping(), TextX, TextY, Video, VideoDrawTextClip(), and Width.
Referenced by EditorUpdateDisplay(), and UpdateDisplay().
| void CStatusLine::Set | ( | const std::string & | status | ) |
Change status line to new text.
| status | New status line information. |
Definition at line 762 of file mainscr.cpp.
References KeyState, and KeyStateInput.
Referenced by CButtonPanel::DoClicked(), DrawInfoPanelMultipleSelected(), DrawInfoPanelSingleSelected(), DrawTransportingUnits(), EditorActionRemoveUnit(), EditorCallbackButtonDown(), EditorCallbackKeyDown(), EditorCallbackMouse(), ShowInput(), ShowPatchInfo(), ShowUnitInfo(), UiDecreaseGameSpeed(), UIHandleButtonUp(), UiIncreaseGameSpeed(), UiToggleBigMap(), UiToggleGrabMouse(), UiToggleMusic(), UiTogglePause(), UiToggleSound(), UiToggleTerrain(), and UpdateStatusLineForButton().
| void CStatusLine::Clear | ( | void | ) |
Clear status line.
Definition at line 772 of file mainscr.cpp.
References KeyState, and KeyStateInput.
Referenced by CancelBuildingMode(), CButtonPanel::DoClicked(), DoSelectionButtons(), EditorCallbackButtonDown(), EditorCallbackMouse(), InputKey(), SelectionChanged(), ShowInput(), MenuScreen::stop(), UiFindIdleWorker(), UIHandleButtonUp(), and UISelectStateButtonDown().
1.5.6