Use correct frame indices in the asset browser
with total frame count in parentheses.
This commit is contained in:
@@ -134,7 +134,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
frameText.GetText = () =>
|
frameText.GetText = () =>
|
||||||
isVideoLoaded ?
|
isVideoLoaded ?
|
||||||
"{0} / {1}".F(player.Video.CurrentFrame + 1, player.Video.Frames) :
|
"{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");
|
var playButton = panel.GetOrNull<ButtonWidget>("BUTTON_PLAY");
|
||||||
|
|||||||
Reference in New Issue
Block a user