예제 #1
0
 public void MouseLeave()
 {
     if (locationState == MouseLocationState.Entered)
     {
         MouseLeaved?.Invoke(this, null);
         alpha         = 100;
         locationState = MouseLocationState.Leaved;
     }
 }
예제 #2
0
 public void MouseLeave()
 {
     if (locationState == MouseLocationState.Entered)
     {
         MouseLeaved?.Invoke(this, null);
         textureIndex  = 0;
         locationState = MouseLocationState.Leaved;
     }
 }
예제 #3
0
        public void MouseLeave()
        {
            if (locationState == MouseLocationState.Entered)
            {
                MouseLeaved?.Invoke(this, null);
                if (!isChecked)
                {
                    textureIndex = 0;
                    foreach (CheckBox checkBox in synchronized)
                    {
                        if (!checkBox.isChecked)
                        {
                            checkBox.SetTextureIndex(0);
                        }
                    }
                }

                locationState = MouseLocationState.Leaved;
            }
        }
예제 #4
0
 protected virtual void OnMouseLeaved(MouseState mouseState)
 {
     Highlighted = false;
     MouseLeaved?.Invoke(this, mouseState);
 }