![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
I am currently trying to make an overloaded version of MilStd2525TacticalSymbol which allows the user to switch between the standard symbol set and non-military user friendly icons. With what I have now I can load an alternate icon (I also overload MilStd2525IconRetriever) when a symbol for a particular SIDC is first loaded. However, any subsequent icons generated from the same SIDC will have that same icon regardless of the parameters passed to the overloaded constructor. It seems that the system keeps some cache mapping SIDC's to previously loaded icons. However, I have been unable to locate this cache. Does anyone know where this cache exists and how to clear it so a new icon is loaded rather than referencing the previously loaded one? I read a related thread that suggested overloading the assembleIconRetrieverParameters but this did not seem to work for the icons.
Thanks in advance for any help. |
|
|
|
#2 |
|
WW Dev. Team
Join Date: Sep 2010
Location: Boston, MA, USA
Posts: 325
![]() |
You need to override assembleIconRetrieverParameters and create a different parameter list when you want the alternate icon (you could just add an "Alternate" = true key/value pair to the list). The icon loader looks at the SIDC, icon retriever, and parameter list to determine if it should fetch a new icon or reuse the one that it already has.
|
|
|
|
![]() |
| Tags |
| cache, icon, milstd2525 |
| 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 |
| Bug with BasicDragger? | scottseeker | Development Help | 7 | 01-04-2011 09:39 PM |
| Plugin: My favorite Icons - Add Icons/Favorite | canosso | Add-ons & Scripts | 26 | 03-02-2010 03:06 AM |
| My Favorite Icons plug-in/add-on | Brynn4 | Technical Support | 0 | 05-07-2008 03:07 AM |
| Symbol Sets for Icons | nicholeuf | Feature Discussion | 5 | 05-22-2007 05:01 PM |
| Icons and Icon Updated Please Test! | nigel_ht | Developers' Corner | 3 | 05-07-2007 08:33 PM |