DDraceNetwork Docs
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 bool OnInput (const IInput::CEvent &Event) override
 
void InitSubComponents ()
 
void RegisterSubComponent (CEditorComponent &Component)
 
- Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
 
virtual void OnInit (CEditor *pEditor)
 
virtual void OnUpdate ()
 
virtual bool OnInput (const IInput::CEvent &Event)
 
virtual void OnRender (CUIRect View)
 
virtual void OnHot ()
 
virtual void OnActive ()
 
virtual void OnReset ()
 
virtual void OnMapLoad ()
 
bool IsHot ()
 
void SetHot ()
 
void UnsetHot ()
 
bool IsActive ()
 
void SetActive ()
 
void SetInactive ()
 
CEditorEditor ()
 
const CEditorEditor () const
 
IInputInput ()
 
IClientClient ()
 
CConfigConfig ()
 
IConsoleConsole ()
 
IEngineEngine ()
 
IGraphicsGraphics ()
 
ISoundSound ()
 
ITextRenderTextRender ()
 
IStorageStorage ()
 
CUiUi ()
 
CRenderToolsRenderTools ()
 

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

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

Reimplemented from CEditorObject.

◆ OnInput()

bool CPrompt::OnInput ( const IInput::CEvent Event)
overridevirtual

Gets called before OnRender. Should return true if the event was consumed. By default the events are forwarded to the subcomponents.

Reimplemented from CEditorComponent.

◆ OnRender()

void CPrompt::OnRender ( CUIRect  _)
overridevirtual

Reimplemented from CEditorObject.

◆ 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: