예제 #1
0
            protected override void Confirm()
            {
                if (textField.InputOpen)
                {
                    textMember.SetValueText(textField.TextBoard.ToString());
                }

                textField.CloseInput();
                CloseWidgetCallback?.Invoke();
            }
예제 #2
0
            protected override void Confirm()
            {
                if (comboBox.SelectionIndex != -1)
                {
                    blockComboMember.Value = comboBox.SelectionIndex;
                }

                comboBox.CloseList();
                CloseWidgetCallback?.Invoke();
            }
예제 #3
0
            protected override void Cancel()
            {
                if (!sliderBox.IsTextInputOpen)
                {
                    floatMember.Value = initValue;
                }
                else
                {
                    sliderBox.CloseTextInput();
                }

                CloseWidgetCallback?.Invoke();
            }
예제 #4
0
            protected override void Confirm()
            {
                if (sliderBox.IsTextInputOpen)
                {
                    float newValue;

                    if (float.TryParse(sliderBox.FieldText.ToString(), out newValue))
                    {
                        floatMember.Value = newValue;
                    }

                    sliderBox.CloseTextInput();
                }

                CloseWidgetCallback?.Invoke();
            }