[longomatch] Update game units timeline too



commit 0a82757e4e5da72359d8e1d03f686a9ef6e670e0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Feb 2 23:35:29 2012 +0100

    Update game units timeline too

 LongoMatch.GUI/Gui/MainWindow.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index e88bcda..e025996 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -681,12 +681,13 @@ namespace LongoMatch.Gui
 		protected virtual void OnTick(object o, long currentTime, long streamLength,
 			float currentPosition, bool seekable)
 		{
-			if(currentTime != 0 && timeline != null && openedProject != null)
-				timeline.CurrentFrame=(uint)(currentTime *
-				                             openedProject.Description.File.Fps / 1000);
+			if(currentTime != 0 && timeline != null && openedProject != null) {
+				uint frame = (uint)(currentTime * openedProject.Description.File.Fps / 1000);
+				timeline.CurrentFrame = frame;
+				guTimeline.CurrentFrame = frame;
+			}
 			gameunitstaggerwidget1.CurrentTime = new Time{MSeconds = (int)currentTime};
 		}
-
 		
 		protected virtual void OnUpdate(Version version, string URL) {
 			LongoMatch.Gui.Dialog.UpdateDialog updater = new LongoMatch.Gui.Dialog.UpdateDialog();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]