For some reason there is no documentation on plugin:CreateButton - I find this odd as a result appears when you google search this, but upon clicking the result, it comes with the 404 error page.Can this get fixed?
edit: It appears backtracking one, and going to Toolbar returns the same error - no documentation! I find this pretty frustrating as I was about to create my first plugin!
Oof. Here’s my quick unofficial documentation to help with your plugin:
plugin:CreateToolbar(name)
creates a new section in the Plugins tab. The name determines what the label under the button reads, i.e. these things:
The only really relevant function in Toolbar is Toolbar:CreateButton(name, tooltip, iconAsset)
which creates the buttons on the toolbar. The iconAsset is the asset id for the icon (e.g. rbxassetid://123456789), the name is the text that appears below the icon, and the tooltip is like a bit of description text that appears when you hover over the plugin button for a while.
Example:
Also quick icon tip: I recommend designing your icon on a 16x16 grid, and using a 32x32 image. Here’s an example (red lines are the 16x16 grid):
This ensures your icon is crisp and sharp at both the 16x16 and 32x32 sizes which they will be displayed at:
If you’re looking for info quickly, I would look at Intro to Plugins. It seems to explain CreateButton.
As for the documentation request, there seems to be no function under Plugin called CreateButton. The real issue here seems to be that Toolbar (created by this function) has no API page whatsoever, which means there’s also no page for CreateButton which is a function of Toolbar.