mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
Title screen logo skip (#602)
* commit * update --------- Co-authored-by: DoctorStupidest <>
This commit is contained in:
parent
96ff6ddf8b
commit
a4283c93bc
1 changed files with 44 additions and 27 deletions
|
@ -122,12 +122,14 @@ namespace HeavenStudio
|
||||||
selectedDisplayAnim.DoNormalizedAnimation("Idle", GetPositionFromBeat(0, 2));
|
selectedDisplayAnim.DoNormalizedAnimation("Idle", GetPositionFromBeat(0, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logoRevealed && !menuMode)
|
if (!menuMode && songPosBeat >= 0.5)
|
||||||
{
|
{
|
||||||
var controllers = PlayerInput.GetInputControllers();
|
var controllers = PlayerInput.GetInputControllers();
|
||||||
foreach (var newController in controllers)
|
foreach (var newController in controllers)
|
||||||
{
|
{
|
||||||
if (newController.GetLastButtonDown(true) > 0)
|
if (newController.GetLastButtonDown(true) > 0)
|
||||||
|
{
|
||||||
|
if (logoRevealed)
|
||||||
{
|
{
|
||||||
menuMode = true;
|
menuMode = true;
|
||||||
firstPress = true;
|
firstPress = true;
|
||||||
|
@ -162,6 +164,11 @@ namespace HeavenStudio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SkipToBeat(5);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,6 +425,16 @@ namespace HeavenStudio
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SkipToBeat(double beat)
|
||||||
|
{
|
||||||
|
if (songPosBeat >= beat) return;
|
||||||
|
double seconds = BeatsToSecs(beat, bpm);
|
||||||
|
time = seconds;
|
||||||
|
songPos = time + offset;
|
||||||
|
songPosBeat = SecsToBeats(songPos);
|
||||||
|
musicSource.time = (float)time;
|
||||||
|
}
|
||||||
|
|
||||||
public void CreatePressed()
|
public void CreatePressed()
|
||||||
{
|
{
|
||||||
if (exiting) return;
|
if (exiting) return;
|
||||||
|
|
Loading…
Reference in a new issue