| 146 | {IDC_MAIN_CREDITS, "STR_CREDITS23"}, |
| 147 | }; |
| 148 | |
| 149 | static void SetMainPlayerControlText(IControl* ctrl) |
| 150 | { |
| 151 | if (!ctrl) |
| 152 | return; |
| 153 | |
| 154 | char buffer[256]; |
| 155 | snprintf(buffer, sizeof(buffer), LocalizeString(IDS_MAIN_PLAYER), (const char*)Glob.header.playerName); |
| 156 | |
| 157 | if (CActiveText* text = dynamic_cast<CActiveText*>(ctrl)) |
| 158 | text->SetText(buffer); |
| 159 | else if (CStatic* text = dynamic_cast<CStatic*>(ctrl)) |
| 160 | text->SetText(buffer); |
| 161 | } |
| 162 | |
| 163 | static const char* kLangRotation[] = { |
no test coverage detected