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

◆ BleedingIndicatorDropData()

void BleedingIndicatorDropData::BleedingIndicatorDropData ( ImageWidget image,
int severity )
inlineprotected

См. определение в файле BleedingDrop.c строка 39

40 {
41 m_Widget = image;
42 m_Severity = severity;
43 m_TimeTotal = 0;
44 m_IsRunning = false;
45
46#ifdef DIAG_DEVELOPER
47 if (DbgBleedingIndicationStaticInfo.m_DbgUseOverrideValues)
48 {
49 m_Duration = DbgBleedingIndicationStaticInfo.m_DbgDropDurationBase;
50 m_ProgressBreakpointTime = m_Duration * DbgBleedingIndicationStaticInfo.m_DbgDropProgressTreshold;
51 m_ProgressBreakpoint = DbgBleedingIndicationStaticInfo.m_DbgDropProgressTreshold;
52 m_StartSizeCoef = DbgBleedingIndicationStaticInfo.m_DbgDropStartSize;
53 m_EndSizeCoef = DbgBleedingIndicationStaticInfo.m_DbgDropEndSize;
54 m_RandomSizeMin = DbgBleedingIndicationStaticInfo.m_DbgDropSizeVariationMin;
55 m_RandomSizeMax = DbgBleedingIndicationStaticInfo.m_DbgDropSizeVariationMax;
56 m_ScatterPx = DbgBleedingIndicationStaticInfo.m_DbgDropScatter;
57 m_SlideDistance = DbgBleedingIndicationStaticInfo.m_DbgDropSlideDistance;
58 }
59 else
60#endif
61 {
62 switch (m_Severity)
63 {
64 case BleedingIndicationConstants.INDICATOR_SEVERITY_LOW:
65 {
66 m_Duration = BleedingIndicationConstants.DROP_DURATION_LOW;
67 m_StartSizeCoef = BleedingIndicationConstants.DROP_SIZE_START_LOW;
68 m_EndSizeCoef = BleedingIndicationConstants.DROP_SIZE_END_LOW;
69 m_RandomSizeMin = BleedingIndicationConstants.DROP_SIZE_VARIATION_MIN_LOW;
70 m_RandomSizeMax = BleedingIndicationConstants.DROP_SIZE_VARIATION_MAX_LOW;
71 m_ScatterPx = BleedingIndicationConstants.DROP_SCATTER_LOW;
72 m_SlideDistance = BleedingIndicationConstants.DROP_SLIDE_DISTANCE_LOW;
73 break;
74 }
75 case BleedingIndicationConstants.INDICATOR_SEVERITY_MEDIUM:
76 {
77 m_Duration = BleedingIndicationConstants.DROP_DURATION_MEDIUM;
78 m_StartSizeCoef = BleedingIndicationConstants.DROP_SIZE_START_MEDIUM;
79 m_EndSizeCoef = BleedingIndicationConstants.DROP_SIZE_END_MEDIUM;
80 m_RandomSizeMin = BleedingIndicationConstants.DROP_SIZE_VARIATION_MIN_MEDIUM;
81 m_RandomSizeMax = BleedingIndicationConstants.DROP_SIZE_VARIATION_MAX_MEDIUM;
82 m_ScatterPx = BleedingIndicationConstants.DROP_SCATTER_MEDIUM;
83 m_SlideDistance = BleedingIndicationConstants.DROP_SLIDE_DISTANCE_MEDIUM;
84 break;
85 }
86 case BleedingIndicationConstants.INDICATOR_SEVERITY_HIGH:
87 {
88 m_Duration = BleedingIndicationConstants.DROP_DURATION_HIGH;
89 m_StartSizeCoef = BleedingIndicationConstants.DROP_SIZE_START_HIGH;
90 m_EndSizeCoef = BleedingIndicationConstants.DROP_SIZE_END_HIGH;
91 m_RandomSizeMin = BleedingIndicationConstants.DROP_SIZE_VARIATION_MIN_HIGH;
92 m_RandomSizeMax = BleedingIndicationConstants.DROP_SIZE_VARIATION_MAX_HIGH;
93 m_ScatterPx = BleedingIndicationConstants.DROP_SCATTER_HIGH;
94 m_SlideDistance = BleedingIndicationConstants.DROP_SLIDE_DISTANCE_HIGH;
95 break;
96 }
97 }
98
99 m_ProgressBreakpointTime = m_Duration * BleedingIndicationConstants.DROP_PROGRESS_THRESHOLD;
100 m_ProgressBreakpoint = BleedingIndicationConstants.DROP_PROGRESS_THRESHOLD;
101 }
103
104 m_SpeedCoef = 1.0; //TODO ??
105#ifdef DIAG_DEVELOPER
106 if (DbgBleedingIndicationStaticInfo.m_DbgUseOverrideValues)
107 {
108 m_ColorAlphaStart = DbgBleedingIndicationStaticInfo.m_DbgDropColorAlphaStart / 255;
109 m_ColorAlphaEnd = DbgBleedingIndicationStaticInfo.m_DbgDropColorAlphaEnd / 255;
110 }
111 else
112#endif
113 {
114 m_ColorAlphaStart = BleedingIndicationConstants.DROP_COLOR_ALPHA_START / 255;
115 m_ColorAlphaEnd = BleedingIndicationConstants.DROP_COLOR_ALPHA_END / 255;
116 }
120 }
float m_StartSizeCoef
Определения BleedingDrop.c:33
float m_ColorAlphaEnd
Определения BleedingDrop.c:16
void InitImageScale()
Определения BleedingDrop.c:126
float m_RandomSizeMin
Определения BleedingDrop.c:35
int m_ScreenSizeX
Определения BleedingDrop.c:30
ImageWidget m_Widget
Определения BleedingDrop.c:4
int m_Severity
Определения BleedingDrop.c:5
float m_RandomSizeMax
Определения BleedingDrop.c:36
float m_EndSizeCoef
Определения BleedingDrop.c:34
int m_ScreenSizeY
Определения BleedingDrop.c:31
float m_Duration
Определения BleedingDrop.c:10
int m_ScatterPx
Определения BleedingDrop.c:12
bool m_IsRunning
Определения BleedingDrop.c:28
float m_ColorAlphaStart
Определения BleedingDrop.c:15
float m_TimeTotal
Определения BleedingDrop.c:6
float m_ProgressFadingDuration
Определения BleedingDrop.c:8
float m_ProgressBreakpointTime
Определения BleedingDrop.c:7
float m_ProgressBreakpoint
Определения BleedingDrop.c:9
float m_SpeedCoef
Определения BleedingDrop.c:11
void AdjustColorSaturation()
Определения BleedingDrop.c:199
float m_SlideDistance
Определения BleedingDrop.c:13
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().