public override bool MouseHover(int x, int y, float frameDeltaTime)
{
bool result = false;
foreach (var button in _techFieldButtons)
{
result = button.MouseHover(x, y, frameDeltaTime) || result;
}
foreach (var button in _techLockButtons)
{
result = button.MouseHover(x, y, frameDeltaTime) || result;
}
for (int i = 0; i < _techSliders.Length; i++)
{
if (_techSliders[i].MouseHover(x, y, frameDeltaTime))
{
TechField whichField = TechField.COMPUTER;
switch (i)
{
case 1: whichField = TechField.CONSTRUCTION;
break;
case 2: whichField = TechField.FORCE_FIELD;
break;
case 3: whichField = TechField.PLANETOLOGY;
break;
case 4: whichField = TechField.PROPULSION;
break;
case 5: whichField = TechField.WEAPON;
break;
}
_gameMain.EmpireManager.CurrentEmpire.TechnologyManager.SetPercentage(whichField, _techSliders[i].TopIndex);
RefreshSliders();
RefreshProgressLabels();
}
}
return result;
}