Client: use Titles_GetTextBody() for the various strings inside the VGUI menus that are specific to TFC
This commit is contained in:
parent
2f10315a9a
commit
0d1a2fa7f7
2 changed files with 26 additions and 26 deletions
|
@ -90,52 +90,52 @@ TFClassButton::OnMouseEntered(void)
|
|||
|
||||
switch (classSelection) {
|
||||
case 1:
|
||||
lblClassTitle.SetTitle("Scout");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_scout"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_scout", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrScout);
|
||||
break;
|
||||
case 2:
|
||||
lblClassTitle.SetTitle("Sniper");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_sniper"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_sniper", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrSniper);
|
||||
break;
|
||||
case 3:
|
||||
lblClassTitle.SetTitle("Soldier");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_soldier"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_soldier", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrSoldier);
|
||||
break;
|
||||
case 4:
|
||||
lblClassTitle.SetTitle("Demoman");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_demoman"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_demoman", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrDemoman);
|
||||
break;
|
||||
case 5:
|
||||
lblClassTitle.SetTitle("Medic");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_medic"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_medic", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrMedic);
|
||||
break;
|
||||
case 6:
|
||||
lblClassTitle.SetTitle("Heavy Weapons Guy");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_hwguy"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_hwguy", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrHWGuy);
|
||||
break;
|
||||
case 7:
|
||||
lblClassTitle.SetTitle("Pyro");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_pyro"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_pyro", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrPyro);
|
||||
break;
|
||||
case 8:
|
||||
lblClassTitle.SetTitle("Spy");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_spy"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_spy", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrSpy);
|
||||
break;
|
||||
case 9:
|
||||
lblClassTitle.SetTitle("Engineer");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("Title_engineer"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_engineer", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrEngineer);
|
||||
break;
|
||||
case 0:
|
||||
lblClassTitle.SetTitle("Random");
|
||||
lblClassTitle.SetTitle(Titles_GetTextBody("RandomPC"));
|
||||
imgClassPreview.SetImage(strcat("gfx/vgui/640_randompc", teamName));
|
||||
lblClassDescription.SetTitle(g_classDescrRandomPC);
|
||||
break;
|
||||
|
@ -143,16 +143,16 @@ TFClassButton::OnMouseEntered(void)
|
|||
}
|
||||
|
||||
string g_classnames [] = {
|
||||
"SCOUT",
|
||||
"SNIPER",
|
||||
"SOLDIER",
|
||||
"DEMOMAN",
|
||||
"MEDIC",
|
||||
"HWGUY",
|
||||
"PYRO",
|
||||
"SPY",
|
||||
"ENGINEER",
|
||||
"RANDOM"
|
||||
"Scout",
|
||||
"Sniper",
|
||||
"Soldier",
|
||||
"Demoman",
|
||||
"Medic",
|
||||
"HWGuy",
|
||||
"Pyro",
|
||||
"Spy",
|
||||
"Engineer",
|
||||
"Random"
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -174,7 +174,7 @@ VGUI_ChooseClass(void)
|
|||
winClassSelection.SetStyleMask(VGUIWindowBorderless | VGUIWindowFullscreen);
|
||||
|
||||
lblSelectClass = spawn(VGUILabel);
|
||||
lblSelectClass.SetTitle("SELECT YOUR CLASS");
|
||||
lblSelectClass.SetTitle(Titles_GetTextBody("Title_SelectYourClass"));
|
||||
lblSelectClass.SetTextSize(19);
|
||||
lblSelectClass.SetPos([40, 38]);
|
||||
lblSelectClass.SetSize([400, 24]);
|
||||
|
@ -210,7 +210,7 @@ VGUI_ChooseClass(void)
|
|||
btns = memalloc(sizeof(TFClassButton) * g_classnames.length);
|
||||
for (int i = 0; i < g_classnames.length; i++) {
|
||||
btns[i] = spawn(TFClassButton);
|
||||
btns[i].SetTitle(g_classnames[i]);
|
||||
btns[i].SetTitle(Titles_GetTextBody(g_classnames[i]));
|
||||
btns[i].SetSize([124, 24]);
|
||||
btns[i].SetPos(btnpos);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ VGUI_ChooseTeam_MapInfo(void)
|
|||
mapinfo = strcat(mapinfo, temp, "\n");
|
||||
}
|
||||
} else {
|
||||
mapinfo = "No map info available.";
|
||||
mapinfo = Titles_GetTextBody("Map_Description_not_available");
|
||||
}
|
||||
|
||||
return mapinfo;
|
||||
|
@ -81,7 +81,7 @@ VGUI_ChooseTeam(void)
|
|||
winChooseTeam.SetStyleMask(VGUIWindowBorderless | VGUIWindowFullscreen);
|
||||
|
||||
lblSelectTeam = spawn(VGUILabel);
|
||||
lblSelectTeam.SetTitle("SELECT YOUR TEAM");
|
||||
lblSelectTeam.SetTitle(Titles_GetTextBody("Title_SelectYourTeam"));
|
||||
lblSelectTeam.SetTextSize(19);
|
||||
lblSelectTeam.SetPos([40, 38]);
|
||||
lblSelectTeam.SetSize('400 24');
|
||||
|
@ -131,7 +131,7 @@ VGUI_ChooseTeam(void)
|
|||
}
|
||||
|
||||
btnAutoAssign = spawn(VGUIButton);
|
||||
btnAutoAssign.SetTitle("AUTO ASSIGN");
|
||||
btnAutoAssign.SetTitle(Titles_GetTextBody("Team_AutoAssign"));
|
||||
btnAutoAssign.SetPos(btnpos);
|
||||
btnAutoAssign.SetSize('124 24');
|
||||
btnAutoAssign.SetKeyEquivalent("5");
|
||||
|
@ -139,7 +139,7 @@ VGUI_ChooseTeam(void)
|
|||
btnpos[1] += 32;
|
||||
|
||||
btnGoSpectator = spawn(VGUIButton);
|
||||
btnGoSpectator.SetTitle("SPECTATE");
|
||||
btnGoSpectator.SetTitle(Titles_GetTextBody("Menu_Spectate"));
|
||||
btnGoSpectator.SetPos(btnpos);
|
||||
btnGoSpectator.SetSize('124 24');
|
||||
btnGoSpectator.SetKeyEquivalent("6");
|
||||
|
|
Loading…
Reference in a new issue