DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс BleedingIndicatorDropData

Защищенные члены

void BleedingIndicatorDropData (ImageWidget image, int severity)
 
void ~BleedingIndicatorDropData ()
 
void InitImageScale ()
 
void ScatterPosition (vector pos)
 
void StartDrop ()
 
void StopDrop ()
 
void SetBasePosition (vector pos)
 
bool IsRunning ()
 
ImageWidget GetImage ()
 
void AdjustColorSaturation ()
 
void UpdateAlpha (float progress, float progressFade)
 
void UpdateTransform (float progress, float progressFade)
 scaling and transformation
 
void Update (float timeSlice)
 

Защищенные данные

ImageWidget m_Widget
 
int m_Severity
 
float m_TimeTotal
 
float m_ProgressBreakpointTime
 
float m_ProgressFadingDuration
 
float m_ProgressBreakpoint
 
float m_Duration
 
float m_SpeedCoef
 
int m_ScatterPx
 
float m_SlideDistance
 
float m_ColorAlphaStart
 
float m_ColorAlphaEnd
 
float m_ColorAlphaCurrent
 
float m_ImageBaseSizeX
 
float m_ImageBaseSizeY
 
float m_ImageStartingSizeX
 
float m_ImageStartingSizeY
 
float m_ImageEndSizeX
 
float m_ImageEndSizeY
 
float m_ImageMaxSizeX
 
float m_ImageMaxSizeY
 
float m_ImageBaseRotation
 
bool m_IsRunning
 
vector m_BasePosition
 
int m_ScreenSizeX
 
int m_ScreenSizeY
 
float m_PosX
 
float m_PosY
 
float m_StartSizeCoef
 
float m_EndSizeCoef
 
float m_RandomSizeMin
 
float m_RandomSizeMax
 

Подробное описание

Конструктор(ы)

◆ BleedingIndicatorDropData()

