mirror of
https://github.com/ppy/osu
synced 2025-02-28 00:21:52 +00:00
Allow setting looping to existing channels
This commit is contained in:
parent
d1cbd11d28
commit
cb8fe89b8b
@ -35,7 +35,18 @@ namespace osu.Game.Skinning
|
||||
this.audio = audio;
|
||||
}
|
||||
|
||||
public bool Looping;
|
||||
private bool looping;
|
||||
|
||||
public bool Looping
|
||||
{
|
||||
get => looping;
|
||||
set
|
||||
{
|
||||
looping = value;
|
||||
|
||||
channels.ForEach(c => c.Looping = looping);
|
||||
}
|
||||
}
|
||||
|
||||
public void Play() => channels?.ForEach(c => c.Play());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user