public string _getURL(HelpURL url) { switch (url) { case HelpURL.programs: return(RunPrograms); case HelpURL.tasks: return(RunPrograms); case HelpURL.settings: return(Settings); case HelpURL.lighting: return(Lighting); case HelpURL.cache: return(Packaging); case HelpURL.phantom: return(Phantom); case HelpURL.instances: return(MultiInstance); case HelpURL.h2lod: return(H2LOD); default: return(General); } }
public string GetURL(HelpURL requestedURI) { string url = _getURL(requestedURI); if (String.IsNullOrWhiteSpace(url)) { return(_getURL(HelpURL.main)); } else { return(url); } }
private void DrawBackendHelpIfAvailable(string backend) { var backendType = Type.GetType(backend + ", Assembly-CSharp"); object[] customAttributes = backendType.GetCustomAttributes(typeof(HelpURL), false); if (customAttributes.Length >= 1) { HelpURL helpUrl = (HelpURL)customAttributes[0]; if (MadGUI.InfoFix("Need help?", "Open Documentation Page")) { Help.BrowseURL(helpUrl.url); } } }
public void OpenURL(string toolkitName, HelpURL url) { Process.OpenURL(UrlBase + Tookits[toolkitName].GetURL(url)); }