void BleedingIndicatorDropData ( ImageWidget image,
int severity )
inlineprotected
40 {
43 m_TimeTotal = 0;
44 m_IsRunning = false;
45
46#ifdef DIAG_DEVELOPER
48 {
58 }
59 else
60#endif
61 {
62 switch (m_Severity)
63 {
65 {
73 break;
74 }
76 {
84 break;
85 }
87 {
95 break;
96 }
97 }
98
101 }
103
104 m_SpeedCoef = 1.0; //TODO ??
105#ifdef DIAG_DEVELOPER
107 {
110 }
111 else
112#endif
113 {
116 }
120 }
Definition BleedingIndicationConstants.c:2
static const float DROP_SIZE_VARIATION_MAX_MEDIUM
Definition BleedingIndicationConstants.c:45
static const int DROP_SCATTER_LOW
Definition BleedingIndicationConstants.c:33
static const float DROP_SIZE_END_HIGH
Definition BleedingIndicationConstants.c:56
static const float DROP_SIZE_START_MEDIUM
Definition BleedingIndicationConstants.c:42
static const float DROP_SLIDE_DISTANCE_MEDIUM
Definition BleedingIndicationConstants.c:47
static const float DROP_SLIDE_DISTANCE_HIGH
Definition BleedingIndicationConstants.c:60
static const int INDICATOR_SEVERITY_MEDIUM
Definition BleedingIndicationConstants.c:6
static const float DROP_SIZE_END_MEDIUM
Definition BleedingIndicationConstants.c:43
static const float DROP_SIZE_END_LOW
Definition BleedingIndicationConstants.c:30
static const float DROP_SIZE_VARIATION_MAX_LOW
Definition BleedingIndicationConstants.c:32
static const float DROP_SIZE_VARIATION_MIN_MEDIUM
Definition BleedingIndicationConstants.c:44
static const float DROP_SIZE_VARIATION_MIN_LOW
Definition BleedingIndicationConstants.c:31
static const float DROP_DURATION_LOW
Definition BleedingIndicationConstants.c:26
static const float DROP_DURATION_HIGH
Definition BleedingIndicationConstants.c:52
static const float DROP_PROGRESS_THRESHOLD
Definition BleedingIndicationConstants.c:13
static const float DROP_SLIDE_DISTANCE_LOW
Definition BleedingIndicationConstants.c:34
static const float DROP_DURATION_MEDIUM
Definition BleedingIndicationConstants.c:39
static const int DROP_COLOR_ALPHA_START
Definition BleedingIndicationConstants.c:18
static const float DROP_SIZE_VARIATION_MAX_HIGH
Definition BleedingIndicationConstants.c:58
static const float DROP_SIZE_START_LOW
Definition BleedingIndicationConstants.c:29
static const int INDICATOR_SEVERITY_HIGH
Definition BleedingIndicationConstants.c:7
static const int DROP_SCATTER_HIGH
Definition BleedingIndicationConstants.c:59
static const float DROP_SIZE_START_HIGH
Definition BleedingIndicationConstants.c:55
static const int DROP_COLOR_ALPHA_END
Definition BleedingIndicationConstants.c:19
static const int DROP_SCATTER_MEDIUM
Definition BleedingIndicationConstants.c:46
static const int INDICATOR_SEVERITY_LOW
Definition BleedingIndicationConstants.c:5
static const float DROP_SIZE_VARIATION_MIN_HIGH
Definition BleedingIndicationConstants.c:57
float m_EndSizeCoef
Definition BleedingDrop.c:34
bool m_IsRunning
Definition BleedingDrop.c:28
float m_RandomSizeMax
Definition BleedingDrop.c:36
float m_StartSizeCoef
Definition BleedingDrop.c:33
float m_SpeedCoef
Definition BleedingDrop.c:11
float m_ProgressBreakpointTime
Definition BleedingDrop.c:7
int m_ScreenSizeX
Definition BleedingDrop.c:30
float m_TimeTotal
Definition BleedingDrop.c:6
void AdjustColorSaturation()
Definition BleedingDrop.c:199
float m_SlideDistance
Definition BleedingDrop.c:13
void InitImageScale()
Definition BleedingDrop.c:126
ImageWidget m_Widget
Definition BleedingDrop.c:4
int m_Severity
Definition BleedingDrop.c:5
float m_ProgressFadingDuration
Definition BleedingDrop.c:8
float m_RandomSizeMin
Definition BleedingDrop.c:35
float m_ColorAlphaEnd
Definition BleedingDrop.c:16
int m_ScatterPx
Definition BleedingDrop.c:12
float m_ProgressBreakpoint
Definition BleedingDrop.c:9
int m_ScreenSizeY
Definition BleedingDrop.c:31
float m_ColorAlphaStart
Definition BleedingDrop.c:15
float m_Duration
Definition BleedingDrop.c:10
static info (non-constants)
Definition BleedingIndicationStaticInfo.c:3
static float m_DbgDropStartSize
Definition BleedingIndicationStaticInfo.c:12
static float m_DbgDropSlideDistance
Definition BleedingIndicationStaticInfo.c:17
static int m_DbgDropScatter
Definition BleedingIndicationStaticInfo.c:16
static float m_DbgDropSizeVariationMax
Definition BleedingIndicationStaticInfo.c:15
static int m_DbgDropColorAlphaEnd
Definition BleedingIndicationStaticInfo.c:25
static float m_DbgDropSizeVariationMin
Definition BleedingIndicationStaticInfo.c:14
static int m_DbgDropColorAlphaStart
Definition BleedingIndicationStaticInfo.c:24
static float m_DbgDropEndSize
Definition BleedingIndicationStaticInfo.c:13
static float m_DbgDropProgressTreshold
Definition BleedingIndicationStaticInfo.c:11
static float m_DbgDropDurationBase
Definition BleedingIndicationStaticInfo.c:8
static bool m_DbgUseOverrideValues
Definition BleedingIndicationStaticInfo.c:5
Definition EnMath.c:7
Definition EntityAI.c:95
static proto float Max(float x, float y)
Returns bigger of two given values.
proto void GetScreenSize(out int x, out int y)

