Exemple #1
0
        private void changeSelection(PixControl obj)
        {
            if (DisableSelection)
            {
                return;
            }

            radios.ForEach(s => s.Active = false);
            var radio = obj as IndexedButton;

            radio.Active = true;
            Selection    = radios.IndexOf(radio);
            OnSelectionChange?.Invoke(this, new SelectionEventArgs(radio));
        }
Exemple #2
0
        private static void Task(PixControl item, bool IsNumber, IGameScene scene)
        {
            var button = item as Button;

            button.label.text = TryParseInput(button.label.text, IsNumber, scene);
        }