mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 03:07:38 +02:00
Camera flashes (bug associated with fullscreen)
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user