Well, it does not anymore. Or do I need to call it after I require the TopBar+ module?
Like, I use Services.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) (Services is my custom variable containing StarterGui service) inside ReplicatedFirst, so it does hide the Gui before TopBar+ module could start.
But maybe when I think about it, it cannot hide them because the module isn’t required . I … I will try to require it first and then I will tell the result.
Edit: So yeah, now it does hide. This was absolutely ridiculous mistake. Sorry that I’m annoying!
For anyone else searching for this, if you use :SetCoreGuiEnabled(Enum.CoreGuiType.All, false) in ReplicatedFirst's scripts and your TopBar+ icons are still present, require the TopBar+ module first .
Doens’t seem to work at all for some reason:
Code:
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local skip1 = Icon.new()
:setImage(id here)
:setTip("Use this if you're stuck on a level")
:setLabel("Skip 1 Level")
:bindToggleItem(function() print("click") end)
local skip5 = Icon.new()
:setImage(id here)
:setTip("Use this if you want to speed through the game")
:setLabel("Skip 5 Levels")
:bindToggleItem(function() print("click") end)
You’ve got the right events amigo, just make sure they’re in camelCase instead of PascalCase.
@ParentProfanities You can alternatively use bindEvent if you wish to continue the chain. e.g.:
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local skip1 = Icon.new()
:setImage(id here)
:setTip("Use this if you're stuck on a level")
:setLabel("Skip 1 Level")
:bindEvent("toggled", function(icon, isSelected)
print("click")
end)
local skip5 = Icon.new()
:setImage(id here)
:setTip("Use this if you want to speed through the game")
:setLabel("Skip 5 Levels")
:bindEvent("toggled", function(icon, isSelected)
print("click")
end)
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.
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.