Esempio n. 1
0
 private void DrawToolPreference()
 {
     if (m_showPreference)
     {
         GUILayout.BeginArea(m_preferencePanelRect, ToolUtility.ToolPreferencePanelStyle);
         ToolsPreference.DrawPrefPanel(new ToolUtility.PreferenceChanged(PrefChanged));
         GUILayout.EndArea();
     }
 }
Esempio n. 2
0
        public void OnGUI()
        {
            bool flag = GUI.Toggle(m_ToggleButtonRect, ToolsPreference.GetBool(EToolPreference.ShowWelcomeScreen), "Show at Startup");

            if (flag != ToolsPreference.GetBool(EToolPreference.ShowWelcomeScreen))
            {
                ToolsPreference.SetBool(EToolPreference.ShowWelcomeScreen, flag);
            }
        }
Esempio n. 3
0
        public static void ShowWindow()
        {
            ToolWindow window = EditorWindow.GetWindow <ToolWindow>(false, "ToolEditor");

            window.maxSize = m_windowSize;
            window.minSize = m_windowSize;

            ToolsPreference.InitToolPref();
            if (ToolsPreference.GetBool(EToolPreference.ShowWelcomeScreen))
            {
                WelcomeScreen.ShowWindow();
            }
        }