267{
269
274
276 {
278 }
279
281 {
283
287 }
288
290 {
292 }
293
295 {
297 }
298
300 {
302
304
306
308
312
314 {
316 }
317
318 if (m_RequestMap.Count() > 0)
319 {
321 }
322 else
323 {
324
326 m_Parent.ParamUpdateRemove(m_ParameterIndex);
327 return;
328 }
329
330 for (
int i = 0;
i < m_RequestMap.Count();
i++ )
331 {
333
335 {
336 Error(
"Debug | PPEMatClassParameterFloat | req_data not found! | " +
this +
" | mat/par: " + m_MaterialIndex +
"/" + m_ParameterIndex);
337 continue;
338 }
339
341
343 {
344
345 continue;
346 }
347
349 {
351
352 }
353 else
354 {
356 }
357
358
359
361
363 {
366
367 continue;
368 }
369
371
372
373 req_data.SetUpdatingDataValues(
false);
375 {
377
378 }
379 else
380 {
383 }
384
386 }
387
388
389
391 int operator;
393
396 else
398
399
401
403 {
405 break;
406
408 operator =
m_LayerInfo.Get(m_CommandLayersArray.Get(
i)).Get(LAYER_INFO_OPERATOR);
409
410 switch (operator)
411 {
414 break;
415
418 break;
419
421
423 break;
424
427 break;
428
430
432 break;
433
436 break;
437
439
441 break;
442
445 break;
446
448
450 break;
451
454 break;
455
458 break;
459 }
460
461
463
465 {
466
468 }
469
470
471 }
472
473 m_CommandLayersArray.Clear();
474
475
477 {
479 }
480 else
481 {
484 }
485
486
487 m_Parent.ParamUpdateRemove(m_ParameterIndex);
488
490 }
491
493 {
495 AddPriorityInfo(
layer);
496 }
497
500 {
503
504 }
505}
506
508{
510 {
512 m_Dependencies.Set(
PostProcessEffectType.Glow,{PPEGlow.PARAM_COLORIZATIONCOLOR, PPEGlow.PARAM_OVERLAYCOLOR});
513 }
514}
PPOperators
PP operators, specify operation between subsequent layers.
Definition PPEConstants.c:53
ref map< int, ref array< float, int > > m_LayerInfo
Definition PPEMatClassParameterFloat.c:245
override int GetParameterVarType()
Definition PPEMatClassParameterFloat.c:271
void PPEMatClassParameterFloat(int mat_idx, int parameter_idx, PPEClassBase parent)
Definition PPEMatClassParameterFloat.c:252
class PPEMatClassParameterFloat extends PPEMatClassParameterCommandData PPEMatClassParameterFloatSaturation(int mat_idx, int parameter_idx, PPEClassBase parent)
Definition PPEMatClassParameterFloat.c:244
override void SetParameterValueDefault(inout Param p_total)
No active requests for the mat. parameter value change, sets the value to DEFAULT (zero?...
Definition PPEMatClassParameterFloat.c:476
override void InitDefaults()
Definition PPEMatClassParameterFloat.c:257
float m_ValueMax
Definition PPEMatClassParameterFloat.c:250
float m_ValueMin
Definition PPEMatClassParameterFloat.c:249
float m_ValueDefault
Definition PPEMatClassParameterFloat.c:248
override void InitCuttent()
Definition PPEMatClassParameterFloat.c:266
PPETemplateDefFloat m_Float
Definition PPEMatClassParameterFloat.c:247
void PrepareLayerInfo(int layer, float value, int operator)
Definition PPEMatClassParameterFloat.c:469
void PPERequestParamDataFloat(int requester_idx, int mat_id, int param_id, int data_type=0, int priority=0, int mask=PPOperators.SET, bool relative=false)
Definition PPERequestData.c:142
Widget m_Parent
Definition SizeToChild.c:92
Super root of all classes in Enforce script.
Definition EnScript.c:11
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition PPEMatClassesBase.c:3
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
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Max(float x, float y)
Returns bigger of two given values.
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 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'.