tm-better-chat icon indicating copy to clipboard operation
tm-better-chat copied to clipboard

Feature Request: Support for adding custom buttons to BetterChat window

Open jorranMLGN opened this issue 4 months ago • 4 comments

I’d like to request the ability to add extra buttons directly to the BetterChat window UI.

Currently, I can register commands for my plugin, but I haven’t found a way to add a physical button in the BetterChat interface that users could click to open or trigger plugin functionality.

Use Case:

Allows plugins to provide more intuitive and accessible UI interactions (e.g., open a plugin window, toggle settings, or trigger specific plugin actions without typing commands).

Makes plugin features easier to discover for new users.

Proposed Feature:

Provide a way for plugin developers to register a custom button in the BetterChat window.

Allow binding of button click events to plugin commands or callbacks.

Questions:

Is there already a way to achieve this that I might have missed?

If not, could this be considered as a feature for future versions?

Thanks!

jorranMLGN avatar Aug 25 '25 18:08 jorranMLGN

Can you expand on your use case? You basically say it can "do stuff", which yeah, of course 😅

I'm not convinced yet that we really need something like this, but perhaps your idea will.

codecat avatar Aug 25 '25 19:08 codecat

Can you expand on your use case? You basically say it can "do stuff", which yeah, of course 😅

I'm not convinced yet that we really need something like this, but perhaps your idea will.

It's like a custom action short key integration to open other plugins windows or maybe toggle a custom openplanet plugin setting as example. This will give other plugin makers the ability to add a nice touch custom touch to it which they can build other stuff on top.

I for example want to add a feature (extra button in betterchat ) that's opens a window with helper commands and the possibility that sends a message in chat for new players with tips and tricks on how to get better at the game.

For example "nosliding is better at $value certain speed"

jorranMLGN avatar Aug 25 '25 20:08 jorranMLGN

Okay, but I was specifically asking for what you would do with this, specifically. What's your plugin do?

codecat avatar Aug 25 '25 21:08 codecat

Okay, but I was specifically asking for what you would do with this, specifically. What's your plugin do?

It's to help the new players with a helper like tool, like a little wiki for track mania driving guides, but also the possibility to send smaller snippets in chat for other players who don't have club access.

image

jorranMLGN avatar Aug 25 '25 22:08 jorranMLGN