Перекрестные ссылки AdjustColorSaturation(), BleedingIndicationConstants::DROP_COLOR_ALPHA_END, BleedingIndicationConstants::DROP_COLOR_ALPHA_START, BleedingIndicationConstants::DROP_DURATION_HIGH, BleedingIndicationConstants::DROP_DURATION_LOW, BleedingIndicationConstants::DROP_DURATION_MEDIUM, BleedingIndicationConstants::DROP_PROGRESS_THRESHOLD, BleedingIndicationConstants::DROP_SCATTER_HIGH, BleedingIndicationConstants::DROP_SCATTER_LOW, BleedingIndicationConstants::DROP_SCATTER_MEDIUM, BleedingIndicationConstants::DROP_SIZE_END_HIGH, BleedingIndicationConstants::DROP_SIZE_END_LOW, BleedingIndicationConstants::DROP_SIZE_END_MEDIUM, BleedingIndicationConstants::DROP_SIZE_START_HIGH, BleedingIndicationConstants::DROP_SIZE_START_LOW, BleedingIndicationConstants::DROP_SIZE_START_MEDIUM, BleedingIndicationConstants::DROP_SIZE_VARIATION_MAX_HIGH, BleedingIndicationConstants::DROP_SIZE_VARIATION_MAX_LOW, BleedingIndicationConstants::DROP_SIZE_VARIATION_MAX_MEDIUM, BleedingIndicationConstants::DROP_SIZE_VARIATION_MIN_HIGH, BleedingIndicationConstants::DROP_SIZE_VARIATION_MIN_LOW, BleedingIndicationConstants::DROP_SIZE_VARIATION_MIN_MEDIUM, BleedingIndicationConstants::DROP_SLIDE_DISTANCE_HIGH, BleedingIndicationConstants::DROP_SLIDE_DISTANCE_LOW, BleedingIndicationConstants::DROP_SLIDE_DISTANCE_MEDIUM, GetScreenSize(), BleedingIndicationConstants::INDICATOR_SEVERITY_HIGH, BleedingIndicationConstants::INDICATOR_SEVERITY_LOW, BleedingIndicationConstants::INDICATOR_SEVERITY_MEDIUM, InitImageScale(), m_ColorAlphaEnd, m_ColorAlphaStart, DbgBleedingIndicationStaticInfo::m_DbgDropColorAlphaEnd, DbgBleedingIndicationStaticInfo::m_DbgDropColorAlphaStart, DbgBleedingIndicationStaticInfo::m_DbgDropDurationBase, DbgBleedingIndicationStaticInfo::m_DbgDropEndSize, DbgBleedingIndicationStaticInfo::m_DbgDropProgressTreshold, DbgBleedingIndicationStaticInfo::m_DbgDropScatter, DbgBleedingIndicationStaticInfo::m_DbgDropSizeVariationMax, DbgBleedingIndicationStaticInfo::m_DbgDropSizeVariationMin, DbgBleedingIndicationStaticInfo::m_DbgDropSlideDistance, DbgBleedingIndicationStaticInfo::m_DbgDropStartSize, DbgBleedingIndicationStaticInfo::m_DbgUseOverrideValues, m_Duration, m_EndSizeCoef, m_IsRunning, m_ProgressBreakpoint, m_ProgressBreakpointTime, m_ProgressFadingDuration, m_RandomSizeMax, m_RandomSizeMin, m_ScatterPx, m_ScreenSizeX, m_ScreenSizeY, m_Severity, m_SlideDistance, m_SpeedCoef, m_StartSizeCoef, m_TimeTotal, m_Widget и Math::Max().

◆ ~BleedingIndicatorDropData()

void ~BleedingIndicatorDropData ( )
inlineprotected
123 {
124 }

Методы

◆ AdjustColorSaturation()

