DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
PPEMatClassParameterColor.c File Reference

Data Structures

class  ColorValuesData
 
class  PPEMatClassParameterColor
 

Functions

void PPEMatClassParameterColor (int mat_idx, int parameter_idx, PPEClassBase parent)
 
override void InitDefaults ()
 
override void InitCuttent ()
 
override int GetParameterVarType ()
 
override void Update (float timeslice, out Param p_total, out bool setting_defaults, int order)
 
void PrepareLayerInfo (int layer, array< float > values, int operator)
 Fills relative values into arrays/member variables.
 
override void SetParameterValueDefault (inout Param p_total)
 

Variables

ColorValuesData VALUE_RED = 0
 
const int VALUE_GREEN = 1
 
const int VALUE_BLUE = 2
 
const int VALUE_ALPHA = 3
 
const int VALUES_COUNT = 4
 
protected PPETemplateDefColor m_Color
 
protected ref map< int, ref ColorValuesDatam_LayerInfo
 
float m_ColorDefaults [4]
 

Function Documentation

◆ GetParameterVarType()

override int GetParameterVarType ( )

◆ InitCuttent()

override void InitCuttent ( )

References m_ColorDefaults.

◆ InitDefaults()

override void InitDefaults ( )

References m_Color, and m_ColorDefaults.

◆ PPEMatClassParameterColor()

void PPEMatClassParameterColor ( int  mat_idx,
int  parameter_idx,
PPEClassBase  parent 
)

References m_LayerInfo.

◆ PrepareLayerInfo()

void PrepareLayerInfo ( int  layer,
array< float values,
int  operator 
)

Fills relative values into arrays/member variables.

References m_LayerInfo, ColorValuesData::SetOperator(), and ColorValuesData::SetValues().

Referenced by Update().

◆ SetParameterValueDefault()

override void SetParameterValueDefault ( inout Param  p_total)

References m_ColorDefaults.

Referenced by Update().

◆ Update()

Variable Documentation

◆ m_Color

protected PPETemplateDefColor m_Color

Referenced by InitDefaults().

◆ m_ColorDefaults

◆ m_LayerInfo

◆ VALUE_ALPHA

const int VALUE_ALPHA = 3

Referenced by Update().

◆ VALUE_BLUE

const int VALUE_BLUE = 2

Referenced by Update().

◆ VALUE_GREEN

const int VALUE_GREEN = 1

Referenced by Update().

◆ VALUE_RED

ColorValuesData VALUE_RED = 0

Referenced by Update().

◆ VALUES_COUNT

const int VALUES_COUNT = 4