/* * [MenuItem("Window/PowerTools/PowerSlide Editor")] * public static void PowerSlideWindow(){ * OpenWindow("PowerTools - PowerSlide",ScreenPath("slide")); * } */ /// <summary>Gets the path to PowerTools and appends #screen=givenValue to it.</summary> public static string ScreenPath(string screen) { // Find PowerUI: string powerUIPath = PowerUIEditor.GetPowerUIPath() + "/PowerTools/Editor/"; if (screen.Contains(".html")) { // As-is: return(powerUIPath + screen); } else { // As a hash: return(powerUIPath + "index.html#editor=1&screen=" + screen); } }
public EditorWebAPI() : base(7823) { // Get PowerTools path: PowerToolsPath = PowerUIEditor.GetPowerUIPath() + "/PowerTools/Editor"; }