static void Initialize()
 {
     LoadDatabase();
     if (databaseLoaded)
     {
         SoundEventEditorView.Initialize();
     }
 }
Exemplo n.º 2
0
    /**
     * Initializes the sound event editor window
     */
    public static void Initialize()
    {
        SoundEventEditorView window = EditorWindow.GetWindow <SoundEventEditorView>();

        window.titleContent.text = "Events Editor";
        window.maxSize           = new Vector2(1000, 600);
        window.minSize           = window.maxSize;

        float x = (Screen.currentResolution.width - window.minSize.x) / 2.0f;
        float y = (Screen.currentResolution.height - window.minSize.y) / 2.0f;

        // Resizes / centers the window
        window.position = new Rect(x, y, window.minSize.x, window.minSize.y);
        window.Show();
    }