private void ToolToggleButtonOnEventCheckChanged(UIComponent component, bool value)
        {
            // Prevent click during dragging
            if (_isDragging)
            {
                return;
            }

            DebugUtils.Log("Tool toggle pressed.");
            OnParallelToolToggled?.Invoke(component, value);
        }
        private void ToolToggleButtonOnEventCheckChanged(UIComponent component, bool value)
        {
            // Prevent click during dragging
            if (_isDragging)
            {
                return;
            }

            Log._Debug($"[{nameof(UIMainWindow)}.{nameof(ToolToggleButtonOnEventCheckChanged)}] Event triggered with value: {value}");

            OnParallelToolToggled?.Invoke(component, value);
        }
 private void ToggleToolCheckbox(bool forceClose = false)
 {
     if (forceClose)
     {
         _toolToggleButton.isChecked = false;
         OnParallelToolToggled?.Invoke(_toolToggleButton, _toolToggleButton.isChecked);
     }
     else
     {
         _toolToggleButton.isChecked = !_toolToggleButton.isChecked;
         OnParallelToolToggled?.Invoke(_toolToggleButton, _toolToggleButton.isChecked);
     }
 }
 public void ToggleToolCheckbox()
 {
     _toolToggleButton.isChecked = !_toolToggleButton.isChecked;
     OnParallelToolToggled?.Invoke(_toolToggleButton, _toolToggleButton.isChecked);
 }
示例#5
0
 private void ToolToggleButtonOnEventCheckChanged(UIComponent component, bool value)
 {
     DebugUtils.Log("Tool toggle pressed.");
     OnParallelToolToggled?.Invoke(component, value);
 }