Use correct frame indices in the asset browser

with total frame count in parentheses.
This commit is contained in:
Taryn Hill
2015-03-03 21:44:26 -06:00
parent 43c3621ef6
commit 7b16ba5d42

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");