Addon informations

  • K4sh
  • Topic Author
More
2 weeks 3 days ago - 2 weeks 3 days ago #1 by K4sh Addon informations was created by K4sh
Is it possible in the addon tab to show a different name than the file name used as the addon ?
Actually, I made an addon which file name is LittleNightmaresUI.addon and it shows LittleNightmaresUI in the addon tab which is not so self explained.
Is it also possible to set some informations like addon version, author ... ?
Last edit: 2 weeks 3 days ago by K4sh.

Please Log in or Create an account to join the conversation.

  • crosire
More
2 weeks 1 day ago - 2 weeks 1 day ago #2 by crosire Replied by crosire on topic Addon informations
Yes, you can set all the metadata via a Win32 version resource embedded in the DLL.
Alternatively can also simply export a string symbol called "NAME" with the desired add-on name from the add-on module. Same can also be done for the description with a symbol called "DESCRIPTION".
extern "C" __declspec(dllexport) const char *NAME = "My Add-on Name";
Last edit: 2 weeks 1 day ago by crosire.

Please Log in or Create an account to join the conversation.

  • K4sh
  • Topic Author
More
1 week 12 hours ago - 1 week 12 hours ago #3 by K4sh Replied by K4sh on topic Addon informations
A bit late but thank you. It works like a charm with the extern syntax.
Are there any other information that can be added (like author ...) ?
Last edit: 1 week 12 hours ago by K4sh.

Please Log in or Create an account to join the conversation.

  • crosire
More
1 week 10 hours ago - 1 week 6 hours ago #4 by crosire Replied by crosire on topic Addon informations
Author is only sourced from the version resource in the DLL ("CompanyName") if present at the moment ( learn.microsoft.com/en-us/windows/win32/...versioninfo-resource ). The "NAME"/"DESCRIPTION" thing is more of a hack to get off the ground quicker.
Last edit: 1 week 6 hours ago by crosire.

Please Log in or Create an account to join the conversation.

  • K4sh
  • Topic Author
More
1 week 8 hours ago #5 by K4sh Replied by K4sh on topic Addon informations
Thank you. I'll have a look at it.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.