public void SelectionDidChange(NoTransitionsButton.SelectionState selectionState)
        {
            _currentSelectionState = selectionState;
            switch (selectionState)
            {
            case NoTransitionsButton.SelectionState.Normal:
                Image.color = NormalColor;
                if (UnderlineImage is { })
                {
                    UnderlineImage.enabled = false;
                }

                break;
Esempio n. 2
0
        public void SelectionDidChange(NoTransitionsButton.SelectionState selectionState)
        {
            _currentSelectionState = selectionState;
            switch (selectionState)
            {
            case NoTransitionsButton.SelectionState.Normal:
                Image.color = NormalColor;
                break;

            case NoTransitionsButton.SelectionState.Highlighted:
                Image.color = HoveredColor;
                break;

            case NoTransitionsButton.SelectionState.Pressed:
                Image.color = SelectedColor;
                break;

            default:
                Image.color = NormalColor;
                break;
            }
        }