protected override void OnMouseClickedLeft(int x, int y, bool down)
{
base.OnMouseClickedLeft(x, y, down);
if (m_SelectAll)
{
OnSelectAll(this);
//m_SelectAll = false;
return;
}
int c = GetClosestCharacter(x, y);
if (down)
{
CursorPos = c;
if (!Input.InputHandler.IsShiftDown)
CursorEnd = c;
InputHandler.MouseFocus = this;
}
else
{
if (InputHandler.MouseFocus == this)
{
CursorPos = c;
InputHandler.MouseFocus = null;
}
}
}