Public Member Functions | |
gMenuItemStatus (uMenu *M, ePlayerNetID *playerID, bool displayCurrentTeam) | |
virtual void | Render (REAL x, REAL y, REAL alpha=1, bool selected=0) |
virtual bool | IsSelectable () |
Private Attributes | |
ePlayerNetID * | player |
bool | currentTeam |
Definition at line 183 of file gTeam.cpp.
gMenuItemStatus::gMenuItemStatus | ( | uMenu * | M, | |
ePlayerNetID * | playerID, | |||
bool | displayCurrentTeam | |||
) | [inline] |
virtual void gMenuItemStatus::Render | ( | REAL | x, | |
REAL | y, | |||
REAL | alpha = 1 , |
|||
bool | selected = 0 | |||
) | [inline, virtual] |
Reimplemented from uMenuItem.
Definition at line 193 of file gTeam.cpp.
References ePlayerNetID::CurrentTeam(), currentTeam, uMenuItem::DisplayTextSpecial(), ePlayerNetID::NextTeam(), player, and PrepareTeamText().
00194 { 00195 tOutput text; 00196 if (currentTeam) 00197 PrepareTeamText(&text, player->CurrentTeam(), player, "$team_menu_info_current_team"); 00198 else 00199 PrepareTeamText(&text, player->NextTeam(), player, "$team_menu_info_next_team"); 00200 DisplayTextSpecial( x, y, text, false, alpha ); 00201 }
virtual bool gMenuItemStatus::IsSelectable | ( | ) | [inline, virtual] |
ePlayerNetID* gMenuItemStatus::player [private] |
bool gMenuItemStatus::currentTeam [private] |