So im making a topbar for my game using topbarplus and i saw in the game The Strongest Battlegrounds
they had this good looking settings topbar toggle system which i would like to recreate but i just don’t know how
so if anyone could help i would really appreciate it
If you’re talking about the green and red thingy’s, then you can use :bindEvent on the function you want to select the icon so it changes the image with :setImage("rbxassetid://yourid")
Here’s some examples:
icon:setImage("rbxassetid://yourid") -- for example, here's the green one if you want it activated by default
icon:bindEvent("selected", function()
icon:setImage("rbxassetid://yourid") -- and here the red one for disabling it
You can also use :bindEvent("deselect", function() to do the opposite of selecting it.