2 using System.Collections.Generic;
28 get {
return _ActiveValue; }
29 set { _ActiveValue = value; }
42 get {
return _InactiveValue; }
43 set { _InactiveValue = value; }
57 get {
return _FadeMode; }
58 set { _FadeMode = value; }
66 public override void Trigger(Table.TableElementData TableElementData)
70 int FadeValue = TableElementData.Value;
71 if (FadeMode ==
FadeModeEnum.OnOff && FadeValue > 0) { FadeValue = 255; }
73 Layer.Value = InactiveValue.Value + (int)((
float)(ActiveValue.Value - InactiveValue.Value) * FadeValue / 255).Limit(0, 255);
74 Layer.Alpha = InactiveValue.Alpha + (int)((
float)(ActiveValue.Alpha - InactiveValue.Alpha) * FadeValue / 255).Limit(0, 255);
84 public override void Init(Table.Table Table)
The namespace DirectOutput.Cab.Toys contains all toy related classes.
This effect controlls sets the value and alpha channel of a analog alpha toy based on the trigger val...
Object containing a analog value (0-255) and a alpha value (0-255).
override void Init(Table.Table Table)
Initializes the effect.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
override void Trigger(Table.TableElementData TableElementData)
Triggers the effect with the given TableElementData.
FadeModeEnum
Defines the fading behaviour.
override void Finish()
Finish does all necessary cleanupwork before the effect is discarded.
Base class for effects controlling a single AnalogToy object.
Namespace for objects dealing with layers
The namespace DirectOutput.General contains classes for general use.