Can you share error details, code, etc, or even better a link to an uncopylocked place.
@ForeverHD do you think it’s amazing how many developers are making so many amazing games with TopbarPlus,
and think it won’t be possible without you.
so i just wanna say thank you so much.
i think this is my favorite thing made with TopbarPlus
https://www.roblox.com/library/9227995784/Custom-Bar-Gui
How do you make it so it doesn’t duplicate the icons when you respawn?
How do you get rid of the “ControllerMode” button?
Do you have a way we can bind chat commands to it like is someone says ‘!notepad’ it would trigger the button to be pressed / ui to apear and button to light up or what ever normally happens.
Your icons are duplicating because your LocalScript which creates these icons is resetting every time your LocalPlayer respawns.
You can solve this three different ways:
-
Place the LocalScript which construct the icons within a GUI with
ResetOnSpawn
set tofalse
. -
or Place the LocalScripts within StaterPlayerScripts.
-
or Put the following code at the very bottom of your LocalScript:
local icons = IconController.getIcons()
for _, icon in pairs(icons) do
IconController.clearIconOnSpawn(icon)
end
This currently can’t be modified, although I’ve opened up a ticket for exactly that here:
For the time being you can disable it by changing controllerOptionIcon:setEnabled(true)
to controllerOptionIcon:setEnabled(false)
around line 1054 of the IconController.
We don’t provide direct support for this so you could either use the new TextChatService or listen to Player.Chatted
and parse the result to achieve this, then calling icon:select()
.
Not sure if this has been reported yet, but having more than 99 notifications makes the text leave the circle. It’s a very little bug, but still one nonetheless. The only solutions I have are:
- Making the text scale smaller to fit the number (would look sloppy)
- Making the circle scale bigger the fit the number (tried this, might cover a neighboring button)
Thanks I can look into this
Hi, there are no parameters, calling icon:destroy()
is all you have to do for everything within the icon to be cleaned-up.
Hey, how do I make it when I select one of the icons. It deselects.
I’ve added the model to my game and put it in ReplicatedStorage and it doesn’t seem to be working at all.
Am I doing something wrong?
Did you create a local script in StarterPlayerScripts? Also, remember to use the require() function to access the APi for creating and modifying buttons.
I didn’t as far as I know.
I’ll fix it up when I can and let you know.
Thanks!
icon:get("iconImage", iconState)
Thanks very much for your help!
This is a very helpful tool for novice developers like me. It makes making topbars much easier and less time consuming.