void AdjustColorSaturation ( )
inlineprotected
200 {
201 //color adjustment
206#ifdef DIAG_DEVELOPER
208 {
213 }
214#endif
215
216 //saturation adjustment
217#ifdef DIAG_DEVELOPER
219 {
220#endif
222 float saturationProgress = Param1<float>.Cast(par).param1;
225 float lowest_channel = Math.Min(Math.Min(r,g),b);
229#ifdef DIAG_DEVELOPER
230 }
231#endif
232
233 int color = ARGB(0x00,r,g,b);
234 m_Widget.SetColor(color);
235 }
static const int DROP_COLOR_RED
Definition BleedingIndicationConstants.c:15
static const float DROP_COLOR_DESATURATIONEND
Definition BleedingIndicationConstants.c:14
static const int DROP_COLOR_BLUE
Definition BleedingIndicationConstants.c:17
static const int DROP_COLOR_GREEN
Definition BleedingIndicationConstants.c:16
static int m_DbgDropColorRed
Definition BleedingIndicationStaticInfo.c:21
static int m_DbgDropColorGreen
Definition BleedingIndicationStaticInfo.c:22
static bool m_DbgDropDesaturate
Definition BleedingIndicationStaticInfo.c:19
static float m_DbgDesaturationEnd
Definition BleedingIndicationStaticInfo.c:20
static int m_DbgDropColorBlue
Definition BleedingIndicationStaticInfo.c:23
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Definition Easing.c:3
static float EaseOutSine(float t)
Definition Easing.c:9
Glow - PostProcessEffectType.Glow.
Definition PPEGlow.c:8
static const int PARAM_SATURATION
Definition PPEGlow.c:31
Static component of PPE manager, used to hold the instance.
Definition PPEManager.c:3
static PPEManager GetPPEManager()
Returns the manager instance singleton.
Definition PPEManager.c:27
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
PostProcessEffectType
Post-process effect type.
Definition EnWorld.c:72
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
int ARGB(int a, int r, int g, int b)
Definition proto.c:322

Перекрестные ссылки ARGB(), BleedingIndicationConstants::DROP_COLOR_BLUE, BleedingIndicationConstants::DROP_COLOR_DESATURATIONEND, BleedingIndicationConstants::DROP_COLOR_GREEN, BleedingIndicationConstants::DROP_COLOR_RED, Easing::EaseOutSine(), PPEManagerStatic::GetPPEManager(), Math::Lerp(), DbgBleedingIndicationStaticInfo::m_DbgDesaturationEnd, DbgBleedingIndicationStaticInfo::m_DbgDropColorBlue, DbgBleedingIndicationStaticInfo::m_DbgDropColorGreen, DbgBleedingIndicationStaticInfo::m_DbgDropColorRed, DbgBleedingIndicationStaticInfo::m_DbgDropDesaturate, DbgBleedingIndicationStaticInfo::m_DbgUseOverrideValues, m_Widget, Math::Min() и PPEGlow::PARAM_SATURATION.

Используется в BleedingIndicatorDropData().

◆ GetImage()

ImageWidget GetImage ( )
inlineprotected
195 {
196 return m_Widget;
197 }

Перекрестные ссылки m_Widget.

◆ InitImageScale()

void InitImageScale ( )
inlineprotected
127 {
130
135 }
float m_ImageStartingSizeY
Definition BleedingDrop.c:22
float m_ImageEndSizeX
Definition BleedingDrop.c:23
float m_ImageStartingSizeX
Definition BleedingDrop.c:21
float m_ImageBaseSizeY
Definition BleedingDrop.c:20
float m_ImageBaseSizeX
Definition BleedingDrop.c:19
float m_ImageEndSizeY
Definition BleedingDrop.c:24
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

Перекрестные ссылки m_EndSizeCoef, m_ImageBaseSizeX, m_ImageBaseSizeY, m_ImageEndSizeX, m_ImageEndSizeY, m_ImageStartingSizeX, m_ImageStartingSizeY, m_RandomSizeMax, m_RandomSizeMin, m_StartSizeCoef, m_Widget и Math::RandomFloatInclusive().

Используется в BleedingIndicatorDropData().

◆ IsRunning()

bool IsRunning ( )
inlineprotected
190 {
191 return m_IsRunning;
192 }

Перекрестные ссылки m_IsRunning.

◆ ScatterPosition()

void ScatterPosition ( vector pos)
inlineprotected
138 {
139#ifdef DIAG_DEVELOPER
141 {
143 }
144#endif
147 m_PosX = pos[0];
149
150 m_PosY = pos[1];
152 }
float m_PosY
Definition BleedingDrop.c:32
float m_PosX
Definition BleedingDrop.c:32
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static const float PI2
Definition EnMath.c:13
static proto float Sin(float angle)
Returns sinus of angle in radians.

