Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
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();
            }
        }