mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 13:10:59 +00:00
Merge branch 'scoreboardtoggle' of https://github.com/ChillyDoom/zdoom
This commit is contained in:
commit
e6f3007bef
4 changed files with 13 additions and 1 deletions
|
@ -273,7 +273,8 @@ void CT_Drawer (void)
|
||||||
|
|
||||||
if (players[consoleplayer].camera != NULL &&
|
if (players[consoleplayer].camera != NULL &&
|
||||||
(Button_ShowScores.bDown ||
|
(Button_ShowScores.bDown ||
|
||||||
players[consoleplayer].camera->health <= 0) &&
|
players[consoleplayer].camera->health <= 0 ||
|
||||||
|
SB_ForceActive) &&
|
||||||
// Don't draw during intermission, since it has its own scoreboard in wi_stuff.cpp.
|
// Don't draw during intermission, since it has its own scoreboard in wi_stuff.cpp.
|
||||||
gamestate != GS_INTERMISSION)
|
gamestate != GS_INTERMISSION)
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
#include "hu_stuff.h"
|
#include "hu_stuff.h"
|
||||||
#include "gstrings.h"
|
#include "gstrings.h"
|
||||||
#include "d_net.h"
|
#include "d_net.h"
|
||||||
|
#include "c_dispatch.h"
|
||||||
|
|
||||||
// MACROS ------------------------------------------------------------------
|
// MACROS ------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -117,6 +118,8 @@ int STACK_ARGS compareteams (const void *arg1, const void *arg2)
|
||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SB_ForceActive = false;
|
||||||
|
|
||||||
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
||||||
|
|
||||||
// CODE --------------------------------------------------------------------
|
// CODE --------------------------------------------------------------------
|
||||||
|
@ -492,3 +495,8 @@ int HU_GetRowColor(player_t *player, bool highlight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCMD (togglescoreboard)
|
||||||
|
{
|
||||||
|
SB_ForceActive = !SB_ForceActive;
|
||||||
|
}
|
||||||
|
|
|
@ -52,6 +52,8 @@ void HU_GetPlayerWidths(int &maxnamewidth, int &maxscorewidth, int &maxiconheigh
|
||||||
void HU_DrawColorBar(int x, int y, int height, int playernum);
|
void HU_DrawColorBar(int x, int y, int height, int playernum);
|
||||||
int HU_GetRowColor(player_t *player, bool hightlight);
|
int HU_GetRowColor(player_t *player, bool hightlight);
|
||||||
|
|
||||||
|
extern bool SB_ForceActive;
|
||||||
|
|
||||||
// Sorting routines
|
// Sorting routines
|
||||||
|
|
||||||
int STACK_ARGS comparepoints(const void *arg1, const void *arg2);
|
int STACK_ARGS comparepoints(const void *arg1, const void *arg2);
|
||||||
|
|
|
@ -458,6 +458,7 @@ OptionMenu "CustomizeControls"
|
||||||
Control "Run", "+speed"
|
Control "Run", "+speed"
|
||||||
Control "Strafe", "+strafe"
|
Control "Strafe", "+strafe"
|
||||||
Control "Show Scoreboard", "+showscores"
|
Control "Show Scoreboard", "+showscores"
|
||||||
|
Control "Toggle Scoreboard", "togglescoreboard"
|
||||||
StaticText ""
|
StaticText ""
|
||||||
StaticText "Chat", 1
|
StaticText "Chat", 1
|
||||||
Control "Say", "messagemode"
|
Control "Say", "messagemode"
|
||||||
|
|
Loading…
Reference in a new issue