Example #1
0
 protected override void OnClick(EventArgs e)
 {
     Checked = !Checked;
     Ripples.Add(new MaterialRipple()
     {
         Alpha   = RippleColor.A,
         MaxSize = Image.Texture.Width * 1.4f,
         Offset  = new Point(12 + Image.Texture.Width / 2, 12 + Image.Texture.Height / 2),
     });
 }
Example #2
0
 protected override void OnClick(EventArgs e)
 {
     _currentBackColor = PressedColor;
     _pressTimer       = PressWaitTime;
     if (Ripple)
     {
         Ripples.Add(new MaterialRipple()
         {
             Alpha   = RippleColor.A,
             MaxSize = Width,
             Offset  = PointToClient(MousePosition)
         });
     }
 }
 public void ReadChildData(BinaryReader reader)
 {
     _baseMap.ReadString(reader);
     _reflectionMap.ReadString(reader);
     _rippleMaps.ReadString(reader);
     for (int x = 0; x < _ripples.Count; x++)
     {
         Ripples.AddNew();
         Ripples[x].Read(reader);
     }
     for (int x = 0; x < _ripples.Count; x++)
     {
         Ripples[x].ReadChildData(reader);
     }
 }
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                _baseMap.ReadString(reader);
                _reflectionMap.ReadString(reader);
                _rippleMaps.ReadString(reader);
                for (x = 0; (x < _ripples.Count); x = (x + 1))
                {
                    Ripples.Add(new ShaderTransparentWaterRippleBlock());
                    Ripples[x].Read(reader);
                }
                for (x = 0; (x < _ripples.Count); x = (x + 1))
                {
                    Ripples[x].ReadChildData(reader);
                }
            }