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

#include <font_typer.h>

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

Public Member Functions

void OnRender (CUIRect View) override
bool OnInput (const IInput::CEvent &Event) override
void OnInit (CEditor *pEditor) override
bool IsActive () const
Public Member Functions inherited from CEditorComponent
virtual void OnReset ()
virtual void OnMapLoad ()
virtual void OnUpdate ()
void InitSubComponents ()
void RegisterSubComponent (CEditorComponent &Component)
Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
CEditorEditor ()
const CEditorEditor () const
IInputInput ()
const IInputInput () const
IClientClient ()
const IClientClient () const
CConfigConfig ()
const CConfigConfig () const
IEngineEngine ()
const IEngineEngine () const
IGraphicsGraphics ()
const IGraphicsGraphics () const
ISoundSound ()
const ISoundSound () const
ITextRenderTextRender ()
const ITextRenderTextRender () const
IStorageStorage ()
const IStorageStorage () const
CUiUi ()
const CUiUi () const
CRenderMapRenderMap ()
const CRenderMapRenderMap () const

Private Types

enum  { LETTER_OFFSET = 1 , NUMBER_OFFSET = 54 }

Private Member Functions

void SetCursor ()
void TextModeOff ()
void TextModeOn ()
void SetTile (ivec2 Pos, unsigned char Index, const std::shared_ptr< CLayerTiles > &pLayer)

Private Attributes

ivec2 m_TextIndex = ivec2(0, 0)
int m_TextLineLen = 0
bool m_Active = false
std::chrono::nanoseconds m_CursorRenderTime
IGraphics::CTextureHandle m_CursorTextTexture
std::shared_ptr< CLayerm_pLastLayer
CUi::SConfirmPopupContext m_ConfirmActivatePopupContext
int m_TilesPlacedSinceActivate = 0

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
LETTER_OFFSET 
NUMBER_OFFSET 

Member Function Documentation

◆ IsActive()

bool CFontTyper::IsActive ( ) const
inline

◆ OnInit()

void CFontTyper::OnInit ( CEditor * pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implementation also resets the component.

Reimplemented from CEditorComponent.

◆ OnInput()

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

Gets called before OnRender. Should return true if the event was consumed.

Reimplemented from CEditorComponent.

◆ OnRender()

void CFontTyper::OnRender ( CUIRect View)
overridevirtual

Reimplemented from CEditorComponent.

◆ SetCursor()

void CFontTyper::SetCursor ( )
private

◆ SetTile()

void CFontTyper::SetTile ( ivec2 Pos,
unsigned char Index,
const std::shared_ptr< CLayerTiles > & pLayer )
private

◆ TextModeOff()

void CFontTyper::TextModeOff ( )
private

◆ TextModeOn()

void CFontTyper::TextModeOn ( )
private

Member Data Documentation

◆ m_Active

bool CFontTyper::m_Active = false
private

◆ m_ConfirmActivatePopupContext

CUi::SConfirmPopupContext CFontTyper::m_ConfirmActivatePopupContext
private

◆ m_CursorRenderTime

std::chrono::nanoseconds CFontTyper::m_CursorRenderTime
private

◆ m_CursorTextTexture

IGraphics::CTextureHandle CFontTyper::m_CursorTextTexture
private

◆ m_pLastLayer

std::shared_ptr<CLayer> CFontTyper::m_pLastLayer
private

◆ m_TextIndex

ivec2 CFontTyper::m_TextIndex = ivec2(0, 0)
private

◆ m_TextLineLen

int CFontTyper::m_TextLineLen = 0
private

◆ m_TilesPlacedSinceActivate

int CFontTyper::m_TilesPlacedSinceActivate = 0
private

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