Camera flashes (bug associated with fullscreen)

This commit is contained in:
Braedon
2022-02-07 20:07:03 -05:00
parent 57b14c3f3e
commit 49ad157893
31 changed files with 2646 additions and 97 deletions

View File

@ -56,6 +56,7 @@ namespace RhythmHeavenMania.Editor
private string remixName = "";
private bool fullscreen;
public bool discordDuringTesting = false;
public bool canSelect = true;
public static Editor instance { get; private set; }
@ -63,6 +64,7 @@ namespace RhythmHeavenMania.Editor
{
instance = this;
Initializer = GetComponent<Initializer>();
canSelect = true;
}
public void Init()
@ -134,7 +136,7 @@ namespace RhythmHeavenMania.Editor
}
}
if (Timeline.instance.timelineState.selected)
if (Timeline.instance.timelineState.selected && Editor.instance.canSelect)
{
if (Input.GetMouseButtonUp(0))
{
@ -408,5 +410,10 @@ namespace RhythmHeavenMania.Editor
{
GameEventSelectorTitle.text = txt;
}
public static bool MouseInRectTransform(RectTransform rectTransform)
{
return (rectTransform.gameObject.activeSelf && RectTransformUtility.RectangleContainsScreenPoint(rectTransform, Input.mousePosition, Editor.instance.EditorCamera));
}
}
}