DDraceNetwork Docs
scoreboard.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_COMPONENTS_SCOREBOARD_H
4#define GAME_CLIENT_COMPONENTS_SCOREBOARD_H
5
6#include <engine/console.h>
7
10
11class CScoreboard : public CComponent
12{
14 {
18
21 };
22
23 void RenderTitle(CUIRect TitleBar, int Team, const char *pTitle);
24 void RenderGoals(CUIRect Goals);
25 void RenderSpectators(CUIRect Spectators);
26 void RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart, int CountEnd, CScoreboardRenderState &State);
27 void RenderRecordingNotification(float x);
28
29 static void ConKeyScoreboard(IConsole::IResult *pResult, void *pUserData);
30 const char *GetTeamName(int Team) const;
31
34
35public:
37 virtual int Sizeof() const override { return sizeof(*this); }
38 virtual void OnConsoleInit() override;
39 virtual void OnReset() override;
40 virtual void OnRender() override;
41 virtual void OnRelease() override;
42 virtual void OnMessage(int MsgType, void *pRawMsg) override;
43
44 bool Active() const;
45};
46
47#endif
Definition: component.h:20
Definition: scoreboard.h:12
virtual int Sizeof() const override
Definition: scoreboard.h:37
virtual void OnRelease() override
Definition: scoreboard.cpp:44
virtual void OnMessage(int MsgType, void *pRawMsg) override
Definition: scoreboard.cpp:49
void RenderSpectators(CUIRect Spectators)
Definition: scoreboard.cpp:156
bool m_Active
Definition: scoreboard.h:32
virtual void OnConsoleInit() override
Definition: scoreboard.cpp:33
virtual void OnReset() override
Definition: scoreboard.cpp:38
CScoreboard()
Definition: scoreboard.cpp:22
void RenderRecordingNotification(float x)
Definition: scoreboard.cpp:596
float m_ServerRecord
Definition: scoreboard.h:33
void RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart, int CountEnd, CScoreboardRenderState &State)
Definition: scoreboard.cpp:243
void RenderGoals(CUIRect Goals)
Definition: scoreboard.cpp:128
bool Active() const
Definition: scoreboard.cpp:791
static void ConKeyScoreboard(IConsole::IResult *pResult, void *pUserData)
Definition: scoreboard.cpp:27
virtual void OnRender() override
Definition: scoreboard.cpp:636
void RenderTitle(CUIRect TitleBar, int Team, const char *pTitle)
Definition: scoreboard.cpp:63
const char * GetTeamName(int Team) const
Definition: scoreboard.cpp:816
Definition: ui_rect.h:11
Definition: console.h:45
Definition: scoreboard.h:14
float m_TeamStartY
Definition: scoreboard.h:16
CScoreboardRenderState()
Definition: scoreboard.h:19
int m_CurrentDDTeamSize
Definition: scoreboard.h:17
float m_TeamStartX
Definition: scoreboard.h:15