restore +sciscore, the name of sciboard was a mistake

some inital importing of the new VGUI stuff
This commit is contained in:
Xylemon 2023-04-24 21:52:54 -07:00
parent dd6d0804c0
commit 9c5339e262
2 changed files with 25 additions and 8 deletions

View File

@ -14,18 +14,35 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
void VGUI_ChooseTeam(void);
int
ClientGame_ConsoleCommand(void)
{
switch(argv(0)) {
case "+sciboard":
g_sciboard = true;
case "+sciscore":
g_sciscore = true;
break;
case "-sciboard":
g_sciboard = false;
case "-sciscore":
g_sciscore = false;
break;
default:
return (0);
}
return (1);
}
void
CMD_ChooseTeam(void)
{
if (serverkeyfloat("sv_playerslots") <= 1)
return;
if (serverkeyfloat("teams") > 1)
/* handle both VGUI and text menus */
// if (ClientGame_IsUsingVGUI())
VGUI_ChooseTeam();
// else
// Textmenu_Toggle("TEAM_SELECT");
}

View File

@ -14,7 +14,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
var bool g_sciboard = false;
var bool g_sciscore = false;
void
ClientGame_PreDraw(void)
@ -23,7 +23,7 @@ ClientGame_PreDraw(void)
}
void
SH_DrawSciBoard(void)
SH_DrawSciScore(void)
{
string line;
vector pos;
@ -58,6 +58,6 @@ SH_DrawSciBoard(void)
void
ClientGame_PostDraw(void)
{
if (g_sciboard)
SH_DrawSciBoard();
if (g_sciscore)
SH_DrawSciScore();
}