Перекрестные ссылки Math::Cos(), DbgBleedingIndicationStaticInfo::m_DbgDropScatter, DbgBleedingIndicationStaticInfo::m_DbgUseOverrideValues, m_PosX, m_PosY, m_ScatterPx, Math::PI2, Math::RandomFloatInclusive() и Math::Sin().

Используется в StartDrop().

◆ SetBasePosition()

void SetBasePosition ( vector pos)
inlineprotected
183 {
184 m_BasePosition = pos;
187 }
vector m_BasePosition
Definition BleedingDrop.c:29

Перекрестные ссылки m_BasePosition, m_ScreenSizeX и m_ScreenSizeY.

◆ StartDrop()

void StartDrop ( )
inlineprotected
155 {
156 m_TimeTotal = 0;
157
159 m_Widget.SetPos(m_PosX,m_PosY);
160#ifdef DIAG_DEVELOPER
162 {
163 m_Widget.SetRotation(0,0,0);
164 }
165 else
166#endif
167 {
168 m_Widget.SetRotation(0,0,Math.RandomFloatInclusive(0.0,360.0));
169 }
170
171 m_Widget.Show(true);
172 m_IsRunning = true;
173 }
void ScatterPosition(vector pos)
Definition BleedingDrop.c:137
static bool m_DbgDropRotationRandom
Definition BleedingIndicationStaticInfo.c:6

Перекрестные ссылки m_BasePosition, DbgBleedingIndicationStaticInfo::m_DbgDropRotationRandom, DbgBleedingIndicationStaticInfo::m_DbgUseOverrideValues, m_IsRunning, m_PosX, m_PosY, m_TimeTotal, m_Widget, Math::RandomFloatInclusive() и ScatterPosition().

◆ StopDrop()

void StopDrop ( )
inlineprotected
176 {
177 m_IsRunning = false;
178 m_Widget.SetSize(m_ImageBaseSizeX,m_ImageBaseSizeY); //resets image size
179 m_Widget.Show(false);
180 }

Перекрестные ссылки m_ImageBaseSizeX, m_ImageBaseSizeY, m_IsRunning и m_Widget.

Используется в Update().

◆ Update()

void Update ( float timeSlice)
inlineprotected
272 {
273 if (m_IsRunning)
274 {
275 float progress, progressFade;
278
279 //alpha
281 //transform + scaling
283
285
286 if (m_TimeTotal >= m_Duration)
287 {
288 //deletes this;
289 StopDrop();
290 }
291 }
292 }
void UpdateTransform(float progress, float progressFade)
scaling and transformation
Definition BleedingDrop.c:252
void UpdateAlpha(float progress, float progressFade)
Definition BleedingDrop.c:237
void StopDrop()
Definition BleedingDrop.c:175

Перекрестные ссылки m_Duration, m_IsRunning, m_ProgressBreakpointTime, m_ProgressFadingDuration, m_SpeedCoef, m_TimeTotal, StopDrop(), UpdateAlpha() и UpdateTransform().

◆ UpdateAlpha()

void UpdateAlpha ( float progress,
float progressFade )
inlineprotected
238 {
240 {
242 }
243 else
244 {
246 }
247
249 }
float m_ColorAlphaCurrent
Definition BleedingDrop.c:17

Перекрестные ссылки Math::Lerp(), m_ColorAlphaCurrent, m_ColorAlphaEnd, m_ColorAlphaStart, m_ProgressBreakpoint и m_Widget.

Используется в Update().

◆ UpdateTransform()

void UpdateTransform ( float progress,
float progressFade )
inlineprotected

scaling and transformation

253 {
257 m_Widget.SetSize(sizeX,sizeY);
258
260 {
261 //do stuff before breakpoint
262 }
263 else
264 {
265 //do stuff after breakpoint
267 m_Widget.SetPos(m_PosX,posYTemp);
268 }
269 }
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

