internal static void CreateUI(RibbonPanel ribbonPanel) { if (ribbonPanel.AddItem(new PulldownButtonData("cmdRhinoInside.Help", "Help")) is PulldownButton pullDownButton) { helpButton = pullDownButton; helpButton.LargeImage = ImageBuilder.BuildLargeImage("?"); helpButton.AddPushButton(typeof(APIDocsCommand), "APIDocs", "Opens apidocs.co website", typeof(AllwaysAvailable)); helpButton.AddPushButton(typeof(TheBuildingCoderCommand), "TheBuildingCoder", "Opens thebuildingcoder.typepad.com website", typeof(AllwaysAvailable)); helpButton.AddSeparator(); helpButton.AddPushButton(typeof(RhinoDevDocsCommand), "Rhino Dev Docs", "Opens developer.rhino3d.com website", typeof(AllwaysAvailable)); helpButton.AddPushButton(typeof(DiscourseCommand), "McNeel Discourse", "Opens discourse.mcneel.com website", typeof(AllwaysAvailable)); helpButton.AddSeparator(); #if DEBUG helpButton.AddPushButton(typeof(CheckForUpdatesCommand), "Check for updates", "Checks if there are updates in GitHub", typeof(AllwaysAvailable)); #endif helpButton.AddPushButton(typeof(AboutCommand), "About", "Opens GitHub Repo website", typeof(AllwaysAvailable)); } CheckForUpdatesCommand.CheckUpdates(); }