Beyond_Beyaan.Screens.GalaxyScreen.MouseDown C# (CSharp) Method

MouseDown() public method

public MouseDown ( int x, int y, int whichButton ) : void
x int
y int
whichButton int
return void
        public void MouseDown(int x, int y, int whichButton)
        {
            if (whichButton == 1)
            {
                if (_taskBar.MouseDown(x, y, whichButton))
                {
                    return;
                }
                if (_windowShowing != null)
                {
                    _windowShowing.MouseDown(x, y);
                    return;
                }
                if (_gameMain.EmpireManager.CurrentEmpire.SelectedSystem != null)
                {
                    if (_systemView.MouseDown(x, y))
                    {
                        return;
                    }
                }
                else if (_gameMain.EmpireManager.CurrentEmpire.SelectedFleetGroup != null)
                {
                    if (_fleetView.MouseDown(x, y))
                    {
                        return;
                    }
                }
            }
        }