예제 #1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        ScenesWindow window = (ScenesWindow)EditorWindow.GetWindow(typeof(ScenesWindow), false, "Scenes");

        window.minSize = new Vector2(100, 25);
        window.OnInspectorUpdate();
    }
예제 #2
0
    public static void InitGUI()
    {
        chapterWindow      = new ChapterWindow(windowRect, new GUIContent(TC.get("Element.Name0")), "Window");
        scenesWindow       = new ScenesWindow(windowRect, new GUIContent(TC.get("Element.Name1")), "Window");
        cutscenesWindow    = new CutscenesWindow(windowRect, new GUIContent(TC.get("Element.Name9")), "Window");
        booksWindow        = new BooksWindow(windowRect, new GUIContent(TC.get("Element.Name11")), "Window");
        itemsWindow        = new ItemsWindow(windowRect, new GUIContent(TC.get("Element.Name18")), "Window");
        setItemsWindow     = new SetItemsWindow(windowRect, new GUIContent(TC.get("Element.Name59")), "Window");
        playerWindow       = new PlayerWindow(windowRect, new GUIContent(TC.get("Element.Name26")), "Window");
        characterWindow    = new CharactersWindow(windowRect, new GUIContent(TC.get("Element.Name27")), "Window");
        conversationWindow = new ConversationWindow(windowRect, new GUIContent(TC.get("Element.Name31")),
                                                    "Window");
        advencedFeaturesWindow = new AdvencedFeaturesWindow(windowRect,
                                                            new GUIContent(TC.get("AdvancedFeatures.Title")), "Window");
        //adapatationProfileWindow = new AdaptationProfileWindow(windowRect,
        //    new GUIContent(Language.GetText("ADAPTATION_PROFILES")), "Window");
        //assesmentProfileWindow = new AssesmentProfileWindow(windowRect,
        //    new GUIContent(Language.GetText("ASSESMENT_PROFILES")), "Window");


        // Left menu buttons
        leftMenuContentScene       = new GUIContent();
        leftMenuContentScene.image = (Texture2D)sceneTexture;
        leftMenuContentScene.text  = TC.get("Element.Name1");

        leftMenuContentCutscene       = new GUIContent();
        leftMenuContentCutscene.image = (Texture2D)cutsceneTexture;
        leftMenuContentCutscene.text  = TC.get("Element.Name9");

        leftMenuContentBook       = new GUIContent();
        leftMenuContentBook.image = (Texture2D)bookTexture;
        leftMenuContentBook.text  = TC.get("Element.Name11");

        leftMenuContentItem       = new GUIContent();
        leftMenuContentItem.image = (Texture2D)itemTexture;
        leftMenuContentItem.text  = TC.get("Element.Name18");

        leftMenuContentSetItem       = new GUIContent();
        leftMenuContentSetItem.image = (Texture2D)setItemTexture;
        leftMenuContentSetItem.text  = TC.get("Element.Name59");

        leftMenuContentPlayer       = new GUIContent();
        leftMenuContentPlayer.image = (Texture2D)playerTexture;
        leftMenuContentPlayer.text  = TC.get("Element.Name26");

        leftMenuContentCharacter       = new GUIContent();
        leftMenuContentCharacter.image = (Texture2D)characterTexture;
        leftMenuContentCharacter.text  = TC.get("Element.Name27");

        leftMenuContentConversation       = new GUIContent();
        leftMenuContentConversation.image = (Texture2D)conversationTexture;
        leftMenuContentConversation.text  = TC.get("Element.Name31");

        leftMenuContentAdvanced       = new GUIContent();
        leftMenuContentAdvanced.image = (Texture2D)advancedTexture;
        leftMenuContentAdvanced.text  = TC.get("AdvancedFeatures.Title");
    }
예제 #3
0
    private void OnGUI()
    {
        EditorGUILayout.Separator();

        PlayerSettings.companyName = EditorGUILayout.TextField("Company Name", PlayerSettings.companyName);
        PlayerSettings.productName = EditorGUILayout.TextField("Product Name", PlayerSettings.productName);

        EditorGUILayout.Separator();
        GUILayout.Label("Version", _labelCenterBold);
        EditorGUILayout.Separator();

        EditorGUILayout.BeginHorizontal();
        {
            // TODO: I need MaxHeight to stop this and the buttons overlapping.
            _major = EditorGUILayout.IntField(_major, _numberFieldCenter, GUILayout.Height(24));
            _minor = EditorGUILayout.IntField(_minor, _numberFieldCenter, GUILayout.Height(24));
            _patch = EditorGUILayout.IntField(_patch, _numberFieldCenter, GUILayout.Height(24));
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        {
            if (GUILayout.Button("Major", GUILayout.Height(24)))
            {
                _major++;
                _minor = 0;
                _patch = 0;
            }

            if (GUILayout.Button("Minor", GUILayout.Height(24)))
            {
                _minor++;
                _patch = 0;
            }

            if (GUILayout.Button("Patch", GUILayout.Height(24)))
            {
                _patch++;
            }
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.Separator();
        GUILayout.Label("Scenes", _labelCenterBold);
        EditorGUILayout.Separator();

        if (GUILayout.Button("Scenes", _buttonLeft))
        {
            ScenesWindow scenesWindow = GetWindow <ScenesWindow>(false, "Scenes");
            scenesWindow.ShowUtility();
        }

        EditorGUILayout.Separator();
        GUILayout.Label("Debug", _labelCenterBold);
        EditorGUILayout.Separator();

        _settings.autoconnectProfiler =
            EditorGUILayout.Toggle("Autoconnect Profiler", _settings.autoconnectProfiler);
        _settings.deepProfilingSupport =
            EditorGUILayout.Toggle("Deep Profiling Support", _settings.deepProfilingSupport);
        _settings.buildAndRun = EditorGUILayout.Toggle("Build and Run", _settings.buildAndRun);

        EditorGUILayout.Separator();


        if (GUILayout.Button("Debug Windows", _buttonLeft) &&
            !BuildPipeline.isBuildingPlayer)
        {
            Build(ScriptingImplementation.Mono2x, BuildTarget.StandaloneWindows64, true);
        }

        if (GUILayout.Button("Debug Windows (IL2CPP)", _buttonLeft) && !BuildPipeline.isBuildingPlayer)
        {
            Build(ScriptingImplementation.IL2CPP, BuildTarget.StandaloneWindows64, true);
        }

        EditorGUILayout.Separator();
        GUILayout.Label("Release", _labelCenterBold);
        EditorGUILayout.Separator();

        if (GUILayout.Button("Release Windows | Mac | Linux", _buttonLeft) && !BuildPipeline.isBuildingPlayer)
        {
            Build(ScriptingImplementation.Mono2x, BuildTarget.StandaloneWindows64);
            Build(ScriptingImplementation.Mono2x, BuildTarget.StandaloneOSX);
            Build(ScriptingImplementation.Mono2x, BuildTarget.StandaloneLinux64);
        }

        if (GUILayout.Button("Release Windows | Mac | Linux (IL2CPP)", _buttonLeft) &&
            !BuildPipeline.isBuildingPlayer)
        {
            Build(ScriptingImplementation.IL2CPP, BuildTarget.StandaloneWindows64);
            Build(ScriptingImplementation.IL2CPP, BuildTarget.StandaloneOSX);
            Build(ScriptingImplementation.IL2CPP, BuildTarget.StandaloneLinux64);
        }
    }
예제 #4
0
 internal void Init(ScenesWindow scenesWindow)
 {
     _scenesWindow = scenesWindow;
 }