![]() |
|
|||||||
| Add-ons & Scripts Find add-ons, scripts, and utilities for World Wind. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2005
Location: South Bend, IN
Posts: 16
![]() |
Favorites Plugin: v1.0.2
This plugin adds a Favorites menu to your WorldWind main menu bar and allows you to create bookmarkable favorite spots. Favorites will not work in WW1.3.1 and was created for the new version of WW with plugin support. Just navigate to the desired location, Zoom, Altitude, Heading, Tilt, etc. Click Favorites -> Add This Spot, and then select a name for it. When you click on saved favorites from this list you will be taken to the exact location, Zoom, Altitude, Heading, Tilt, etc. that you saved. WorldWind 1.3.2 is still in alpha, as of this writting, so the favorites plugin may not work at some point and require an update. Also, I am NOT a C# programmer. This code may not be pretty but it works. I will be adding functionality to it soon. if you would like a feature added to it let me know. Also, if you find any bugs please let me know. Download here: http://www.powertise.com/TheHills/WW/ in the Plugins/Favorites directory. Save the favorites.cs file and install. Enjoy! Doug PS - The Bookmarks plugin ShockFire and I were working on should be out soon. I'm having a hard time getting that version to save layers and camera tilt as my Favorites version does. In the mean time, this version works just fine. v1.0.1 - Fixed nested plugin directory structure bug. v1.0.2- Cleaned up the code a bit. Plugin now creates a favorites.ini in the working directory if the file is not found. {Edited 6/16/05}
__________________
Doug Hill (Dugrhill on WW) (Dugr on WW IRC Channels) (Dugrhill on Skype) If you see me on Skype feel free to Skype me! (Doug@powertise.com on Messenger) |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2004
Location: Austria
Posts: 342
![]() |
Hello Doug,
I had a problem with the directory, the code was "\Plugins\Favorites\" which means the directory of Favorites.ini would be "World Wind\Plugins\Plugins\Favorites\". I changed it to only "\Favorites\" which works better to me. The Plugin works fine. canosso
__________________
My Plug-ins for World Wind |
|
|
|
|
|
#3 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
![]() |
Works nice once I did this:
Took out /plugins from the path and moved the CS file outside of the Favorites folder. Well, guess I won't do a plugin like this then B)
__________________
![]() Earth is Square blog PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe. |
|
|
|
|
|
#4 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
![]() |
I Can see some stuff that will have to be added later.. like a folder structure... I can see people bookmarking EVERYTHING and then not finding stuff anymore
![]() Want to help me work out the last bits of my plugin? Damn interactivity/filtering is killing me at my poor level of skill ![]()
__________________
![]() Earth is Square blog PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe. |
|
|
|
|
|
#5 |
|
Dabbling Geek
Join Date: Jan 2005
Location: Washington State, USA
Posts: 1,623
![]() |
I'd enjoy working on it. But I guess I wouldn't add much skill, I've no clue of C# and a very small one in C. I'm a VB man. But I can try anyway, I've done plenty in VB. But I'm really bogged down tonight.
__________________
Note: The above statement is probably an educated guess, derived from much forum reading, IRC chatting, general curiosity, etc. Use at your own risk. Before asking, check the FAQ or search, and Ask a good question. Having problems? Make sure you have Managed DirectX and .NET Framework. Then check the Video Card Compatibility List
|
|
|
|
|
|
#6 |
|
Member
Join Date: Jan 2005
Location: Trondheim, Norway
Posts: 94
![]() |
I love it Dugrhill!
![]()
__________________
Bjørn Reppen Developer on http://punt.sourceforge.net mashi on #punt (irc.freenode.net) Home: http://www.mashiharu.com |
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: May 2005
Location: South Bend, IN
Posts: 16
![]() |
Mashi:
It gets better! ShockFire pretty much re-wrote the entire plugin today using URI and XML. I think it's MUCH better. Should be up soon. Doug Quote:
__________________
Doug Hill (Dugrhill on WW) (Dugr on WW IRC Channels) (Dugrhill on Skype) If you see me on Skype feel free to Skype me! (Doug@powertise.com on Messenger) |
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Dec 2004
Posts: 334
![]() |
Tom Servo,
I stuffed up trying to put the plug-in in the right directories Now I've got favourites listed 5 time but still not working. How do I erase four of them and get the plug-in working! please. I'll have to stop experimenting - and get a life! |
|
|
|
|
|
#9 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
![]() |
Your asking me? Blah!
![]()
__________________
![]() Earth is Square blog PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe. |
|
|
|
|
|
#10 |
|
Dabbling Geek
Join Date: Jan 2005
Location: Washington State, USA
Posts: 1,623
![]() |
Hm. Do you have any scripts running at startup?\
I'm not a C#'er, just trying to adapt my VB ideas to C# code. But in your script, try changing this: Code:
public override void Unload()
{
// Clean up, remove menu item
ParentApplication.MainMenu.MenuItems.Remove(menuItem);
base.Unload ();
}
Code:
public override void Unload()
{
// Clean up, remove *all favorites* menu items
foreach(MenuItem mnuThing in ParentApplication.MainMenu.MenuItems) {
if(mnuThing.Text=="Favorites"){
ParentApplication.MainMenu.MenuItems.Remove(mnuThing);
}
}
base.Unload ();
}
What favorites scripts do you have running? On startup? Does this happen only when the script runs (I hope so, otherwise there's something strange happening)? Maybe you could paste your scipt(s), something about them is cancerous.
__________________
Note: The above statement is probably an educated guess, derived from much forum reading, IRC chatting, general curiosity, etc. Use at your own risk. Before asking, check the FAQ or search, and Ask a good question. Having problems? Make sure you have Managed DirectX and .NET Framework. Then check the Video Card Compatibility List
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Plugin: My favorite Icons - Add Icons/Favorite | canosso | Add-ons & Scripts | 26 | 03-02-2010 03:06 AM |
| stereo viewer plugin | jumpjack | Add-ons & Scripts | 15 | 08-19-2005 09:48 PM |
| Favorites, bookmarks, etc | anonymous banana | Suggestion Box | 3 | 03-03-2005 12:47 PM |