Esempio n. 1
0
        void OnEnable()
        {
            //set up other class instances
            userSettings = IFXToolsUserSettings.GetUserSettings();
            userSettings.LoadUserSettings();
            thumbnailToolInstance = new IFXThumbnailTool();
            bundleTools           = (IFXBundleTools )ScriptableObject.CreateInstance(typeof(IFXBundleTools));
            bundleTools.Init(userSettings);

            //other
            bundlesBuilding = false;

            //Set defualt checkmarks
            buildQACheckOverride = false;
            windowsBuildYesNo    = true;
            androidBuildYesNo    = true;
            iOSBuildYesNo        = true;
            altCenterMethod      = false;
            hardResetCache       = false;

            //disable auto git for non content team mode
            if (userSettings.CTMode())
            {
                autoGitYesNo = true;
            }
            else
            {
                autoGitYesNo = false;
            }
        }
        void OnEnable()
        {
            thumbnailToolInstance = new IFXThumbnailTool();
            thumbnailToolInstance.ThumbnailSetup(thumbnailToolInstance.ifxObject);
            userSettings = IFXToolsUserSettings.GetUserSettings();
            userSettings.LoadUserSettings();


            if (thumbnailPreview == null)
            {
                thumbnailPreview = new IFXThumbnailToolThumbnailPreviewWindow(thumbnailToolInstance);
                //thumbnailPreview = GetWindow<IFXThumbnailToolThumbnailPreviewWindow>();
            }
            thumbnailPreview.position.Set(0, 0, thumbnailToolInstance.imageResolutionWidth, thumbnailToolInstance.imageResolutionHeight);

            //editorWindow.End();
            thumbnailPreview.Show();
        }