Merge pull request #7580 from Phrohdoh/ab-logical-frame-counter

Use correct frame indices in the asset browser.
This commit is contained in:
Matthias Mailänder
2015-03-04 22:11:56 +01:00

View File

@@ -134,7 +134,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
frameText.GetText = () =>
isVideoLoaded ?
"{0} / {1}".F(player.Video.CurrentFrame + 1, player.Video.Frames) :
"{0} / {1}".F(currentFrame + 1, currentSprites.Length);
"{0} / {1}".F(currentFrame, currentSprites.Length - 1);
}
var playButton = panel.GetOrNull<ButtonWidget>("BUTTON_PLAY");