public void MouseLeave() { if (locationState == MouseLocationState.Entered) { MouseLeaved?.Invoke(this, null); alpha = 100; locationState = MouseLocationState.Leaved; } }
public void MouseLeave() { if (locationState == MouseLocationState.Entered) { MouseLeaved?.Invoke(this, null); textureIndex = 0; locationState = MouseLocationState.Leaved; } }
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; } }
protected virtual void OnMouseLeaved(MouseState mouseState) { Highlighted = false; MouseLeaved?.Invoke(this, mouseState); }