private void UpdateTValues()
{
int currentVolume = this.GetVolume();
this.positions[currentVolume].GoTo(this.displayPosition.X, this.displayPosition.Y, 0.2f, true);
this.scales[currentVolume].GoTo(this.scale, 0.2f, true);
this.positions[(currentVolume - 1 + 11) % 11].GoTo(this.displayPosition.X - 70f * this.scale, this.displayPosition.Y, 0.2f, true);
this.scales[(currentVolume - 1 + 11) % 11].GoTo(this.scale * 0.5f, 0.2f, true);
this.positions[(currentVolume + 1) % 11].GoTo(this.displayPosition.X + 70f * this.scale, this.displayPosition.Y, 0.2f, true);
this.scales[(currentVolume + 1) % 11].GoTo(this.scale * 0.5f, 0.2f, true);
this.positions[(currentVolume - 2 + 11) % 11].GoTo(this.displayPosition.X - 85f * this.scale, this.displayPosition.Y, 0.2f, true);
this.scales[(currentVolume - 2 + 11) % 11].GoTo(0f, 0.2f, true);
this.positions[(currentVolume + 2) % 11].GoTo(this.displayPosition.X + 85f * this.scale, this.displayPosition.Y, 0.2f, true);
this.scales[(currentVolume + 2) % 11].GoTo(0f, 0.2f, true);
// "clean up" all others...
for (int i = 0; i <= 10; i++)
{
if (i != currentVolume
& i != (currentVolume - 1 + 11) % 11
& i != (currentVolume - 2 + 11) % 11
& i != (currentVolume + 1 + 11) % 11
& i != (currentVolume + 2 + 11) % 11)
{
this.positions[i].Set(this.displayPosition.X, this.displayPosition.Y);
this.scales[i].SetValue(0f);
}
}
}