MouseUp() публичный Метод

public MouseUp ( int x, int y ) : bool
x int
y int
Результат bool
Пример #1
0
        public override bool MouseUp(int x, int y)
        {
            if (_fleetSpecsShowing)
            {
                if (!_fleetSpecsWindow.MouseUp(x, y))
                {
                    _fleetSpecsShowing = false;
                    LoadScreen();
                }
                return(true);
            }
            for (int i = 0; i < _maxVisible; i++)
            {
                if (_planetBackgrounds[i].MouseUp(x, y))
                {
                    SelectFleet(_fleetManager.GetFleets()[i + _scrollBar.TopIndex]);
                    return(true);
                }
            }

            for (int i = 0; i < 6; i++)
            {
                if (_scrapButtons[i].MouseUp(x, y))
                {
                    _gameMain.EmpireManager.CurrentEmpire.FleetManager.ObsoleteShipDesign(_gameMain.EmpireManager.CurrentEmpire.FleetManager.CurrentDesigns[i]);
                    LoadScreen();
                }
            }
            if (_viewSpecsButton.MouseUp(x, y))
            {
                _fleetSpecsShowing = true;
                _fleetSpecsWindow.LoadDesigns();
            }

            if (!base.MouseUp(x, y))
            {
                if (CloseWindow != null)
                {
                    CloseWindow();
                }
                return(true);
            }
            return(false);
        }