stmm-games-doc  0.32.0
Public Attributes | List of all members
stmg::ActionWidget::LocalInit Struct Reference
Inheritance diagram for stmg::ActionWidget::LocalInit:
Inheritance graph
[legend]

Public Attributes

ACTION_TYPE m_eActionType = ACTION_KEY_ACTION
 
int32_t m_nActionId = -1
 Depending on m_eActionType, the valid key action id, GameProxy::INTERRUPT_TYPE value or event's message (must be >= -1). More...
 
int32_t m_nValue = 0
 Only used if m_eActionType is ACTION_EVENT_MSG. More...
 
std::string m_sActionName
 If m_eActionType is ACTION_EVENT_MSG the non empty event id. More...
 
int32_t m_nImgId = -1
 The id of the shown image (icon) or -1 if not defined. More...
 
std::string m_sText
 The shown text. More...
 
double m_fTextSize = - 1.0
 The font height in tile heights. More...
 

Member Data Documentation

◆ m_eActionType

ACTION_TYPE stmg::ActionWidget::LocalInit::m_eActionType = ACTION_KEY_ACTION

◆ m_fTextSize

double stmg::ActionWidget::LocalInit::m_fTextSize = - 1.0

The font height in tile heights.

Non positive value means as big as it fits. Default is -1.0.

◆ m_nActionId

int32_t stmg::ActionWidget::LocalInit::m_nActionId = -1

Depending on m_eActionType, the valid key action id, GameProxy::INTERRUPT_TYPE value or event's message (must be >= -1).

◆ m_nImgId

int32_t stmg::ActionWidget::LocalInit::m_nImgId = -1

The id of the shown image (icon) or -1 if not defined.

◆ m_nValue

int32_t stmg::ActionWidget::LocalInit::m_nValue = 0

Only used if m_eActionType is ACTION_EVENT_MSG.

The event's value. Default is 0.

◆ m_sActionName

std::string stmg::ActionWidget::LocalInit::m_sActionName

If m_eActionType is ACTION_EVENT_MSG the non empty event id.

See Level::addEvent(const std::string& sId, unique_ptr<Event>).

◆ m_sText

std::string stmg::ActionWidget::LocalInit::m_sText

The shown text.

Can be empty.