Exemplo n.º 1
0
    private static void LoadWindow()
    {
        _initializationFocusCounter = 5;

        _window = EditorWindow.GetWindow <VoxReporter>(false, "Reporter");
        //_window.titleContent.image = (Texture)AssetDatabase.LoadAssetAtPath("Assets/Framework/Resources/VoxEditorData/VoxLogo32.png", typeof(Texture));
        float __screenWidth  = 600f;
        float __screenHeight = (_showScreenShots == true) ? 440f : 280f;

        _window.position = new Rect((Screen.currentResolution.width * .5f) - __screenWidth / 2f, (Screen.currentResolution.height * .5f) - __screenHeight / 2f, __screenWidth, __screenHeight);
        _window.Focus();
        ResetWindow();
    }
Exemplo n.º 2
0
    private static void ResetWindow()
    {
        if (_window == null)
        {
            _window = EditorWindow.GetWindow <VoxReporter>(false, "Reporter");
        }

        VoxUtility.onTakeScreenshot -= HandleOnTakeScreenshot;
        VoxUtility.onTakeScreenshot += HandleOnTakeScreenshot;

        _isInitialization = true;

        _screenshotCount = 1;

        _bugID           = UnityEngine.Random.Range(1, 99999);
        _titleText       = string.Empty;
        _descriptionText = string.Empty;
        _listScreenShots = new List <Texture2D>();
    }