Public Member Functions | |
eMenuItemPassword (uMenu *M, tString &c) | |
virtual | ~eMenuItemPassword () |
virtual void | Render (REAL x, REAL y, REAL alpha=1, bool selected=0) |
virtual bool | Event (SDL_Event &e) |
Static Public Attributes | |
static bool | entered |
Definition at line 380 of file ePlayer.cpp.
Definition at line 385 of file ePlayer.cpp.
00385 : 00386 uMenuItemString(M,"$login_password_title","$login_password_help",c) 00387 { 00388 entered = false; 00389 } virtual ~eMenuItemPassword(){}
virtual eMenuItemPassword::~eMenuItemPassword | ( | ) | [inline, virtual] |
virtual void eMenuItemPassword::Render | ( | REAL | x, | |
REAL | y, | |||
REAL | alpha = 1 , |
|||
bool | selected = 0 | |||
) | [inline, virtual] |
Reimplemented from uMenuItemString.
Definition at line 392 of file ePlayer.cpp.
References uMenuItemString::Render().
00393 { 00394 tString* pwback = content; 00395 tString star; 00396 for (int i=content->Len()-2; i>=0; i--) 00397 star << "*"; 00398 content = ☆ 00399 uMenuItemString::Render(x,y, alpha, selected); 00400 content = pwback; 00401 }
virtual bool eMenuItemPassword::Event | ( | SDL_Event & | e | ) | [inline, virtual] |
Reimplemented from uMenuItemString.
Definition at line 403 of file ePlayer.cpp.
References uMenuItemString::Event().
00403 { 00404 #ifndef DEDICATED 00405 if (e.type==SDL_KEYDOWN && 00406 (e.key.keysym.sym==SDLK_KP_ENTER || e.key.keysym.sym==SDLK_RETURN)){ 00407 00408 entered = true; 00409 MyMenu()->Exit(); 00410 return true; 00411 } 00412 else 00413 #endif 00414 return uMenuItemString::Event(e); 00415 }
bool eMenuItemPassword::entered [static] |
Definition at line 383 of file ePlayer.cpp.