Example #1
0
        // Select button released
        public virtual void OnSelectEnd()
        {
            mode.UnlockTarget();

            // Was dragging?
            if (uvdragging)
            {
                // Dragging stops now
                uvdragging = false;
            }
            else
            {
                // Add/remove selection
                if (this.selected)
                {
                    this.selected = false;
                    mode.RemoveSelectedObject(this);
                }
                else
                {
                    this.selected = true;
                    mode.AddSelectedObject(this);
                }
            }
        }
Example #2
0
 // Select or deselect
 public virtual void OnSelectEnd()
 {
     if (this.selected)
     {
         this.selected = false;
         mode.RemoveSelectedObject(this);
     }
     else
     {
         this.selected = true;
         mode.AddSelectedObject(this);
     }
 }