mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
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 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
{
|
{
|
||||||
public StoryboardAnimation Animation { get; private set; }
|
public StoryboardAnimation Animation { get; private set; }
|
||||||
|
|
||||||
public bool FlipH { get; set; }
|
private bool flipH;
|
||||||
public bool FlipV { get; set; }
|
|
||||||
|
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;
|
private Vector2 vectorScale = Vector2.One;
|
||||||
|
|
||||||
|
@ -17,8 +17,35 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
{
|
{
|
||||||
public StoryboardSprite Sprite { get; private set; }
|
public StoryboardSprite Sprite { get; private set; }
|
||||||
|
|
||||||
public bool FlipH { get; set; }
|
private bool flipH;
|
||||||
public bool FlipV { get; set; }
|
|
||||||
|
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;
|
private Vector2 vectorScale = Vector2.One;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user