mirror of https://github.com/ppy/osu
Fix storyboard flipping potentially not having an effect (#7260)
Fix storyboard flipping potentially not having an effect
This commit is contained in:
commit
69f888fc49
|
@ -17,8 +17,35 @@ public class DrawableStoryboardAnimation : TextureAnimation, IFlippable, IVector
|
|||
{
|
||||
public StoryboardAnimation Animation { get; private set; }
|
||||
|
||||
public bool FlipH { get; set; }
|
||||
public bool FlipV { get; set; }
|
||||
private bool flipH;
|
||||
|
||||
public bool FlipH
|
||||
{
|
||||
get => flipH;
|
||||
set
|
||||
{
|
||||
if (flipH == value)
|
||||
return;
|
||||
|
||||
flipH = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private bool flipV;
|
||||
|
||||
public bool FlipV
|
||||
{
|
||||
get => flipV;
|
||||
set
|
||||
{
|
||||
if (flipV == value)
|
||||
return;
|
||||
|
||||
flipV = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private Vector2 vectorScale = Vector2.One;
|
||||
|
||||
|
|
|
@ -17,8 +17,35 @@ public class DrawableStoryboardSprite : Sprite, IFlippable, IVectorScalable
|
|||
{
|
||||
public StoryboardSprite Sprite { get; private set; }
|
||||
|
||||
public bool FlipH { get; set; }
|
||||
public bool FlipV { get; set; }
|
||||
private bool flipH;
|
||||
|
||||
public bool FlipH
|
||||
{
|
||||
get => flipH;
|
||||
set
|
||||
{
|
||||
if (flipH == value)
|
||||
return;
|
||||
|
||||
flipH = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private bool flipV;
|
||||
|
||||
public bool FlipV
|
||||
{
|
||||
get => flipV;
|
||||
set
|
||||
{
|
||||
if (flipV == value)
|
||||
return;
|
||||
|
||||
flipV = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private Vector2 vectorScale = Vector2.One;
|
||||
|
||||
|
|
Loading…
Reference in New Issue