mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 11:57:37 +02:00
Integration of Jukebox Library (#451)
* add Jukebox library todo: - saving / loading of new format - inferrence of unknown data like past versions - move the temporary float casts to proper use of double - make sound related functions take double for timing - inform people that the Jukebox sound player was renamed to SoundByte lol * make sound, input scheduling, and super curve use double precision * successfully load charts * editor works again v1 riqs can be saved and loaded * first tempo and volume markers are unmovable fix loading of charts' easing values * use gsync / freesync * update Jukebox refs to SoundByte * game events use double part 1 Air Rally - Glee Club converted * don't load song if chart load fails * finish conversion of all minigames * remove editor waveform toggle * timeline now respects added song offset length clear cache files on app close prepped notes for dsp sync * update timeline length when offset changed * update to latest Jukebox * make error panel object in global game manager * improve conductor music scheduling * added error message box fix first game events sometimes not playing
This commit is contained in:
@ -107,7 +107,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
missed = false;
|
||||
shouldBeHolding = true;
|
||||
|
||||
Jukebox.PlayOneShotGame("djSchool/recordStop");
|
||||
SoundByte.PlayOneShotGame("djSchool/recordStop");
|
||||
|
||||
anim.DoScaledAnimationAsync("Hold", 0.5f);
|
||||
tableAnim.DoScaledAnimationAsync("Student_Turntable_StartHold", 0.5f);
|
||||
@ -124,7 +124,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
//isHolding = true;
|
||||
if (canBoo)
|
||||
{
|
||||
Sound booSound = Jukebox.PlayOneShotGame("djSchool/boo", -1, 1, 0.8f);
|
||||
Sound booSound = SoundByte.PlayOneShotGame("djSchool/boo", -1, 1, 0.8f);
|
||||
CancelInvoke();
|
||||
canBoo = false;
|
||||
Invoke("EnableBoo", booSound.clip.length);
|
||||
@ -145,7 +145,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
|
||||
missed = true;
|
||||
|
||||
Jukebox.PlayOneShotGame("djSchool/recordStop");
|
||||
SoundByte.PlayOneShotGame("djSchool/recordStop");
|
||||
|
||||
anim.DoScaledAnimationAsync("Hold", 0.5f);
|
||||
tableAnim.DoScaledAnimationAsync("Student_Turntable_StartHold", 0.5f);
|
||||
@ -170,7 +170,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
anim.DoScaledAnimationAsync("Unhold", 0.5f);
|
||||
if (canBoo)
|
||||
{
|
||||
Sound booSound = Jukebox.PlayOneShotGame("djSchool/boo", -1, 1, 0.8f);
|
||||
Sound booSound = SoundByte.PlayOneShotGame("djSchool/boo", -1, 1, 0.8f);
|
||||
CancelInvoke();
|
||||
canBoo = false;
|
||||
Invoke("EnableBoo", booSound.clip.length);
|
||||
@ -190,7 +190,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
public void OnHitSwipeCheer(PlayerActionEvent caller, float beat)
|
||||
{
|
||||
OnHitSwipe(caller, beat);
|
||||
Jukebox.PlayOneShotGame("djSchool/cheer", caller.timer + caller.startBeat + 1f, 1, 0.8f);
|
||||
SoundByte.PlayOneShotGame("djSchool/cheer", caller.timer + caller.startBeat + 1f, 1, 0.8f);
|
||||
}
|
||||
public void OnHitSwipe(PlayerActionEvent caller, float beat)
|
||||
{
|
||||
@ -202,7 +202,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
|
||||
missed = false;
|
||||
shouldBeHolding = false;
|
||||
Jukebox.PlayOneShotGame("djSchool/recordSwipe");
|
||||
SoundByte.PlayOneShotGame("djSchool/recordSwipe");
|
||||
FlashFX(false);
|
||||
swiping = true;
|
||||
|
||||
@ -225,7 +225,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
else
|
||||
{
|
||||
OnMissSwipeForPlayerInput(caller.timer + caller.startBeat + 1f);
|
||||
Jukebox.PlayOneShotGame("djSchool/recordSwipe");
|
||||
SoundByte.PlayOneShotGame("djSchool/recordSwipe");
|
||||
BeatAction.New(gameObject, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(beat, delegate { anim.Play("Swipe", 0, 0); }),
|
||||
@ -249,7 +249,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
mixer.audioMixer.FindSnapshot("Main").TransitionTo(.01f);
|
||||
if (canBoo)
|
||||
{
|
||||
Sound booSound = Jukebox.PlayOneShotGame("djSchool/boo", caller.timer + caller.startBeat + 1f, 1, 0.8f);
|
||||
Sound booSound = SoundByte.PlayOneShotGame("djSchool/boo", caller.timer + caller.startBeat + 1f, 1, 0.8f);
|
||||
CancelInvoke();
|
||||
canBoo = false;
|
||||
Invoke("EnableBoo", booSound.clip.length);
|
||||
@ -268,7 +268,7 @@ namespace HeavenStudio.Games.Scripts_DJSchool
|
||||
});
|
||||
}
|
||||
|
||||
public void OnMissSwipeForPlayerInput(float beat)
|
||||
public void OnMissSwipeForPlayerInput(double beat)
|
||||
{
|
||||
isHolding = false;
|
||||
|
||||
|
Reference in New Issue
Block a user