Exemplo n.º 1
0
        public void ChangeTool(string toolName)
        {
            currentToolName = toolName;

            var args = new ToolChangedArgs {
                toolName = currentToolName
            };

            OnToolChangedEvent?.Invoke(this, args);

            ShowCurrentTool(showTools);
        }
Exemplo n.º 2
0
        void OnToolChanged(object sender, ToolChangedArgs args)
        {
            bool switchToAnim = args.toolName == "Animation";

            if (switchToAnim && !isAnimationTool)
            {
                UpdateFromSelection();
            }
            if (!switchToAnim && isAnimationTool)
            {
                DeleteGoalCurves();
            }
            isAnimationTool = switchToAnim;
        }
Exemplo n.º 3
0
 public static void OnChangeTool(object sender, ToolChangedArgs args)
 {
     ChangeTool(args.toolName);
 }