mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:03:01 +08:00
Rename variables
This commit is contained in:
parent
539806e9d6
commit
ce837eaba0
@ -115,11 +115,11 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textureStore, Storyboard storyboard)
|
private void load(TextureStore textureStore, Storyboard storyboard)
|
||||||
{
|
{
|
||||||
for (int frame = 0; frame < Animation.FrameCount; frame++)
|
for (int frameIndex = 0; frameIndex < Animation.FrameCount; frameIndex++)
|
||||||
{
|
{
|
||||||
string framePath = Animation.Path.Replace(".", frame + ".");
|
string framePath = Animation.Path.Replace(".", frameIndex + ".");
|
||||||
Drawable sprite = storyboard.CreateSpriteFromResourcePath(framePath, textureStore) ?? Drawable.Empty();
|
Drawable frame = storyboard.CreateSpriteFromResourcePath(framePath, textureStore) ?? Drawable.Empty();
|
||||||
AddFrame(sprite, Animation.FrameDelay);
|
AddFrame(frame, Animation.FrameDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
Animation.ApplyTransforms(this);
|
Animation.ApplyTransforms(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user