DDraceNetwork Documentation
Loading...
Searching...
No Matches
CImportantAlert Class Reference

#include <important_alert.h>

Inheritance diagram for CImportantAlert:
[legend]
Collaboration diagram for CImportantAlert:
[legend]

Public Member Functions

int Sizeof () const override
void OnReset () override
void OnWindowResize () override
void OnRender () override
void OnMessage (int MsgType, void *pRawMsg) override
bool OnInput (const IInput::CEvent &Event) override
bool IsActive () const
Public Member Functions inherited from CComponent
virtual void OnStateChange (int NewState, int OldState)
virtual void OnConsoleInit ()
virtual void OnInit ()
virtual void OnShutdown ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnRelease ()
virtual void OnMapLoad ()
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
virtual bool OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates)
Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
virtual ~CComponentInterfaces ()=default

Private Member Functions

void DeleteTextContainers ()
void RenderImportantAlert ()
void DoImportantAlert (const char *pTitle, const char *pLogGroup, const char *pMessage)
float SecondsActive () const

Private Attributes

bool m_Active = false
float m_ActiveSince
float m_FadeOutSince
char m_aTitleText [128]
char m_aMessageText [1024]
STextContainerIndex m_TitleTextContainerIndex
STextContainerIndex m_MessageTextContainerIndex
STextContainerIndex m_CloseHintTextContainerIndex

Additional Inherited Members

Protected Member Functions inherited from CComponentInterfaces
class CGameClientGameClient () const
class IClientClient () const
class IKernelKernel () const
class IEngineEngine () const
class IGraphicsGraphics () const
class ITextRenderTextRender () const
class IInputInput () const
class IStorageStorage () const
class CUiUi () const
class ISoundSound () const
class CRenderToolsRenderTools () const
class CRenderMapRenderMap () const
class IConfigManagerConfigManager () const
class CConfigConfig () const
class IConsoleConsole () const
class IDemoPlayerDemoPlayer () const
class IDemoRecorderDemoRecorder (int Recorder) const
class IFavoritesFavorites () const
class IServerBrowserServerBrowser () const
class CLayersLayers () const
class CCollisionCollision () const
int64_t time () const
float LocalTime () const
class IHttpHttp () const

Member Function Documentation

◆ DeleteTextContainers()

void CImportantAlert::DeleteTextContainers ( )
private

◆ DoImportantAlert()

void CImportantAlert::DoImportantAlert ( const char * pTitle,
const char * pLogGroup,
const char * pMessage )
private

◆ IsActive()

bool CImportantAlert::IsActive ( ) const

◆ OnInput()

bool CImportantAlert::OnInput ( const IInput::CEvent & Event)
overridevirtual

Called on a input event.

Parameters
EventThe input event.

Reimplemented from CComponent.

◆ OnMessage()

void CImportantAlert::OnMessage ( int Msg,
void * pRawMsg )
overridevirtual

Called when receiving a network message.

Parameters
MsgThe message type.
pRawMsgThe message data.
See also
NETMSGTYPE_SV_DDRACETIME
CNetMsg_Sv_DDRaceTime

Reimplemented from CComponent.

◆ OnRender()

void CImportantAlert::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CImportantAlert::OnReset ( )
overridevirtual

Called to reset the component. This method is usually called on your component constructor to avoid code duplication.

See also
CHud::CHud()
CHud::OnReset()

Reimplemented from CComponent.

◆ OnWindowResize()

void CImportantAlert::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ RenderImportantAlert()

void CImportantAlert::RenderImportantAlert ( )
private

◆ SecondsActive()

float CImportantAlert::SecondsActive ( ) const
private

◆ Sizeof()

int CImportantAlert::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_Active

bool CImportantAlert::m_Active = false
private

◆ m_ActiveSince

float CImportantAlert::m_ActiveSince
private

◆ m_aMessageText

char CImportantAlert::m_aMessageText[1024]
private

◆ m_aTitleText

char CImportantAlert::m_aTitleText[128]
private

◆ m_CloseHintTextContainerIndex

STextContainerIndex CImportantAlert::m_CloseHintTextContainerIndex
private

◆ m_FadeOutSince

float CImportantAlert::m_FadeOutSince
private

◆ m_MessageTextContainerIndex

STextContainerIndex CImportantAlert::m_MessageTextContainerIndex
private

◆ m_TitleTextContainerIndex

STextContainerIndex CImportantAlert::m_TitleTextContainerIndex
private

The documentation for this class was generated from the following files: