Definition at line 12 of file MenuHelp.h.
Public Member Functions | |
MenuHelp () | |
virtual | ~MenuHelp () |
virtual const char * | getName () const |
virtual bool | allowBg () const |
virtual void | drawOn (SDL_Surface *screen) |
Protected Member Functions | |
virtual void | own_initState () |
Display help centerd on screen. | |
virtual void | own_updateState () |
virtual void | own_pauseState () |
virtual void | own_resumeState () |
Help will be centred on screen. | |
virtual void | own_cleanState () |
|
Definition at line 21 of file MenuHelp.cpp. 00022 { 00023 Font usedFont(Path::dataReadPath("font/font_menu.ttf"), 14); 00024 SDL_Color usedColor = {255, 255, 255, 255}; 00025 00026 Labels labels(Path::dataReadPath("script/labels.lua")); 00027 m_help = new WiPara(labels.getLabel("help"), usedFont, usedColor); 00028 00029 takeHandler(new HelpInput(this)); 00030 registerDrawable(this); 00031 registerDrawable(m_help); 00032 }
|
|
Definition at line 34 of file MenuHelp.cpp. 00035 {
00036 delete m_help;
00037 }
|
|
Reimplemented from GameState. Definition at line 25 of file MenuHelp.h. 00025 { return true; }
|
|
Implements Drawable. Definition at line 65 of file MenuHelp.cpp. 00066 { 00067 SDL_Color gray = {0x00, 0x00, 0x00, 128}; 00068 SurfaceTool::alphaFill(screen, NULL, gray); 00069 }
|
|
Implements INamed. Definition at line 24 of file MenuHelp.h. 00024 { return "state_help"; };
|
|
Implements GameState. Definition at line 20 of file MenuHelp.h. 00020 {}
|
|
Display help centerd on screen.
Implements GameState. Definition at line 43 of file MenuHelp.cpp. 00044 { 00045 own_resumeState(); 00046 }
|
|
Implements GameState. Definition at line 18 of file MenuHelp.h. 00018 {}
|
|
Help will be centred on screen.
Implements GameState. Definition at line 52 of file MenuHelp.cpp. 00053 { 00054 int contentW = m_help->getW(); 00055 int contentH = m_help->getH(); 00056 OptionAgent *options = OptionAgent::agent(); 00057 int screenW = options->getAsInt("screen_width"); 00058 int screenH = options->getAsInt("screen_height"); 00059 00060 m_help->setShift( 00061 V2((screenW - contentW) / 2, (screenH - contentH) / 2)); 00062 }
|
|
Implements GameState. Definition at line 17 of file MenuHelp.h. 00017 {}
|