/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { // Add us to the ImageOverlayList of renderable objects - this puts us in the render loop overlay = new ImageOverlayList(this); Application.WorldWindow.CurrentWorld.RenderableObjects.Add(overlay); // Build menu menuOverlay = new MenuItem(Name); Application.PluginsMenu.MenuItems.Add(menuOverlay); MenuItem menuAdd = new MenuItem("Add", new EventHandler(overlay.AddImage)); menuOverlay.MenuItems.Add(menuAdd); }
/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { // Add us to the ImageOverlayList of renderable objects - this puts us in the render loop overlay = new ImageOverlayList(this); Application.WorldWindow.CurrentWorld.RenderableObjects.Add(overlay); // Build menu menuOverlay = new MenuItem(Name); Application.PluginsMenu.MenuItems.Add(menuOverlay); MenuItem menuAdd = new MenuItem("Add", new EventHandler(overlay.AddImage)); menuOverlay.MenuItems.Add(menuAdd); }