public void OnThenColorChange(int direction) { int newColor = WindowManager.Instance.OnThenColorChange(this, direction); imgThenColor.color = CAColor.colors[newColor]; txtThenColor.text = CAColor.GetColorText(newColor); }
//1 = increase, -1 = decrease, 0 = unchanged public void ChangeClearToColor(int direction) { m_ClearToColor = CAColor.ChangeColorInt(m_ClearToColor, direction, true); //update rule button background m_ClearToColorButton.texture = m_ClearToColor == 0 ? WindowManager.Instance.m_AnyColorBgTex : null; m_ClearToColorButton.color = m_ClearToColor == 0 ? Color.white : CAColor.colors[m_ClearToColor]; m_ClearToColorButtonText.text = CAColor.GetColorText(m_ClearToColor); }
public void OnIfColorChange(int direction) { int newColor = WindowManager.Instance.OnIfColorChange(this, direction); //update rule button background imgIfColor.texture = newColor == 0 ? WindowManager.Instance.m_AnyColorBgTex : null; imgIfColor.color = newColor == 0 ? Color.white : CAColor.colors[newColor]; txtIfColor.text = CAColor.GetColorText(newColor); }