示例#1
0
        public void OnGUI()
        {
            menu.OnGUI();
            componentPlayer.OnGUI();

            GUILayout.BeginHorizontal();
            {
                GUILayout.FlexibleSpace();
                componentLoopSearch.OnGUI();
                GUILayout.FlexibleSpace();
            }
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            {
                GUILayout.BeginVertical(GUILayout.Width(Screen.width / 2.0f));
                {
                    GUILayout.Label(new GUIContent("Input", "StyleLoopTool.LabelInput"), GuiStyleSet.StyleLoopTool.labelInput);
                    GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundInput"), GuiStyleSet.StyleLoopTool.backgroundInput);
                    componentDirectoryBarInput.OnGUI();
                    componentInputlist.OnGUI();
                }
                GUILayout.EndVertical();

                GUILayout.BeginVertical(GUILayout.Width(Screen.width / 2.0f));
                {
                    GUILayout.Label(new GUIContent("Output", "StyleLoopTool.LabelOutput"), GuiStyleSet.StyleLoopTool.labelOutput);
                    GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundOutput"), GuiStyleSet.StyleLoopTool.backgroundOutput);
                    componentDirectoryBarOutput.OnGUI();
                    componentPlaylist.OnGUI();
                }
                GUILayout.EndVertical();
            }
            GUILayout.EndHorizontal();

            if (GUI.tooltip != "" && GUI.tooltip != tooltipPrevious)
            {
                Logger.BreakDebug(GUI.tooltip);
                tooltipPrevious = GUI.tooltip;
            }
        }
示例#2
0
        public void OnGUI()
        {
            menu.OnGUI();

            componentLoopEditor.OnGUI();

            GUILayout.BeginArea(new Rect(GuiSettings.GuiSettingLoopEditor.searchLeft, GuiSettings.GuiSettingLoopEditor.searchTop, Screen.width, Screen.height));
            {
                componentLoopSearch.OnGUI();
            }
            GUILayout.EndArea();

            GUILayout.BeginArea(new Rect(GuiSettings.GuiSettingLoopEditor.textLeft, GuiSettings.GuiSettingLoopEditor.textTop, Screen.width, Screen.height));
            {
                GUILayout.BeginHorizontal();
                {
                    GUILayout.BeginHorizontal(GuiStyleSet.StyleGeneral.box);
                    {
                        componentLoopSelector.Edit();
                        componentLoopSave.OnGUI();

                        if (mode == Mode.Search)
                        {
                            GUILayout.Toggle(true, "", GuiStyleSet.StyleLoopTool.toggleModeSearch);

                            if (GUILayout.Toggle(false, "", GuiStyleSet.StyleLoopTool.toggleModeEditor) == true)
                            {
                                Debug.Log("Editor");
                                mode = Mode.Editor;
                            }
                        }
                        else
                        {
                            if (GUILayout.Toggle(false, "", GuiStyleSet.StyleLoopTool.toggleModeSearch) == true)
                            {
                                Debug.Log("Search");
                                mode = Mode.Search;
                            }

                            GUILayout.Toggle(true, "", GuiStyleSet.StyleLoopTool.toggleModeEditor);
                        }
                    }
                    GUILayout.EndHorizontal();

                    GUILayout.FlexibleSpace();
                }
                GUILayout.EndHorizontal();
            }
            GUILayout.EndArea();

            GUILayout.BeginArea(new Rect(0, GuiSettings.GuiSettingLoopEditor.tableTop, Screen.width, Screen.height));
            {
                GUILayout.BeginHorizontal();
                {
                    if (mode == Mode.Search)
                    {
                        GUILayout.BeginVertical(GUILayout.Width(Screen.width - GuiSettings.GuiSettingLoopEditor.widthTableOutput));
                        {
                            GUILayout.BeginHorizontal();
                            {
                                GUILayout.Label(new GUIContent("Input", "StyleLoopTool.LabelInput"), GuiStyleSet.StyleLoopTool.labelInput);
                                componentDirectoryBarInput.OnGUI();
                            }
                            GUILayout.EndHorizontal();

                            GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundInput"), GuiStyleSet.StyleLoopTool.backgroundInput);

                            componentInputlist.OnGUI();
                        }
                        GUILayout.EndVertical();
                    }

                    GUILayout.BeginVertical(GUILayout.Width(GuiSettings.GuiSettingLoopEditor.widthTableOutput));
                    {
                        GUILayout.BeginHorizontal();
                        {
                            GUILayout.Label(new GUIContent("Output", "StyleLoopTool.LabelOutput"), GuiStyleSet.StyleLoopTool.labelOutput);
                            componentDirectoryBarOutput.OnGUI();
                        }
                        GUILayout.EndHorizontal();

                        GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundOutput"), GuiStyleSet.StyleLoopTool.backgroundOutput);

                        componentPlaylist.OnGUI();
                    }
                    GUILayout.EndVertical();

                    if (mode == Mode.Editor)
                    {
                        GUILayout.BeginVertical(GUILayout.Width(Screen.width - GuiSettings.GuiSettingLoopEditor.widthTableOutput));
                        {
                            GUILayout.Label(new GUIContent("Edit", "StyleLoopTool.LabelOutput"), GuiStyleSet.StyleLoopTool.labelInput);
                            GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundOutput"), GuiStyleSet.StyleLoopTool.backgroundInput);
                            componentLoopSelector.OnGUI();
                        }
                        GUILayout.EndVertical();
                    }
                }
                GUILayout.EndHorizontal();
            }
            GUILayout.EndArea();

            GUILayout.BeginArea(new Rect(Screen.width - 100, 32, 80, 32));
            {
                GUILayout.BeginHorizontal();
                {
                }
                GUILayout.EndHorizontal();
            }
            GUILayout.EndArea();

            if (GUI.tooltip != "" && GUI.tooltip != tooltipPrevious)
            {
                Logger.BreakDebug(GUI.tooltip);
                tooltipPrevious = GUI.tooltip;
            }
        }