DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ScriptConsoleWeatherTab
+ Граф наследования:ScriptConsoleWeatherTab:

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

void ~ScriptConsoleWeatherTab ()
 
void ScriptConsoleWeatherTab (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void ResetValues ()
 
void InitValues (bool forceCurrent=false)
 
void PasteValues (string clipboard)
 
string CopyValues ()
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UpdateSliderValues ()
 
void UpdateEditboxValues ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
DebugWeatherRPCData GetRPCDataNormal ()
 
DebugWeatherRPCData GetRPCDataImmediate ()
 
void SendRPC (DebugWeatherRPCData data)
 
void InvokeSendRPC ()
 
override void Update (float timeslice)
 

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

ref Timer m_RPCTimer = new Timer()
 
const int INTERPOLATION_MAX = 920
 
const int DURATION_MAX = 920
 
SliderWidget m_FogValueSetSlider
 
SliderWidget m_FogValueGetSlider
 
TextWidget m_FogValueSetText
 
SliderWidget m_FogInterpolationTimeSlider
 
SliderWidget m_FogDurationTimeSlider
 
TextWidget m_FogInterpolationMaxText
 
TextWidget m_FogDurationMaxText
 
EditBoxWidget m_FogValueEditbox
 
EditBoxWidget m_FogInterpolationEditbox
 
EditBoxWidget m_FogDurationEditbox
 
SliderWidget m_OvercastValueSetSlider
 
SliderWidget m_OvercastValueGetSlider
 
TextWidget m_OvercastValueSetText
 
SliderWidget m_OvercastInterpolationTimeSlider
 
SliderWidget m_OvercastDurationTimeSlider
 
TextWidget m_OvercastInterpolationMaxText
 
TextWidget m_OvercastDurationMaxText
 
EditBoxWidget m_OvercastValueEditbox
 
EditBoxWidget m_OvercastInterpolationEditbox
 
EditBoxWidget m_OvercastDurationEditbox
 
SliderWidget m_RainValueSetSlider
 
SliderWidget m_RainValueGetSlider
 
TextWidget m_RainValueSetText
 
SliderWidget m_RainInterpolationTimeSlider
 
SliderWidget m_RainDurationTimeSlider
 
TextWidget m_RainInterpolationMaxText
 
TextWidget m_RainDurationMaxText
 
EditBoxWidget m_RainValueEditbox
 
EditBoxWidget m_RainInterpolationEditbox
 
EditBoxWidget m_RainDurationEditbox
 
SliderWidget m_SnowfallValueSetSlider
 
SliderWidget m_SnowfallValueGetSlider
 
TextWidget m_SnowfallValueSetText
 
SliderWidget m_SnowfallInterpolationTimeSlider
 
SliderWidget m_SnowfallDurationTimeSlider
 
TextWidget m_SnowfallInterpolationMaxText
 
TextWidget m_SnowfallDurationMaxText
 
EditBoxWidget m_SnowfallValueEditbox
 
EditBoxWidget m_SnowfallInterpolationEditbox
 
EditBoxWidget m_SnowfallDurationEditbox
 
ButtonWidget m_ResetButton
 
ButtonWidget m_UpdateButton
 
ButtonWidget m_ApplyButton
 
ButtonWidget m_CopyButton
 
ButtonWidget m_PasteButton
 

Статические защищенные данные

static float m_FogValue = -1
 
static float m_FogInterpolationTimeValue
 
static float m_FogDurationTimeValue = -1
 
static float m_OvercastValue = -1
 
static float m_OvercastInterpolationTimeValue
 
static float m_OvercastDurationTimeValue = -1
 
static float m_RainValue = -1
 
static float m_RainInterpolationTimeValue
 
static float m_RainDurationTimeValue = -1
 
static float m_SnowfallValue = -1
 
static float m_SnowfallInterpolationTimeValue
 
static float m_SnowfallDurationTimeValue = -1
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от ScriptConsoleTabBase
void ScriptConsoleTabBase (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void Init (int id)
 
int GetID ()
 
Widget GetRoot ()
 
bool IsSelected ()
 
void Select (bool select, ScriptConsoleTabBase selectedHandler)
 
void OnSelected ()
 
void Show (bool show, ScriptConsoleTabBase selectedHandler)
 
Widget GetButton ()
 
void Update (float timeslice)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
void AddItemToClipboard (TextListboxWidget text_listbox_widget)
 
- Закрытые данные унаследованные от ScriptConsoleTabBase
int m_Id
 
bool m_IsSelected
 
bool m_IsShiftDown
 
Widget m_ParentRoot
 
Widget m_Root
 
Widget m_Button
 
ScriptConsole m_ScriptConsole
 
ScriptConsoleTabBase m_Parent
 
PluginConfigDebugProfile m_ConfigDebugProfile
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 

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

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

◆ ~ScriptConsoleWeatherTab()

void ~ScriptConsoleWeatherTab ( )
inlineprotected
105 {
106 // FOG
107 m_FogValue = m_FogValueSetSlider.GetCurrent() / 100;
110
111 // OVERCAST
112 m_OvercastValue = m_OvercastValueSetSlider.GetCurrent() / 100;
115
116 // Rain
117 m_RainValue = m_RainValueSetSlider.GetCurrent() / 100;
120
121 // Snowfall
122 m_SnowfallValue = m_SnowfallValueSetSlider.GetCurrent() / 100;
125 }
static float m_OvercastInterpolationTimeValue
Definition ScriptConsoleWeatherTab.c:47
static float m_RainInterpolationTimeValue
Definition ScriptConsoleWeatherTab.c:69
SliderWidget m_RainValueSetSlider
Definition ScriptConsoleWeatherTab.c:52
static float m_RainDurationTimeValue
Definition ScriptConsoleWeatherTab.c:70
static float m_SnowfallDurationTimeValue
Definition ScriptConsoleWeatherTab.c:91
SliderWidget m_RainDurationTimeSlider
Definition ScriptConsoleWeatherTab.c:58
SliderWidget m_FogValueSetSlider
Definition ScriptConsoleWeatherTab.c:8
SliderWidget m_SnowfallValueSetSlider
Definition ScriptConsoleWeatherTab.c:73
SliderWidget m_FogDurationTimeSlider
Definition ScriptConsoleWeatherTab.c:14
static float m_FogValue
Definition ScriptConsoleWeatherTab.c:24
SliderWidget m_OvercastInterpolationTimeSlider
Definition ScriptConsoleWeatherTab.c:35
static float m_RainValue
Definition ScriptConsoleWeatherTab.c:68
static float m_OvercastDurationTimeValue
Definition ScriptConsoleWeatherTab.c:48
SliderWidget m_SnowfallInterpolationTimeSlider
Definition ScriptConsoleWeatherTab.c:78
SliderWidget m_RainInterpolationTimeSlider
Definition ScriptConsoleWeatherTab.c:57
static float m_SnowfallInterpolationTimeValue
Definition ScriptConsoleWeatherTab.c:90
static float m_FogInterpolationTimeValue
Definition ScriptConsoleWeatherTab.c:25
SliderWidget m_SnowfallDurationTimeSlider
Definition ScriptConsoleWeatherTab.c:79
SliderWidget m_FogInterpolationTimeSlider
Definition ScriptConsoleWeatherTab.c:13
static float m_SnowfallValue
Definition ScriptConsoleWeatherTab.c:89
const int DURATION_MAX
Definition ScriptConsoleWeatherTab.c:5
SliderWidget m_OvercastValueSetSlider
Definition ScriptConsoleWeatherTab.c:30
static float m_OvercastValue
Definition ScriptConsoleWeatherTab.c:46
const int INTERPOLATION_MAX
Definition ScriptConsoleWeatherTab.c:4
static float m_FogDurationTimeValue
Definition ScriptConsoleWeatherTab.c:26
SliderWidget m_OvercastDurationTimeSlider
Definition ScriptConsoleWeatherTab.c:36

Перекрестные ссылки DURATION_MAX, INTERPOLATION_MAX, m_FogDurationTimeSlider, m_FogDurationTimeValue, m_FogInterpolationTimeSlider, m_FogInterpolationTimeValue, m_FogValue, m_FogValueSetSlider, m_OvercastDurationTimeSlider, m_OvercastDurationTimeValue, m_OvercastInterpolationTimeSlider, m_OvercastInterpolationTimeValue, m_OvercastValue, m_OvercastValueSetSlider, m_RainDurationTimeSlider, m_RainDurationTimeValue, m_RainInterpolationTimeSlider, m_RainInterpolationTimeValue, m_RainValue, m_RainValueSetSlider, m_SnowfallDurationTimeSlider, m_SnowfallDurationTimeValue, m_SnowfallInterpolationTimeSlider, m_SnowfallInterpolationTimeValue, m_SnowfallValue и m_SnowfallValueSetSlider.

◆ ScriptConsoleWeatherTab()

void ScriptConsoleWeatherTab ( Widget root,
ScriptConsole console,
Widget button,
ScriptConsoleTabBase parent = null )
inlineprotected
128 {
129 // FOG
130 m_FogValueSetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderFogValue"));
131 m_FogValueGetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderFogActualValue"));
132 m_FogValueSetText = TextWidget.Cast(root.FindAnyWidget("TextFogValueActual"));
133
134 m_FogInterpolationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderFogTarget"));
135 m_FogDurationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderFogDuration"));
136
137 m_FogInterpolationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxFogTarget"));
138 m_FogDurationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxFogDuration"));
139
140 m_FogValueEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxFogValue"));
141 m_FogInterpolationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxFogTarget"));
142 m_FogDurationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxFogDuration"));
143
144 // OVERCAST
145 m_OvercastValueSetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderOvercastValue"));
146 m_OvercastValueGetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderOvercastActualValue"));
147 m_OvercastValueSetText = TextWidget.Cast(root.FindAnyWidget("TextOvercastValueActual"));
148
149 m_OvercastInterpolationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderOvercastTarget"));
150 m_OvercastDurationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderOvercastDuration"));
151
152 m_OvercastInterpolationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxOvercastTarget"));
153 m_OvercastDurationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxOvercastDuration"));
154
155 m_OvercastValueEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxOvercastValue"));
156 m_OvercastInterpolationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxOvercastTarget"));
157 m_OvercastDurationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxOvercastDuration"));
158
159 // Rain
160 m_RainValueSetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderRainValue"));
161 m_RainValueGetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderRainActualValue"));
162 m_RainValueSetText = TextWidget.Cast(root.FindAnyWidget("TextRainValueActual"));
163
164 m_RainInterpolationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderRainTarget"));
165 m_RainDurationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderRainDuration"));
166
167 m_RainInterpolationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxRainTarget"));
168 m_RainDurationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxRainDuration"));
169
170 m_RainValueEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxRainValue"));
171 m_RainInterpolationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxRainTarget"));
172 m_RainDurationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxRainDuration"));
173
174 // Snowfall
175 m_SnowfallValueSetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderSnowfallValue"));
176 m_SnowfallValueGetSlider = SliderWidget.Cast(root.FindAnyWidget("SliderSnowfallActualValue"));
177 m_SnowfallValueSetText = TextWidget.Cast(root.FindAnyWidget("TextSnowfallValueActual"));
178
179 m_SnowfallInterpolationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderSnowfallTarget"));
180 m_SnowfallDurationTimeSlider = SliderWidget.Cast(root.FindAnyWidget("SliderSnowfallDuration"));
181
182 m_SnowfallInterpolationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxSnowfallTarget"));
183 m_SnowfallDurationMaxText = TextWidget.Cast(root.FindAnyWidget("TextMaxSnowfallDuration"));
184
185 m_SnowfallValueEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxSnowfallValue"));
186 m_SnowfallInterpolationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxSnowfallTarget"));
187 m_SnowfallDurationEditbox = EditBoxWidget.Cast(root.FindAnyWidget("EditBoxSnowfallDuration"));
188
189 //Other
190 m_ResetButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonReset"));
191 m_UpdateButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonUpdate"));
192 m_ApplyButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonApply"));
193
194 m_CopyButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonCopy"));
195 m_PasteButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonPaste"));
196
197
198 InitValues();
199 }
override void InitValues()
Definition PPERequestData.c:147
Definition EnWidgets.c:354
Definition EntityAI.c:95
SliderWidget m_SnowfallValueGetSlider
Definition ScriptConsoleWeatherTab.c:74
ButtonWidget m_CopyButton
Definition ScriptConsoleWeatherTab.c:99
EditBoxWidget m_FogDurationEditbox
Definition ScriptConsoleWeatherTab.c:22
SliderWidget m_OvercastValueGetSlider
Definition ScriptConsoleWeatherTab.c:31
EditBoxWidget m_SnowfallValueEditbox
Definition ScriptConsoleWeatherTab.c:85
TextWidget m_SnowfallInterpolationMaxText
Definition ScriptConsoleWeatherTab.c:82
EditBoxWidget m_FogValueEditbox
Definition ScriptConsoleWeatherTab.c:20
SliderWidget m_FogValueGetSlider
Definition ScriptConsoleWeatherTab.c:9
EditBoxWidget m_SnowfallInterpolationEditbox
Definition ScriptConsoleWeatherTab.c:86
EditBoxWidget m_OvercastDurationEditbox
Definition ScriptConsoleWeatherTab.c:44
EditBoxWidget m_FogInterpolationEditbox
Definition ScriptConsoleWeatherTab.c:21
ButtonWidget m_PasteButton
Definition ScriptConsoleWeatherTab.c:100
ButtonWidget m_ResetButton
Definition ScriptConsoleWeatherTab.c:95
TextWidget m_RainInterpolationMaxText
Definition ScriptConsoleWeatherTab.c:61
TextWidget m_SnowfallValueSetText
Definition ScriptConsoleWeatherTab.c:76
TextWidget m_SnowfallDurationMaxText
Definition ScriptConsoleWeatherTab.c:83
TextWidget m_OvercastInterpolationMaxText
Definition ScriptConsoleWeatherTab.c:39
SliderWidget m_RainValueGetSlider
Definition ScriptConsoleWeatherTab.c:53
TextWidget m_FogValueSetText
Definition ScriptConsoleWeatherTab.c:11
TextWidget m_FogInterpolationMaxText
Definition ScriptConsoleWeatherTab.c:17
TextWidget m_RainDurationMaxText
Definition ScriptConsoleWeatherTab.c:62
EditBoxWidget m_RainInterpolationEditbox
Definition ScriptConsoleWeatherTab.c:65
TextWidget m_OvercastDurationMaxText
Definition ScriptConsoleWeatherTab.c:40
EditBoxWidget m_OvercastValueEditbox
Definition ScriptConsoleWeatherTab.c:42
ButtonWidget m_ApplyButton
Definition ScriptConsoleWeatherTab.c:97
EditBoxWidget m_SnowfallDurationEditbox
Definition ScriptConsoleWeatherTab.c:87
TextWidget m_RainValueSetText
Definition ScriptConsoleWeatherTab.c:55
EditBoxWidget m_RainDurationEditbox
Definition ScriptConsoleWeatherTab.c:66
EditBoxWidget m_RainValueEditbox
Definition ScriptConsoleWeatherTab.c:64
TextWidget m_OvercastValueSetText
Definition ScriptConsoleWeatherTab.c:33
EditBoxWidget m_OvercastInterpolationEditbox
Definition ScriptConsoleWeatherTab.c:43
TextWidget m_FogDurationMaxText
Definition ScriptConsoleWeatherTab.c:18
ButtonWidget m_UpdateButton
Definition ScriptConsoleWeatherTab.c:96
Definition EnWidgets.c:220

Перекрестные ссылки InitValues(), m_ApplyButton, m_CopyButton, m_FogDurationEditbox, m_FogDurationMaxText, m_FogDurationTimeSlider, m_FogInterpolationEditbox, m_FogInterpolationMaxText, m_FogInterpolationTimeSlider, m_FogValueEditbox, m_FogValueGetSlider, m_FogValueSetSlider, m_FogValueSetText, m_OvercastDurationEditbox, m_OvercastDurationMaxText, m_OvercastDurationTimeSlider, m_OvercastInterpolationEditbox, m_OvercastInterpolationMaxText, m_OvercastInterpolationTimeSlider, m_OvercastValueEditbox, m_OvercastValueGetSlider, m_OvercastValueSetSlider, m_OvercastValueSetText, m_PasteButton, m_RainDurationEditbox, m_RainDurationMaxText, m_RainDurationTimeSlider, m_RainInterpolationEditbox, m_RainInterpolationMaxText, m_RainInterpolationTimeSlider, m_RainValueEditbox, m_RainValueGetSlider, m_RainValueSetSlider, m_RainValueSetText, m_ResetButton, m_SnowfallDurationEditbox, m_SnowfallDurationMaxText, m_SnowfallDurationTimeSlider, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationMaxText, m_SnowfallInterpolationTimeSlider, m_SnowfallValueEditbox, m_SnowfallValueGetSlider, m_SnowfallValueSetSlider, m_SnowfallValueSetText и m_UpdateButton.

Методы

◆ CopyValues()

string CopyValues ( )
inlineprotected
353 {
354 string output;
355
356 // FOG
357 output += m_FogValueEditbox.GetText();
358 output += " ";
360 output += " ";
361 output += m_FogDurationEditbox.GetText();
362 output += " ";
363 // OVERCAST
364 output += m_OvercastValueEditbox.GetText();
365 output += " ";
367 output += " ";
369 output += " ";
370 // RAIN
371 output += m_RainValueEditbox.GetText();
372 output += " ";
374 output += " ";
375 output += m_RainDurationEditbox.GetText();
376 // SNOWFALL
377 output += m_SnowfallValueEditbox.GetText();
378 output += " ";
380 output += " ";
382
383 return output;
384 }

Перекрестные ссылки m_FogDurationEditbox, m_FogInterpolationEditbox, m_FogValueEditbox, m_OvercastDurationEditbox, m_OvercastInterpolationEditbox, m_OvercastValueEditbox, m_RainDurationEditbox, m_RainInterpolationEditbox, m_RainValueEditbox, m_SnowfallDurationEditbox, m_SnowfallInterpolationEditbox и m_SnowfallValueEditbox.

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

◆ GetRPCDataImmediate()

DebugWeatherRPCData GetRPCDataImmediate ( )
inlineprotected
646 {
648 // FOG
649 data.m_FogValue = m_FogValueSetSlider.GetCurrent() / 100;
650 data.m_FogInterpolation = 0;
651 data.m_FogDuration = 960;
652
653 // Rain
654 data.m_RainValue = m_RainValueSetSlider.GetCurrent() / 100;
655 data.m_RainInterpolation = 0;
656 data.m_RainDuration = 960;
657
658 // OVERCAST
659 data.m_OvercastValue = m_OvercastValueSetSlider.GetCurrent() / 100;
660 data.m_OvercastInterpolation = 0;
661 data.m_OvercastDuration = 960;
662
663 // SNOWFALL
664 data.m_SnowfallValue = m_SnowfallValueSetSlider.GetCurrent() / 100;
665 data.m_SnowfallInterpolation =0;
666 data.m_SnowfallDuration = 960;
667
668 return data;
669 }
Definition DebugWeatherRPCData.c:2

Перекрестные ссылки m_FogValueSetSlider, m_OvercastValueSetSlider, m_RainValueSetSlider и m_SnowfallValueSetSlider.

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

◆ GetRPCDataNormal()

DebugWeatherRPCData GetRPCDataNormal ( )
inlineprotected
619 {
621 // FOG
622 data.m_FogValue = m_FogValueSetSlider.GetCurrent() / 100;
623 data.m_FogInterpolation = m_FogInterpolationTimeValue;
624 data.m_FogDuration = m_FogDurationTimeSlider.GetCurrent() / 100 * 960;
625
626 // Rain
627 data.m_RainValue = m_RainValueSetSlider.GetCurrent() / 100;
628 data.m_RainInterpolation = m_RainInterpolationTimeValue;
629 data.m_RainDuration = m_RainDurationTimeSlider.GetCurrent() / 100 * 960;
630
631 // OVERCAST
632 data.m_OvercastValue = m_OvercastValueSetSlider.GetCurrent() / 100;
633 data.m_OvercastInterpolation = m_OvercastInterpolationTimeValue;
634 data.m_OvercastDuration = m_OvercastDurationTimeSlider.GetCurrent() / 100 * 960;
635
636 // SNOWFALL
637 data.m_SnowfallValue = m_SnowfallValueSetSlider.GetCurrent() / 100;
638 data.m_SnowfallInterpolation = m_SnowfallInterpolationTimeValue;
639 data.m_SnowfallDuration = m_SnowfallDurationTimeSlider.GetCurrent() / 100 * 960;
640
641 return data;
642 }

Перекрестные ссылки m_FogDurationTimeSlider, m_FogInterpolationTimeValue, m_FogValueSetSlider, m_OvercastDurationTimeSlider, m_OvercastInterpolationTimeValue, m_OvercastValueSetSlider, m_RainDurationTimeSlider, m_RainInterpolationTimeValue, m_RainValueSetSlider, m_SnowfallDurationTimeSlider, m_SnowfallInterpolationTimeValue и m_SnowfallValueSetSlider.

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

◆ InitValues()

void InitValues ( bool forceCurrent = false)
inlineprotected
247 {
248
249 // FOG
250 float fogVal = m_FogValue;
251 if (forceCurrent || m_FogValue == -1)
252 {
253 fogVal = GetGame().GetWeather().GetFog().GetActual();
254 }
255 m_FogValueEditbox.SetText(fogVal.ToString());
256
258
259 if (m_FogDurationTimeValue == -1)
262
264 m_FogDurationMaxText.SetText(DURATION_MAX.ToString());
265
266
267 // OVERCAST
269 if (forceCurrent || m_OvercastValue == -1)
270 {
271 overcastVal = GetGame().GetWeather().GetOvercast().GetActual();
272 }
273 m_OvercastValueEditbox.SetText(overcastVal.ToString());
274
276
277
281
283 m_OvercastDurationMaxText.SetText(DURATION_MAX.ToString());
284
285 // RAIN
286 float rainVal = m_RainValue;
287 if (forceCurrent || m_RainValue == -1)
288 {
289 rainVal = GetGame().GetWeather().GetRain().GetActual();
290 }
291
292 m_RainValueEditbox.SetText(rainVal.ToString());
294
295 if (m_RainDurationTimeValue == -1)
298
300 m_RainDurationMaxText.SetText(DURATION_MAX.ToString());
301
302 // SNOWFALL
304 if (forceCurrent || m_SnowfallValue == -1)
305 {
306 snowfallVal = GetGame().GetWeather().GetSnowfall().GetActual();
307 }
308
309 m_SnowfallValueEditbox.SetText(snowfallVal.ToString());
311
315
317 m_SnowfallDurationMaxText.SetText(DURATION_MAX.ToString());
318
320 }
void UpdateSliderValues()
Definition ScriptConsoleWeatherTab.c:492
proto native CGame GetGame()

Перекрестные ссылки DURATION_MAX, GetGame(), INTERPOLATION_MAX, m_FogDurationEditbox, m_FogDurationMaxText, m_FogDurationTimeValue, m_FogInterpolationEditbox, m_FogInterpolationMaxText, m_FogInterpolationTimeValue, m_FogValue, m_FogValueEditbox, m_OvercastDurationEditbox, m_OvercastDurationMaxText, m_OvercastDurationTimeValue, m_OvercastInterpolationEditbox, m_OvercastInterpolationMaxText, m_OvercastInterpolationTimeValue, m_OvercastValue, m_OvercastValueEditbox, m_RainDurationEditbox, m_RainDurationMaxText, m_RainDurationTimeValue, m_RainInterpolationEditbox, m_RainInterpolationMaxText, m_RainInterpolationTimeValue, m_RainValue, m_RainValueEditbox, m_SnowfallDurationEditbox, m_SnowfallDurationMaxText, m_SnowfallDurationTimeValue, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationMaxText, m_SnowfallInterpolationTimeValue, m_SnowfallValue, m_SnowfallValueEditbox и UpdateSliderValues().

◆ InvokeSendRPC()

void InvokeSendRPC ( )
inlineprotected
683 {
685 }
void SendRPC()
Definition DisplayStatus.c:167
DebugWeatherRPCData GetRPCDataImmediate()
Definition ScriptConsoleWeatherTab.c:645

Перекрестные ссылки GetRPCDataImmediate() и SendRPC().

◆ OnChange()

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected
387 {
389 bool immDrag = (GetMouseState(MouseState.LEFT) & MB_PRESSED_MASK) && KeyState(KeyCode.KC_LSHIFT);
390
391 if (rmbDrag)
392 {
393 // first row
394 if (w == m_FogValueSetSlider)
395 {
396 m_OvercastValueSetSlider.SetCurrent(m_FogValueSetSlider.GetCurrent());
397 m_RainValueSetSlider.SetCurrent(m_FogValueSetSlider.GetCurrent());
398 m_SnowfallValueSetSlider.SetCurrent(m_FogValueSetSlider.GetCurrent());
399 }
400 else if (w == m_OvercastValueSetSlider)
401 {
402 m_FogValueSetSlider.SetCurrent(m_OvercastValueSetSlider.GetCurrent());
403 m_RainValueSetSlider.SetCurrent(m_OvercastValueSetSlider.GetCurrent());
404 m_SnowfallValueSetSlider.SetCurrent(m_OvercastValueSetSlider.GetCurrent());
405 }
406 else if (w == m_RainValueSetSlider)
407 {
408 m_FogValueSetSlider.SetCurrent(m_RainValueSetSlider.GetCurrent());
409 m_OvercastValueSetSlider.SetCurrent(m_RainValueSetSlider.GetCurrent());
410 m_SnowfallValueSetSlider.SetCurrent(m_RainValueSetSlider.GetCurrent());
411 }
412 else if (w == m_SnowfallValueSetSlider)
413 {
414 m_FogValueSetSlider.SetCurrent(m_SnowfallValueSetSlider.GetCurrent());
415 m_OvercastValueSetSlider.SetCurrent(m_SnowfallValueSetSlider.GetCurrent());
416 m_RainValueSetSlider.SetCurrent(m_SnowfallValueSetSlider.GetCurrent());
417 }
418 // second row
420 {
424 }
426 {
430 }
431
433 {
437 }
439 {
443 }
444 // third row
445 else if (w == m_FogDurationTimeSlider)
446 {
447 m_RainDurationTimeSlider.SetCurrent(m_FogDurationTimeSlider.GetCurrent());
450 }
451 else if (w == m_RainDurationTimeSlider)
452 {
453 m_FogDurationTimeSlider.SetCurrent(m_RainDurationTimeSlider.GetCurrent());
456 }
458 {
462 }
464 {
468 }
469 }
470
471
473 if (slider)
474 {
475 if ( (rmbDrag||immDrag) && !m_RPCTimer.IsRunning())
476 {
478 m_RPCTimer.Run(0.25, this, "InvokeSendRPC");
479 }
481 return true;
482 }
484 if (box)
485 {
487 return true;
488 }
489 return false;
490 }
ref Timer m_RPCTimer
Definition ScriptConsoleWeatherTab.c:3
void UpdateEditboxValues()
Definition ScriptConsoleWeatherTab.c:535
KeyCode
Definition EnSystem.c:157
proto native int KeyState(KeyCode key)
MouseState
Definition EnSystem.c:311
proto native int GetMouseState(MouseState index)

Перекрестные ссылки GetMouseState(), KeyState(), m_FogDurationTimeSlider, m_FogInterpolationTimeSlider, m_FogValueSetSlider, m_OvercastDurationTimeSlider, m_OvercastInterpolationTimeSlider, m_OvercastValueSetSlider, m_RainDurationTimeSlider, m_RainInterpolationTimeSlider, m_RainValueSetSlider, m_RPCTimer, m_SnowfallDurationTimeSlider, m_SnowfallInterpolationTimeSlider, m_SnowfallValueSetSlider, UpdateEditboxValues() и UpdateSliderValues().

◆ OnClick()

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
579 {
580 if (w == m_ApplyButton)
581 {
583 return true;
584 }
585 else if (w == m_UpdateButton)
586 {
587 InitValues(true);
588 return true;
589 }
590 else if (w == m_ResetButton)
591 {
592 ResetValues();
593 InitValues(true);
594 return true;
595 }
596 else if (w == m_CopyButton)
597 {
598 string output = CopyValues();
599 GetGame().CopyToClipboard(output);
600 return true;
601 }
602
603 else if (w == m_PasteButton)
604 {
605 string input;
606 GetGame().CopyFromClipboard(input);
609 return true;
610 }
611
612 return false;
613 }
DebugWeatherRPCData GetRPCDataNormal()
Definition ScriptConsoleWeatherTab.c:618
void ResetValues()
Definition ScriptConsoleWeatherTab.c:201
void PasteValues(string clipboard)
Definition ScriptConsoleWeatherTab.c:322
string CopyValues()
Definition ScriptConsoleWeatherTab.c:352

Перекрестные ссылки CopyValues(), GetGame(), GetRPCDataNormal(), InitValues(), m_ApplyButton, m_CopyButton, m_PasteButton, m_ResetButton, m_UpdateButton, PasteValues(), ResetValues(), SendRPC() и UpdateSliderValues().

◆ PasteValues()

void PasteValues ( string clipboard)
inlineprotected
323 {
325 clipboard.Split(" ", values);
326 if (values.Count() >= 9)
327 {
328 // FOG
329 m_FogValueEditbox.SetText(values.Get(0));
330 m_FogInterpolationEditbox.SetText(values.Get(1));
331 m_FogDurationEditbox.SetText(values.Get(2));
332 // OVERCAST
333 m_OvercastValueEditbox.SetText(values.Get(3));
335 m_OvercastDurationEditbox.SetText(values.Get(5));
336 // RAIN
337 m_RainValueEditbox.SetText(values.Get(6));
338 m_RainInterpolationEditbox.SetText(values.Get(7));
339 m_RainDurationEditbox.SetText(values.Get(8));
340
341 if (values.Count() >= 12)
342 {
343 // SNOWFALL
344 m_SnowfallValueEditbox.SetText(values.Get(9));
345 m_SnowfallInterpolationEditbox.SetText(values.Get(10));
346 m_SnowfallDurationEditbox.SetText(values.Get(11));
347 }
348
349 }
350 }
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< string > TStringArray
Definition EnScript.c:685

Перекрестные ссылки m_FogDurationEditbox, m_FogInterpolationEditbox, m_FogValueEditbox, m_OvercastDurationEditbox, m_OvercastInterpolationEditbox, m_OvercastValueEditbox, m_RainDurationEditbox, m_RainInterpolationEditbox, m_RainValueEditbox, m_SnowfallDurationEditbox, m_SnowfallInterpolationEditbox и m_SnowfallValueEditbox.

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

◆ ResetValues()

void ResetValues ( )
inlineprotected
202 {
203 // FOG
204 m_FogValueEditbox.SetText("0");
205 m_FogDurationEditbox.SetText(DURATION_MAX.ToString());
206 m_FogInterpolationEditbox.SetText("0");
207
208 // OVERCAST
209 m_OvercastValueEditbox.SetText("0");
210 m_OvercastDurationEditbox.SetText(DURATION_MAX.ToString());
212
213 // Rain
214 m_RainValueEditbox.SetText("0");
215 m_RainDurationEditbox.SetText(DURATION_MAX.ToString());
216 m_RainInterpolationEditbox.SetText("0");
217
218 // Snowfall
219 m_SnowfallValueEditbox.SetText("0");
220 m_SnowfallDurationEditbox.SetText(DURATION_MAX.ToString());
222
224
225 //FOG
226 m_FogValue = 0;
229
230 // OVERCAST
231 m_OvercastValue = 0;
234
235 //RAIN
236 m_RainValue = 0;
239
240 //SNOWFALL
241 m_SnowfallValue = 0;
244 }

Перекрестные ссылки DURATION_MAX, m_FogDurationEditbox, m_FogDurationTimeValue, m_FogInterpolationEditbox, m_FogInterpolationTimeValue, m_FogValue, m_FogValueEditbox, m_OvercastDurationEditbox, m_OvercastDurationTimeValue, m_OvercastInterpolationEditbox, m_OvercastInterpolationTimeValue, m_OvercastValue, m_OvercastValueEditbox, m_RainDurationEditbox, m_RainDurationTimeValue, m_RainInterpolationEditbox, m_RainInterpolationTimeValue, m_RainValue, m_RainValueEditbox, m_SnowfallDurationEditbox, m_SnowfallDurationTimeValue, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationTimeValue, m_SnowfallValue, m_SnowfallValueEditbox и UpdateSliderValues().

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

◆ SendRPC()

void SendRPC ( DebugWeatherRPCData data)
inlineprotected
672 {
674 if (GetGame().GetPlayer())
675 {
676 identity = GetGame().GetPlayer().GetIdentity();
677 }
678
679 GetGame().RPCSingleParam(null, ERPCs.DEV_SET_WEATHER, new Param1<DebugWeatherRPCData>(data), true, identity);
680 }
ERPCs
Definition ERPCs.c:2
PlayerBase GetPlayer()
Definition ModifierBase.c:51
The class that will be instanced (moddable)
Definition gameplay.c:388

Перекрестные ссылки GetGame() и GetPlayer().

◆ Update()

override void Update ( float timeslice)
inlineprotected
688 {
689 super.Update(timeslice);
690 float overcast = GetGame().GetWeather().GetOvercast().GetActual();
691 m_OvercastValueGetSlider.SetCurrent(overcast * 100);
692 m_OvercastValueSetText.SetText(overcast.ToString());
693
694 float fog = GetGame().GetWeather().GetFog().GetActual();
695 m_FogValueGetSlider.SetCurrent(fog * 100);
696 m_FogValueSetText.SetText(fog.ToString());
697
698 float rain = GetGame().GetWeather().GetRain().GetActual();
699 m_RainValueGetSlider.SetCurrent(rain * 100);
700 m_RainValueSetText.SetText(rain.ToString());
701
702 float snowfall = GetGame().GetWeather().GetSnowfall().GetActual();
703 m_SnowfallValueGetSlider.SetCurrent(snowfall * 100);
704 m_SnowfallValueSetText.SetText(snowfall.ToString());
705 }

Перекрестные ссылки GetGame(), m_FogValueGetSlider, m_FogValueSetText, m_OvercastValueGetSlider, m_OvercastValueSetText, m_RainValueGetSlider, m_RainValueSetText, m_SnowfallValueGetSlider и m_SnowfallValueSetText.

◆ UpdateEditboxValues()

void UpdateEditboxValues ( )
inlineprotected
536 {
537 //fog
540
543
544 m_FogValue = m_FogValueSetSlider.GetCurrent() / 100;
545 m_FogValueEditbox.SetText(m_FogValue.ToString());
546
547 //overcast
550
553
554 m_OvercastValue = m_OvercastValueSetSlider.GetCurrent() / 100;
555 m_OvercastValueEditbox.SetText(m_OvercastValue.ToString());
556
557 //rain
560
563
564 m_RainValue = m_RainValueSetSlider.GetCurrent() / 100;
565 m_RainValueEditbox.SetText(m_RainValue.ToString());
566
567 //snowfall
570
573
574 m_SnowfallValue = m_SnowfallValueSetSlider.GetCurrent() / 100;
575 m_SnowfallValueEditbox.SetText(m_SnowfallValue.ToString());
576 }

Перекрестные ссылки DURATION_MAX, INTERPOLATION_MAX, m_FogDurationEditbox, m_FogDurationTimeSlider, m_FogDurationTimeValue, m_FogInterpolationEditbox, m_FogInterpolationTimeSlider, m_FogInterpolationTimeValue, m_FogValue, m_FogValueEditbox, m_FogValueSetSlider, m_OvercastDurationEditbox, m_OvercastDurationTimeSlider, m_OvercastDurationTimeValue, m_OvercastInterpolationEditbox, m_OvercastInterpolationTimeSlider, m_OvercastInterpolationTimeValue, m_OvercastValue, m_OvercastValueEditbox, m_OvercastValueSetSlider, m_RainDurationEditbox, m_RainDurationTimeSlider, m_RainDurationTimeValue, m_RainInterpolationEditbox, m_RainInterpolationTimeSlider, m_RainInterpolationTimeValue, m_RainValue, m_RainValueEditbox, m_RainValueSetSlider, m_SnowfallDurationEditbox, m_SnowfallDurationTimeSlider, m_SnowfallDurationTimeValue, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationTimeSlider, m_SnowfallInterpolationTimeValue, m_SnowfallValue, m_SnowfallValueEditbox и m_SnowfallValueSetSlider.

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

◆ UpdateSliderValues()

void UpdateSliderValues ( )
inlineprotected
493 {
494 //fog
495 float editboxFogValue = m_FogValueEditbox.GetText().ToFloat();
496 m_FogValueSetSlider.SetCurrent(editboxFogValue * 100);
497
498 float editboxFogInterpolation = m_FogInterpolationEditbox.GetText().ToFloat();
500
501 float editboxFogDuration = m_FogDurationEditbox.GetText().ToFloat();
503
504 //overcast
505 float editboxOvercastValue = m_OvercastValueEditbox.GetText().ToFloat();
507
510
511 float editboxOvercastDuration = m_OvercastDurationEditbox.GetText().ToFloat();
513
514 //rain
515 float editboxRainValue = m_RainValueEditbox.GetText().ToFloat();
516 m_RainValueSetSlider.SetCurrent(editboxRainValue * 100);
517
518 float editboxRainInterpolation = m_RainInterpolationEditbox.GetText().ToFloat();
520
521 float editboxRainDuration = m_RainDurationEditbox.GetText().ToFloat();
523
524 //snowfall
525 float editboxSnowfallValue = m_SnowfallValueEditbox.GetText().ToFloat();
527
530
531 float editboxSnowfallDuration = m_SnowfallDurationEditbox.GetText().ToFloat();
533 }
Definition EnMath.c:7
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

Перекрестные ссылки INTERPOLATION_MAX, Math::InverseLerp(), m_FogDurationEditbox, m_FogDurationTimeSlider, m_FogInterpolationEditbox, m_FogInterpolationTimeSlider, m_FogValueEditbox, m_FogValueSetSlider, m_OvercastDurationEditbox, m_OvercastDurationTimeSlider, m_OvercastInterpolationEditbox, m_OvercastInterpolationTimeSlider, m_OvercastValueEditbox, m_OvercastValueSetSlider, m_RainDurationEditbox, m_RainDurationTimeSlider, m_RainInterpolationEditbox, m_RainInterpolationTimeSlider, m_RainValueEditbox, m_RainValueSetSlider, m_SnowfallDurationEditbox, m_SnowfallDurationTimeSlider, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationTimeSlider, m_SnowfallValueEditbox и m_SnowfallValueSetSlider.

Используется в InitValues(), OnChange(), OnClick() и ResetValues().

Поля

◆ DURATION_MAX

const int DURATION_MAX = 920
protected

◆ INTERPOLATION_MAX

const int INTERPOLATION_MAX = 920
protected

◆ m_ApplyButton

ButtonWidget m_ApplyButton
protected

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

◆ m_CopyButton

ButtonWidget m_CopyButton
protected

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

◆ m_FogDurationEditbox

◆ m_FogDurationMaxText

TextWidget m_FogDurationMaxText
protected

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

◆ m_FogDurationTimeSlider

◆ m_FogDurationTimeValue

float m_FogDurationTimeValue = -1
staticprotected

◆ m_FogInterpolationEditbox

◆ m_FogInterpolationMaxText

TextWidget m_FogInterpolationMaxText
protected

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

◆ m_FogInterpolationTimeSlider

SliderWidget m_FogInterpolationTimeSlider
protected

◆ m_FogInterpolationTimeValue

float m_FogInterpolationTimeValue
staticprotected

◆ m_FogValue

float m_FogValue = -1
staticprotected

◆ m_FogValueEditbox

◆ m_FogValueGetSlider

SliderWidget m_FogValueGetSlider
protected

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

◆ m_FogValueSetSlider

◆ m_FogValueSetText

TextWidget m_FogValueSetText
protected

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

◆ m_OvercastDurationEditbox

◆ m_OvercastDurationMaxText

TextWidget m_OvercastDurationMaxText
protected

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

◆ m_OvercastDurationTimeSlider

◆ m_OvercastDurationTimeValue

float m_OvercastDurationTimeValue = -1
staticprotected

◆ m_OvercastInterpolationEditbox

EditBoxWidget m_OvercastInterpolationEditbox
protected

◆ m_OvercastInterpolationMaxText

TextWidget m_OvercastInterpolationMaxText
protected

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

◆ m_OvercastInterpolationTimeSlider

SliderWidget m_OvercastInterpolationTimeSlider
protected

◆ m_OvercastInterpolationTimeValue

float m_OvercastInterpolationTimeValue
staticprotected

◆ m_OvercastValue

float m_OvercastValue = -1
staticprotected

◆ m_OvercastValueEditbox

◆ m_OvercastValueGetSlider

SliderWidget m_OvercastValueGetSlider
protected

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

◆ m_OvercastValueSetSlider

◆ m_OvercastValueSetText

TextWidget m_OvercastValueSetText
protected

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

◆ m_PasteButton

ButtonWidget m_PasteButton
protected

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

◆ m_RainDurationEditbox

◆ m_RainDurationMaxText

TextWidget m_RainDurationMaxText
protected

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

◆ m_RainDurationTimeSlider

◆ m_RainDurationTimeValue

float m_RainDurationTimeValue = -1
staticprotected

◆ m_RainInterpolationEditbox

◆ m_RainInterpolationMaxText

TextWidget m_RainInterpolationMaxText
protected

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

◆ m_RainInterpolationTimeSlider

SliderWidget m_RainInterpolationTimeSlider
protected

◆ m_RainInterpolationTimeValue

float m_RainInterpolationTimeValue
staticprotected

◆ m_RainValue

float m_RainValue = -1
staticprotected

◆ m_RainValueEditbox

◆ m_RainValueGetSlider

SliderWidget m_RainValueGetSlider
protected

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

◆ m_RainValueSetSlider

◆ m_RainValueSetText

TextWidget m_RainValueSetText
protected

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

◆ m_ResetButton

ButtonWidget m_ResetButton
protected

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

◆ m_RPCTimer

ref Timer m_RPCTimer = new Timer()
protected

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

◆ m_SnowfallDurationEditbox

◆ m_SnowfallDurationMaxText

TextWidget m_SnowfallDurationMaxText
protected

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

◆ m_SnowfallDurationTimeSlider

◆ m_SnowfallDurationTimeValue

float m_SnowfallDurationTimeValue = -1
staticprotected

◆ m_SnowfallInterpolationEditbox

EditBoxWidget m_SnowfallInterpolationEditbox
protected

◆ m_SnowfallInterpolationMaxText

TextWidget m_SnowfallInterpolationMaxText
protected

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

◆ m_SnowfallInterpolationTimeSlider

SliderWidget m_SnowfallInterpolationTimeSlider
protected

◆ m_SnowfallInterpolationTimeValue

float m_SnowfallInterpolationTimeValue
staticprotected

◆ m_SnowfallValue

float m_SnowfallValue = -1
staticprotected

◆ m_SnowfallValueEditbox

◆ m_SnowfallValueGetSlider

SliderWidget m_SnowfallValueGetSlider
protected

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

◆ m_SnowfallValueSetSlider

◆ m_SnowfallValueSetText

TextWidget m_SnowfallValueSetText
protected

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

◆ m_UpdateButton

ButtonWidget m_UpdateButton
protected

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


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