I am currently creating my first plugin, and everything is going as expected. However, I have noticed that the plugin toolbar buttons act as toggle buttons by default (click 1, dark grey, click 2, back to normal,) and I cannot find documentation for this behavior on the developer website. Given I would like to utilize and nullify this behavior for different circumstances, I was wondering if anyone has information on how to read and change this property.
I can’t quite figure out how to use this, unfortunately.
I’ve tried the following:
local function AttachmentLocus()
--LocusButton.Enabled = false
--LocusButton.Enabled = true
which does not throw an error, but does not change the state. I do see the documentation that suggests the use of this in the plugin toolbar button page ((PluginToolbarButton),) but again, I cannot get it to do anything.