Перекрестные ссылки Math::Clamp(), Math::InverseLerp(), Math::Lerp(), m_ImageEndSizeX, m_ImageEndSizeY, m_ImageStartingSizeX, m_ImageStartingSizeY, m_PosX, m_PosY, m_ProgressBreakpoint, m_SlideDistance и m_Widget.

Используется в Update().

Поля

◆ m_BasePosition

vector m_BasePosition
protected

Используется в SetBasePosition() и StartDrop().

◆ m_ColorAlphaCurrent

float m_ColorAlphaCurrent
protected

Используется в UpdateAlpha().

◆ m_ColorAlphaEnd

float m_ColorAlphaEnd
protected

Используется в BleedingIndicatorDropData() и UpdateAlpha().

◆ m_ColorAlphaStart

float m_ColorAlphaStart
protected

Используется в BleedingIndicatorDropData() и UpdateAlpha().

◆ m_Duration

float m_Duration
protected

Используется в BleedingIndicatorDropData() и Update().

◆ m_EndSizeCoef

float m_EndSizeCoef
protected

Используется в BleedingIndicatorDropData() и InitImageScale().

◆ m_ImageBaseRotation

float m_ImageBaseRotation
protected

◆ m_ImageBaseSizeX

float m_ImageBaseSizeX
protected

Используется в InitImageScale() и StopDrop().

◆ m_ImageBaseSizeY

float m_ImageBaseSizeY
protected

Используется в InitImageScale() и StopDrop().

◆ m_ImageEndSizeX

float m_ImageEndSizeX
protected

Используется в InitImageScale() и UpdateTransform().

◆ m_ImageEndSizeY

float m_ImageEndSizeY
protected

Используется в InitImageScale() и UpdateTransform().

◆ m_ImageMaxSizeX

float m_ImageMaxSizeX
protected

◆ m_ImageMaxSizeY

float m_ImageMaxSizeY
protected

◆ m_ImageStartingSizeX

float m_ImageStartingSizeX
protected

Используется в InitImageScale() и UpdateTransform().

◆ m_ImageStartingSizeY

float m_ImageStartingSizeY
protected

Используется в InitImageScale() и UpdateTransform().

◆ m_IsRunning

bool m_IsRunning
protected

◆ m_PosX

float m_PosX
protected

Используется в ScatterPosition(), StartDrop() и UpdateTransform().

◆ m_PosY

float m_PosY
protected

Используется в ScatterPosition(), StartDrop() и UpdateTransform().

◆ m_ProgressBreakpoint

float m_ProgressBreakpoint
protected

◆ m_ProgressBreakpointTime

float m_ProgressBreakpointTime
protected

Используется в BleedingIndicatorDropData() и Update().

◆ m_ProgressFadingDuration

float m_ProgressFadingDuration
protected

Используется в BleedingIndicatorDropData() и Update().

◆ m_RandomSizeMax

float m_RandomSizeMax
protected

Используется в BleedingIndicatorDropData() и InitImageScale().

◆ m_RandomSizeMin

float m_RandomSizeMin
protected

Используется в BleedingIndicatorDropData() и InitImageScale().

◆ m_ScatterPx

int m_ScatterPx
protected

Используется в BleedingIndicatorDropData() и ScatterPosition().

◆ m_ScreenSizeX

int m_ScreenSizeX
protected

Используется в BleedingIndicatorDropData() и SetBasePosition().

◆ m_ScreenSizeY

int m_ScreenSizeY
protected

Используется в BleedingIndicatorDropData() и SetBasePosition().

◆ m_Severity

int m_Severity
protected

Используется в BleedingIndicatorDropData().

◆ m_SlideDistance

float m_SlideDistance
protected

Используется в BleedingIndicatorDropData() и UpdateTransform().

◆ m_SpeedCoef

float m_SpeedCoef
protected

Используется в BleedingIndicatorDropData() и Update().

◆ m_StartSizeCoef

float m_StartSizeCoef
protected

Используется в BleedingIndicatorDropData() и InitImageScale().

◆ m_TimeTotal

float m_TimeTotal
protected

Используется в BleedingIndicatorDropData(), StartDrop() и Update().

◆ m_Widget


Объявления и описания членов класса находятся в файле: