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

Public Attributes

int32_t m_nMinValue = 0
 The "empty" value. More...
 
int32_t m_nMaxValue = 100
 The "full" value. More...
 
int32_t m_nThresholdValue = 101
 The value >= m_nMinValue and <= m_nMaxValue for which the color of the progress changes. More...
 
bool m_bDangerBelow = false
 Whether the danger color is <= m_nThresholdValue. More...
 
IntSet m_oMarks
 At what values the view should show marks. More...
 
int32_t m_nVariableId = -1
 The variable id holding the value. More...
 

Member Data Documentation

◆ m_bDangerBelow

bool stmg::ProgressWidget::LocalInit::m_bDangerBelow = false

Whether the danger color is <= m_nThresholdValue.

Default: false.

◆ m_nMaxValue

int32_t stmg::ProgressWidget::LocalInit::m_nMaxValue = 100

The "full" value.

Must be >= m_nMinValue. Default: 100.

◆ m_nMinValue

int32_t stmg::ProgressWidget::LocalInit::m_nMinValue = 0

The "empty" value.

Default: 0.

◆ m_nThresholdValue

int32_t stmg::ProgressWidget::LocalInit::m_nThresholdValue = 101

The value >= m_nMinValue and <= m_nMaxValue for which the color of the progress changes.

If ouside ther is no color change (no danger color). Default: 101.

◆ m_nVariableId

int32_t stmg::ProgressWidget::LocalInit::m_nVariableId = -1

The variable id holding the value.

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

◆ m_oMarks

IntSet stmg::ProgressWidget::LocalInit::m_oMarks

At what values the view should show marks.

All values must be >= m_nMinValue and <= m_nMaxValue.