4 float m_DimBrigthnessMin = 0.1;
5 float m_DimBrigthnessMax = 1;
6 float m_DimSpeedMin = 0.1;
7 float m_DimSpeedMax = 1;
8 float m_DimBrigthnessDurationMin = 0.1;
9 float m_DimBrigthnessDurationMax = 1;
10 float m_BrightenSpeedMin = 0.1;
11 float m_BrightenSpeedMax = 1;
12 float m_DimBrigthnessPauseMin = 1;
13 float m_DimBrigthnessPauseMax = 4;
17 int m_PatternRepeatCount = -1;
18 int m_CurrentPatternID;
28 void SetRandomBrigthnessLimits(
float min,
float max)
30 min =
Math.Clamp(min, 0, 100);
31 max =
Math.Clamp(max, 0, 100);
33 m_DimBrigthnessMin = min * 0.01;
34 m_DimBrigthnessMax = max * 0.01;
38 void SetRandomDimSpeedLimits(
float min,
float max)
40 min =
Math.Clamp(min, 0.01, 10);
41 max =
Math.Clamp(max, 0.01, 10);
48 void SetRandomDurationLimits(
float min,
float max)
50 min =
Math.Clamp(min, 0.01, 100);
51 max =
Math.Clamp(max, 0.01, 100);
53 m_DimBrigthnessDurationMin = min;
54 m_DimBrigthnessDurationMax = max;
58 void SetRandomBrightenSpeedLimits(
float min,
float max)
60 min =
Math.Clamp(min, 0.01, 10);
61 max =
Math.Clamp(max, 0.01, 10);
63 m_BrightenSpeedMin = min;
64 m_BrightenSpeedMax = max;
68 void SetRandomPauseDurationLimits(
float min,
float max)
70 min =
Math.Clamp(min, 0.01, 100);
71 max =
Math.Clamp(max, 0.01, 100);
73 m_DimBrigthnessPauseMin = min;
74 m_DimBrigthnessPauseMax = max;
80 int count = brightnessTarget.Count();
81 if ( count != dimSpeed.Count() || count != dimDuration.Count() || count != brightenSpeed.Count() || count != pause.Count())
89 m_BrightnessPatterns.Insert(brightnessTarget);
90 m_DimSpeedPatterns.Insert(dimSpeed);
91 m_DurationPatterns.Insert(dimDuration);
92 m_BrightenSpeedPatterns.Insert(brightenSpeed);
93 m_PausePatterns.Insert(pause);
99 void SetPatternQueueRepeat(
int val)
101 m_PatternRepeatCount = val;