Is it possible to get rid of the close button on plugin widgets?

What Do I Need Help With??

So, I was wondering if there’s anyway to get rid of the close button on plugin widgets.

Screen Shot 2020-05-23 at 2.34.36 pm

Why?

I want to do this because with my plugin, it has an on-off button and if someone presses the close button without closing it properly with the button, the plugin messes up.

Sorry If It Was UnClear

No, it’s not possible to do this and you shouldn’t be doing that either.

The proper solution here is not to find out how to get rid of the close button on a widget (why would you ever want to?), but to properly handle cleaning procedures when the widget is closed. For example, if the widget is closed, treat that the same as if the “close” option is clicked. This is more intuitive and user-friendly as well.

Use PluginGui:BindToClose to help you control the behaviour of a closing widget.

1 Like

I was also wondering if it’s possible to stop the button from going dark after activating?

Screen Shot 2020-05-23 at 3.35.20 pm

Try something from here. You’re probably looking to use SetActive(false) when a plugin button is clicked though I don’t write plugins and there’s no documentation. Off to the Developer Hub category.

1 Like