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

Public Attributes

int32_t m_nVarId = -1
 The variable id. More...
 
OwnerType m_eVarOwnerType = OwnerType::GAME
 The variable owner type. More...
 
int32_t m_nDefaultImgId = -1
 The default image to be drawn as background or -1 if nothing should be drawn. More...
 
std::vector< ValueImgm_aValueImgs
 The value images. More...
 

Member Data Documentation

◆ m_aValueImgs

std::vector< ValueImg > stmg::VolatileWidget::LocalInit::m_aValueImgs

The value images.

Cannot be empty.

◆ m_eVarOwnerType

OwnerType stmg::VolatileWidget::LocalInit::m_eVarOwnerType = OwnerType::GAME

The variable owner type.

Team and mate must be defined accordingly. Default is OwnerType::GAME.

◆ m_nDefaultImgId

int32_t stmg::VolatileWidget::LocalInit::m_nDefaultImgId = -1

The default image to be drawn as background or -1 if nothing should be drawn.

Only applies if none of the images in m_aValueImgs apply. Index into Named::images(). Default is -1.

◆ m_nVarId

int32_t stmg::VolatileWidget::LocalInit::m_nVarId = -1

The variable id.

Must be >= 0 and exist for the widget's m_eVarOwnerType. Default: -1.