mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
two fixes (#564)
* fix inactive voice and warnings not disappearing * mr upbeat inactive thingy
This commit is contained in:
parent
8903ffec60
commit
33490298c8
2 changed files with 5 additions and 5 deletions
|
@ -706,7 +706,7 @@ namespace HeavenStudio.Games
|
|||
break;
|
||||
}
|
||||
|
||||
if (songPos >= wordClearTime && songPos < wordStartTime) {
|
||||
if (songPos >= wordClearTime || songPos < wordStartTime) {
|
||||
Word.Play("NoPose");
|
||||
}
|
||||
|
||||
|
@ -780,10 +780,10 @@ namespace HeavenStudio.Games
|
|||
|
||||
public void DoWord(double beat, double length, int type, bool pitchVoice, float forcePitch, bool customLength, bool doSound = true)
|
||||
{
|
||||
Word.Play(DoWordSound(beat, length, type, customLength, pitchVoice, forcePitch, doSound));
|
||||
Word.Play(DoWordSound(beat, length, type, pitchVoice, forcePitch, customLength, doSound));
|
||||
}
|
||||
|
||||
public static string DoWordSound(double beat, double length, int type, bool customLength, bool pitchVoice = false, float forcePitch = 1, bool doSound = true)
|
||||
public static string DoWordSound(double beat, double length, int type, bool pitchVoice = false, float forcePitch = 1, bool customLength = false, bool doSound = true)
|
||||
{
|
||||
double clear = type switch {
|
||||
<= (int)HitThree.HitFour => beat + 4f,
|
||||
|
|
|
@ -99,7 +99,7 @@ namespace HeavenStudio.Games.Loaders
|
|||
},
|
||||
new GameAction("countOffbeat", "Count")
|
||||
{
|
||||
function = delegate { MrUpbeat.Count(eventCaller.currentEntity["number"]); },
|
||||
inactiveFunction = delegate { MrUpbeat.Count(eventCaller.currentEntity["number"]); },
|
||||
parameters = new List<Param>()
|
||||
{
|
||||
new Param("number", MrUpbeat.Counts.One, "Number", "The sound to play"),
|
||||
|
|
Loading…
Reference in a new issue