public bool MouseUp(int x, int y)
{
/*if (!isVisible)
{
return false;
}
SitRepManager sitRepManager = gameMain.EmpireManager.CurrentEmpire.SitRepManager;
int maxVisible = AMOUNT_VISIBLE;
if (sitRepManager.Items.Count < AMOUNT_VISIBLE)
{
maxVisible = sitRepManager.Items.Count;
}
else
{
if (scrollBar.MouseUp(x, y))
{
topIndex = scrollBar.TopIndex;
RefreshLabels(sitRepManager);
}
}
for (int i = 0; i < maxVisible; i++)
{
if (buttons[i].MouseUp(x, y))
{
SitRepItem item = sitRepManager.Items[i + topIndex];
gameMain.ChangeToScreen(item.ScreenEventIsIn);
if (item.SystemEventOccuredAt != null)
{
gameMain.EmpireManager.CurrentEmpire.SelectedSystem = gameMain.EmpireManager.CurrentEmpire.SelectedSystem = item.SystemEventOccuredAt;
gameMain.EmpireManager.CurrentEmpire.SelectedFleetGroup = null;
}
if (item.PlanetEventOccuredAt != null)
{
for (int j = 0; j < item.SystemEventOccuredAt.Planets.Count; j++)
{
if (item.SystemEventOccuredAt.Planets[j] == item.PlanetEventOccuredAt)
{
gameMain.EmpireManager.CurrentEmpire.PlanetSelected = j;
}
}
}
if (item.PointEventOccuredAt != null)
{
gameMain.CenterGalaxyScreen(item.PointEventOccuredAt);
}
isVisible = false;
}
}*/
return false;
}