Exemple #1
0
        public static void ShowHelpWindow(string key)
        {
            if (instance == null)
            {
                instance = ScriptableObject.CreateInstance(typeof(SRHelpWindow)) as SRHelpWindow;
                instance.AddSection(new SRHelpSection("help.overview"));
                instance.AddSection(new SRHelpSection("help.intro"));
                instance.AddSection(new SRHelpSection("help.location.options"));

                instance.AddSection(new SRHelpSection("help.search.text"));
                instance.AddSection(new SRHelpSection("help.object.search"));
                instance.AddSection(new SRHelpSection("help.usage.vs.instance"));
                instance.AddSection(new SRHelpSection("help.search.results"));
                instance.AddSection(new SRHelpSection("help.replace.actions"));
                instance.AddSection(new SRHelpSection("help.property.search"));
                instance.AddSection(new SRHelpSection("help.instance.search"));
                instance.AddSection(new SRHelpSection("help.numeric.data"));
                instance.AddSection(new SRHelpSection("help.animation.clips"));
                instance.AddSection(new SRHelpSection("help.script.search"));
                instance.AddSection(new SRHelpSection("help.running.scripts"));
                instance.AddSection(new SRHelpSection("help.further.support"));
                instance.ShowUtility();
            }

            instance.SetSection(key);
        }
 void drawHelp()
 {
     if (GUILayout.Button(new GUIContent(EditorGUIUtility.FindTexture("_help")), SRWindow.richTextStyle, GUILayout.Width(20)))
     {
         SRHelpWindow.ShowHelpWindow("help.overview");
     }
 }
Exemple #3
0
 void OnDestroy()
 {
     instance = null;
 }