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

#include <prompt.h>

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

Public Member Functions

void OnInit (CEditor *pEditor) override
bool OnInput (const IInput::CEvent &Event) override
void OnRender (CUIRect _) override
bool IsActive ()
void SetActive ()
void SetInactive ()
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 Attributes

bool m_ResetFilterResults = true
CQuickActionm_pLastAction = nullptr
int m_PromptSelectedIndex = -1
std::vector< CQuickAction * > m_vpFilteredPromptList
std::vector< CQuickAction * > m_vQuickActions
CLineInputBuffered< 512 > m_PromptInput

Member Function Documentation

◆ IsActive()

bool CPrompt::IsActive ( )

◆ OnInit()

void CPrompt::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 CPrompt::OnInput ( const IInput::CEvent & Event)
overridevirtual

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

Reimplemented from CEditorComponent.

◆ OnRender()

void CPrompt::OnRender ( CUIRect _)
overridevirtual

Reimplemented from CEditorComponent.

◆ SetActive()

void CPrompt::SetActive ( )

◆ SetInactive()

void CPrompt::SetInactive ( )

Member Data Documentation

◆ m_pLastAction

CQuickAction* CPrompt::m_pLastAction = nullptr
private

◆ m_PromptInput

CLineInputBuffered<512> CPrompt::m_PromptInput
private

◆ m_PromptSelectedIndex

int CPrompt::m_PromptSelectedIndex = -1
private

◆ m_ResetFilterResults

bool CPrompt::m_ResetFilterResults = true
private

◆ m_vpFilteredPromptList

std::vector<CQuickAction *> CPrompt::m_vpFilteredPromptList
private

◆ m_vQuickActions

std::vector<CQuickAction *> CPrompt::m_vQuickActions
private

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