Ejemplo n.º 1
0
 public void StartSelection(short gridX, short gridY)
 {
     this.activity = SelectActivity.Working;
     this.xStart   = gridX;
     this.xEnd     = gridX;
     this.yStart   = gridY;
     this.yEnd     = gridY;
 }
Ejemplo n.º 2
0
        private void EndSelection()
        {
            this.activity = SelectActivity.HasSelection;

            // If we're currently using selection as a temporary tool, force it to be an active tool now that we have a selected area.
            if (EditorTools.tempTool is FuncToolSelect)
            {
                EditorTools.SetFuncTool(this);
            }
        }
Ejemplo n.º 3
0
 public void ClearSelection()
 {
     this.activity = SelectActivity.None; this.xEnd = this.xStart; this.yEnd = this.yStart;
 }