We have a map plugin that uses over 20 different icons. Most of the time the icons work well, but we have a very annyoing bug where the icons will sometimes get replaced with a black cross on the MAP. Also, sometimes the icon will be replaced by the default icon (ItemNode.MapIcon instead of ItemNode.MapIconDictionary) when we do a state change [(EventServerControl.Instance.ItemStatusChanged(InputItem)] close to when the plugin is starting but after the ApplicationUp was been received.
A big annoyance is the icon sizes. With access control plugins, we can simply provide a .png but with ItemNode plugins, we still need to provide complicated icons that MUST have 8x8, 16x16, 24x24, 32x32, 48x48, and 64x64 sizes. This takes a long time to design.
I need a way to debug the icons issue, how can I check why/how an icon would be replaced by a black cross or its default icon?
Thank you.
Edit: I did another test, I can reproduce the issue easilly by changing the icons I use for a given “input”. My plugin can change the icons at runtime by checking for config changes and calling a new state change after it loads. When I invert the icons I use, sometimes it works, sometimes it shows a black cross.
Edit: I fixed that particular icon, I noticed it had an 10x10 instead of 8x8.
