示例#1
0
        //UI
        void OnGUI()
        {
            checkValidity();
            if (_ui == null || !_ui._isInitialized)
            {
                GUILayout.Label("Initializing ui...");
                return;
            }

            SketchfabPlugin.displayHeader();

            GUILayout.Space(SketchfabPlugin.SPACE_SIZE);

            showModelProperties();

            GUILayout.Space(SketchfabPlugin.SPACE_SIZE);
            showOptions();

            bool enable = updateExporterStatus();

            if (enable)
            {
                GUI.color = SketchfabUI.SKFB_BLUE;
            }
            else
            {
                GUI.color = Color.white;
            }

            GUI.enabled = enable;
            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();

            if (GUILayout.Button(status, GUILayout.Width(250), GUILayout.Height(40)))
            {
                if (!enable)
                {
                    EditorUtility.DisplayDialog("Error", status, "Ok");
                }
                else
                {
                    proceedToExportAndUpload();
                }
            }

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUI.color = Color.white;

            SketchfabPlugin.displayFooter();
        }
示例#2
0
        // UI
        void OnGUI()
        {
            checkValidity();
            SketchfabPlugin.displayHeader();

            if (_currentUid.Length > 0)
            {
                displaySeparatedModelPage();
            }

            displaySearchOptions();
            displayNextPrev();
            _scrollView = GUILayout.BeginScrollView(_scrollView);
            displayResults();
            GUILayout.EndScrollView();

            SketchfabPlugin.displayFooter();
        }
        // UI
        void OnGUI()
        {
            checkValidity();
            SketchfabPlugin.displayHeader();

            if (_currentUid.Length > 0)
            {
                displaySeparatedModelPage();
            }

            displaySearchOptions();
            displayNextPrev();
            _scrollView = GUILayout.BeginScrollView(_scrollView);
            displayResults();
            GUILayout.EndScrollView();

            if (_searchInIndex == SEARCH_IN.MY_STORE_PURCHASES && !_browserManager.hasResults())
            {
                if (_query.Length > 0)
                {
                    displayCenteredMessage("There is no result for '" + _query + "' in your purchases.");
                }
                else
                {
                    displayCenteredMessage("It looks like you didn't do any purchase yet on Sketchfab Store");
                }
            }

            if (_searchInIndex == SEARCH_IN.MY_MODELS && _logger.isUserLogged() && !_logger.canAccessOwnModels())
            {
                if (_query.Length > 0)
                {
                    displayCenteredMessage("There is no result for '" + _query + "' in your .");
                }
                else
                {
                    displayCenteredMessage("It look like you don't have any model or your plan doesn't allow you to access them");
                }

                displayFooter();
            }

            SketchfabPlugin.displayFooter();
        }
示例#4
0
        // UI
        private void OnGUI()
        {
            checkValidity();
            SketchfabPlugin.displayHeader();

            if (_ui == null)
            {
                return;
            }

            handleDragNDrop();

            _scrollView = GUILayout.BeginScrollView(_scrollView);
            displayInputInfos();
            displayImportDirectory();
            displayImportOptions();
            GUILayout.EndScrollView();

            displayImportButton();

            SketchfabPlugin.displayFooter();
        }
示例#5
0
        // UI
        void OnGUI()
        {
            checkValidity();
            SketchfabPlugin.displayHeader();

            if (_currentUid.Length > 0)
            {
                displaySeparatedModelPage();
            }

            displaySearchOptions();
            displayNextPrev();
            _scrollView = GUILayout.BeginScrollView(_scrollView);
            displayResults();
            GUILayout.EndScrollView();
            if (_myModels && _logger.isUserLogged() && !_logger.canAccessOwnModels())
            {
                displayUpgradeToPro();
            }


            SketchfabPlugin.displayFooter();
        }