mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
BUGFIX: Prevents Scrolling between cues mid-game
You can't scroll between the game event selector when the song is playing (Using the keyboard or scrollwheel). It's smoother especially when doing arrow inputs
This commit is contained in:
parent
defd64a56e
commit
f5bcd70756
1 changed files with 14 additions and 11 deletions
|
@ -39,21 +39,24 @@ namespace HeavenStudio.Editor
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
if (gameOpen)
|
if(!Conductor.instance.NotStopped())
|
||||||
{
|
{
|
||||||
if (Input.GetKeyDown(KeyCode.DownArrow))
|
if (gameOpen)
|
||||||
{
|
{
|
||||||
UpdateIndex(currentEventIndex + 1);
|
if (Input.GetKeyDown(KeyCode.DownArrow))
|
||||||
|
{
|
||||||
|
UpdateIndex(currentEventIndex + 1);
|
||||||
|
}
|
||||||
|
else if (Input.GetKeyDown(KeyCode.UpArrow))
|
||||||
|
{
|
||||||
|
UpdateIndex(currentEventIndex - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (Input.GetKeyDown(KeyCode.UpArrow))
|
|
||||||
{
|
|
||||||
UpdateIndex(currentEventIndex - 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Input.mouseScrollDelta.y != 0)
|
if (Input.mouseScrollDelta.y != 0)
|
||||||
{
|
{
|
||||||
UpdateIndex(currentEventIndex - Mathf.RoundToInt(Input.mouseScrollDelta.y));
|
UpdateIndex(currentEventIndex - Mathf.RoundToInt(Input.mouseScrollDelta.y));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue