public override bool FrameRenderingQueued( FrameEventArgs evt )
{
if ( heightUpdateCountdown > 0 )
{
heightUpdateCountdown -= evt.TimeSinceLastFrame;
if ( heightUpdateCountdown <= 0 )
{
terrainGroup.Update();
heightUpdateCountdown = 0;
}
}
//if ( terrainGroup.IsDerivedDataUpdateInProgress )
//{
// TrayManager.MoveWidgetToTray( infoLabel, TrayLocation.Top, 0 );
// infoLabel.Show();
// if ( terrainsImported )
// {
// infoLabel.Caption = "Building terrain, please wait..";
// }
// else
// {
// infoLabel.Caption = "Updating textures, patience...";
// }
//}
//else
{
TrayManager.RemoveWidgetFromTray( infoLabel );
infoLabel.Hide();
}
return base.FrameRenderingQueued( evt );
}
}