On 05/12/2013 at 21:10, xxxxxxxx wrote:
I have a command Data PlugIn with an Icon assigned within the RegisterCommandPlugin.
This PlugIn works as a toggle for a message Data PlugIn. Now I want the icon to be switched to a new one, when I press the PlugIn Button. Found some information on how to toggle Menu Buttons but no idea for the the plugin icon...
Btw, is it a save and proper way to store settings of a plugin (in this case the toggle state) within the Document Container with the PluginID? So it gets loaded with the scene file...
For more settings to be saved, I would create a new SubContainer at the Plugin Id?
On 06/12/2013 at 04:46, xxxxxxxx wrote:
1. get the plugins BaseList2D icon and modify / overwrite it. use the search function, it has been discussed recently quite extensively.
2. yes, you can/should store data in that way in the document.
On 06/12/2013 at 18:44, xxxxxxxx wrote:
Thanks, I guess you are reffering to this post?
Just for the understanding, you don´t actully load a new icon, you manipulating the real bitmap data in memory with the data of another one?
On 06/12/2013 at 22:30, xxxxxxxx wrote:
Both times yes. If you want to 'load' a new icon you have to overwrite
the existing pixel by pixel. Do not forget to also modify the alpha channel