Exemple #1
0
        /// <summary>
        /// Finishes the RGBA effect.
        /// </summary>
        public override void Finish()
        {
            this.Layer   = null;
            this.RGBAToy = null;
            this.Table   = null;

            base.Finish();
        }
 private void ResolveName(Table.Table Table)
 {
     if (!ToyName.IsNullOrWhiteSpace() && Table.Pinball.Cabinet.Toys.Contains(ToyName))
     {
         if (Table.Pinball.Cabinet.Toys[ToyName] is IRGBAToy)
         {
             _RGBAToy = (IRGBAToy)Table.Pinball.Cabinet.Toys[ToyName];
         }
     }
 }
Exemple #3
0
 /// <summary>
 /// Initializes the RGBA effect.<br/>
 /// Resolves the name of the RGBA toy.
 /// </summary>
 /// <param name="Table">Table object containing the effect.</param>
 public override void Init(Table.Table Table)
 {
     this.Table = Table;
     if (!ToyName.IsNullOrWhiteSpace() && Table.Pinball.Cabinet.Toys.Contains(ToyName))
     {
         if (Table.Pinball.Cabinet.Toys[ToyName] is IRGBAToy)
         {
             RGBAToy = (IRGBAToy)Table.Pinball.Cabinet.Toys[ToyName];
             Layer   = RGBAToy.Layers[LayerNr];
         }
     }
 }
        private void ResolveName(Table.Table Table)
        {

            if (!ToyName.IsNullOrWhiteSpace() && Table.Pinball.Cabinet.Toys.Contains(ToyName))
            {
                if (Table.Pinball.Cabinet.Toys[ToyName] is IRGBAToy)
                {
                    _RGBAToy = (IRGBAToy)Table.Pinball.Cabinet.Toys[ToyName];
                }

            }
        }