Advanced Strategic Command
|
#include <weathercast.h>
Public Member Functions | |
WeatherPanel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme=true) | |
virtual | ~WeatherPanel () |
WindAccu | getWindAccuData (const WeatherArea *wa) |
int | getCounter () |
![]() | |
Panel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme=true) | |
![]() | |
void | setLabelText (const ASCString &widgetName, const ASCString &text, PG_Widget *parent=NULL) |
void | setLabelText (const ASCString &widgetName, int i, PG_Widget *parent=NULL) |
void | setLabelColor (const ASCString &widgetName, PG_Color color, PG_Widget *parent=NULL) |
void | setImage (const ASCString &widgetName, Surface &image, PG_Widget *parent=NULL) |
void | setImage (const ASCString &widgetName, SDL_Surface *image=NULL, PG_Widget *parent=NULL) |
void | setImage (const ASCString &widgetName, const ASCString &filename, PG_Widget *parent=NULL) |
void | hide (const ASCString &widgetName, PG_Widget *parent=NULL) |
void | show (const ASCString &widgetName, PG_Widget *parent=NULL) |
void | setBargraphValue (const ASCString &widgetName, float fraction, PG_Widget *parent=NULL) |
void | setBarGraphColor (const ASCString &widgetName, PG_Color color, PG_Widget *parent=NULL) |
void | rename (const ASCString &widgetName, const ASCString &newname, PG_Widget *parent=NULL) |
void | setWidgetTransparency (const ASCString &widgetName, int transparency, PG_Widget *parent=NULL) |
int | RunModal () |
Additional Inherited Members | |
![]() | |
typedef deallocating_map < ASCString, TextPropertyGroup * > | GuiCache |
![]() | |
WidgetParameters | getDefaultWidgetParams () |
![]() | |
bool | setup () |
virtual void | userHandler (const ASCString &label, PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams) |
void | parsePanelASCTXT (PropertyReadingContainer &pc, PG_Widget *parent, WidgetParameters widgetParams) |
ASCGUI_Window (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, const ASCString &baseStyle="Panel", bool loadTheme=true) | |
~ASCGUI_Window () | |
![]() | |
static PG_Rect | parseRect (PropertyReadingContainer &pc, PG_Widget *parent) |
![]() | |
TextPropertyGroup * | textPropertyGroup |
![]() | |
static GuiCache | guiCache |
Definition at line 38 of file weathercast.h.
WeatherPanel::WeatherPanel | ( | PG_Widget * | parent, |
const PG_Rect & | r, | ||
const ASCString & | panelName_, | ||
bool | loadTheme = true |
||
) |
Definition at line 23 of file weathercast.cpp.
References actmap, WindData::direction, GuiDimension::getButtonHeight(), WeatherSystem::getCurrentWindDirection(), WeatherSystem::getCurrentWindSpeed(), IconRepository::getIcon(), GuiDimension::getTopOffSet(), WindData::speed, GameMap::time, and GameTime::turn().
|
virtual |
Definition at line 58 of file weathercast.cpp.
int WeatherPanel::getCounter | ( | ) |
Definition at line 200 of file weathercast.cpp.
Referenced by Weathercast::painter().
WindAccu WeatherPanel::getWindAccuData | ( | const WeatherArea * | wa | ) |
Definition at line 204 of file weathercast.cpp.