public static bool OpenWikiPage(string topic)
        {
            int wikiPageNumber = EditorCommands.GetWikiPageNumber(topic);

            if (wikiPageNumber > 0)
            {
                EditorCommands.OpenWikiPage(wikiPageNumber);
                return(true);
            }
            return(false);
        }
示例#2
0
        public static void CaptureStateInspectorAction(Rect region, string actionName, int actionIndex)
        {
            if (DocHelpers.sw == null)
            {
                Debug.LogError("Must call StartStateActionListCapture first!");
                return;
            }
            Debug.Log("CaptureStateInspectorAction: " + actionName);
            string text = Labels.StripNamespace(actionName);

            actionName = string.Concat(new object[]
            {
                SkillEditor.SelectedFsmGameObject.get_name(),
                "_",
                SkillEditor.SelectedFsm.get_Name(),
                "_",
                SkillEditor.SelectedState.get_Name(),
                "_",
                actionIndex,
                "_",
                text
            });
            region.set_x(region.get_x() + (SkillEditor.Window.get_position().get_x() + SkillEditor.Inspector.View.get_x()));
            region.set_y(region.get_y() + (SkillEditor.Window.get_position().get_y() + SkillEditor.Inspector.View.get_y() + 43f));
            DocHelpers.CaptureRegion(region, "C:\\ActionScreens\\SampleScreens\\", actionName);
            DocHelpers.sw.WriteLine("<tr>");
            string text2          = "https://hutonggames.fogbugz.com/default.asp?";
            int    wikiPageNumber = EditorCommands.GetWikiPageNumber(text);

            if (wikiPageNumber > 0)
            {
                text2 = text2 + "W" + wikiPageNumber;
            }
            else
            {
                text2 = text2 + "ixWiki=1&pg=pgSearchWiki&qWiki=" + text;
            }
            DocHelpers.sw.WriteLine("<td width=\"301px\"><a href = \"" + text2 + "\">");
            DocHelpers.sw.WriteLine("<div id=\"actionSample\"><img src=\"http://hutonggames.com/docs/img/" + actionName + ".png\" title=\"\" /></div>");
            DocHelpers.sw.WriteLine("</a></td>");
            DocHelpers.sw.WriteLine("<td><p><strong>" + Labels.NicifyVariableName(text) + "</strong></p>");
            DocHelpers.sw.WriteLine("<p>TODO</p></td>");
            DocHelpers.sw.WriteLine("</tr>");
        }