Core - Rename const 'GameTickInMilliseconds' -> 'GAMETICK_IN_MILLISECONDS'

This commit is contained in:
miku-666
2025-11-13 15:25:28 +01:00
parent c8ac0438b6
commit e371406bfd
2 changed files with 4 additions and 3 deletions

View File

@@ -14,11 +14,11 @@ namespace PckStudio.Core.Extensions
return null;
}
var ms = new System.IO.MemoryStream();
var generateor = new AnimatedGifCreator(ms, GameConstants.GameTickInMilliseconds, 0);
var generateor = new AnimatedGifCreator(ms, GameConstants.GAMETICK_IN_MILLISECONDS, 0);
foreach (Animation.Frame frame in animation.GetInterpolatedFrames())
{
Image texture = (blendColor == Color.Black || blendColor == Color.White) ? frame.Texture : frame.Texture.Blend(blendColor, BlendMode.Multiply);
generateor.AddFrame(texture, frame.Ticks * GameConstants.GameTickInMilliseconds, GifQuality.Bit8);
generateor.AddFrame(texture, frame.Ticks * GameConstants.GAMETICK_IN_MILLISECONDS, GifQuality.Bit8);
}
ms.Position = 0;
return Image.FromStream(ms);