コード例 #1
0
        protected void DrawConfig()
        {
            EditorGUILayout.BeginVertical(GUI.skin.box);
            // m_ConfigDrawer.DrawResolutionTitleGUI();
            m_ConfigAsset.m_Config.m_ShowResolutions = EditorGUILayout.Foldout(m_ConfigAsset.m_Config.m_ShowResolutions, "Devices".ToUpper());



            if (m_ConfigAsset.m_ExpandDevices)
            {
                m_ConfigDrawer.m_Expanded = true;
                if (GUILayout.Button("Hide device settings"))
                {
                    m_ConfigAsset.m_ExpandDevices = false;
                    m_ConfigDrawer.m_Expanded     = false;
                }
            }
            else
            {
                m_ConfigDrawer.m_Expanded = false;
                if (GUILayout.Button("Expand device settings "))
                {
                    m_ConfigAsset.m_ExpandDevices = true;
                    m_ConfigDrawer.m_Expanded     = true;
                }
            }

            EditorGUILayout.Separator();

            m_ConfigDrawer.DrawResolutionContentGUI();

            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawFolderGUI();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawNameGUI();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawDelay(false);
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();


            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigAsset.m_Config.m_ShowUtils = EditorGUILayout.Foldout(m_ConfigAsset.m_Config.m_ShowUtils, "Hotkeys".ToUpper());
            if (m_ConfigAsset.m_Config.m_ShowUtils != false)
            {
                EditorGUILayout.Separator();
                EditorGUILayout.HelpBox("Note that you can use the Tools menu item hotkeys to Update the preview and Export the screenshots to files. " +
                                        "You can customize them by editing the UpdateDevicePreviewMenuItem.cs and ExportDevicePreviewMenuItem.cs scripts.", MessageType.Info);
            }
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawUsage();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();
        }
コード例 #2
0
        protected void DrawConfig()
        {
            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigAsset.m_Config.m_ShowResolutions = EditorGUILayout.Foldout(m_ConfigAsset.m_Config.m_ShowResolutions, "Devices".ToUpper());

            if (m_ConfigAsset.m_ExpandDevices)
            {
                m_ConfigDrawer.m_Expanded = true;
                if (GUILayout.Button("Hide device settings"))
                {
                    m_ConfigAsset.m_ExpandDevices = false;
                    m_ConfigDrawer.m_Expanded     = false;
                }
            }
            else
            {
                m_ConfigDrawer.m_Expanded = false;
                if (GUILayout.Button("Expand device settings "))
                {
                    m_ConfigAsset.m_ExpandDevices = true;
                    m_ConfigDrawer.m_Expanded     = true;
                }
            }

            EditorGUILayout.Separator();

            m_ConfigDrawer.DrawResolutionContentGUI();

            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            DrawGallerySettings();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawFolderGUI();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawNameGUI();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawDelay(false);
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();


            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigAsset.m_Config.m_ShowUtils = EditorGUILayout.Foldout(m_ConfigAsset.m_Config.m_ShowUtils, "Hotkeys".ToUpper());
            if (m_ConfigAsset.m_Config.m_ShowUtils != false)
            {
                EditorGUILayout.Separator();
                EditorGUILayout.LabelField("Default hotkeys: Update preview (F5) Export preview (F6)");
                EditorGUILayout.HelpBox("You can customize the hotkeys by editing the UpdateDevicePreviewMenuItem.cs and ExportDevicePreviewMenuItem.cs scripts.", MessageType.Info);
            }
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();

            EditorGUILayout.BeginVertical(GUI.skin.box);
            m_ConfigDrawer.DrawUsage();
            EditorGUILayout.EndVertical();
            EditorGUILayout.Separator();
        }