As Xo explained you shouldn’t be using v1 anymore. If you move over to v2 you can visit the API docs where all the relevant methods are explained:
If a method isn’t documented, it’s likely something internal used to make topbarplus function which you shouldn’t need to worry about.
1 Like
ProIsEpix
(Zylxk)
February 26, 2022, 9:57am
#229
Hi the :deselect() isnt working ?
Heres what my code look like
and the error says
ForeverHD
(Ben)
February 26, 2022, 11:39am
#230
Make sure to update to the latest version:
If it repeats can you then provide code snippets / further details of the issue at the other thread.
ProIsEpix
(Zylxk)
February 26, 2022, 11:55am
#231
its the latest version only.
and these images show the error and the code
Hello guys, do you know how to make like this in photoshop? like color and what it’s transparent?
ProIsEpix
(Zylxk)
June 12, 2022, 12:29pm
#233
its 0.5 trans with full black 0,0,0
I’m having quite some trouble with applying functions to different Buttons
local GuiToggle = Icon.new()
:setName("GUIToggle")
:setImage(11645662940)
:bindToggleKey(Enum.KeyCode.F1)
:setTip("(F1)")
:setLabel("Show/Hide Interface", "hovering")
GuiToggle.selected:Connect(function()
workspace:SetAttribute("InterfaceDisabled", true)
Utils.ToggleGUIs(player, false)
end)
GuiToggle.deselected:Connect(function()
workspace:SetAttribute("InterfaceDisabled", nil)
Utils.ToggleGUIs(player, true)
end)
this button works just fine, the issue is with the other one which is
local Toggle = Icon.new()
:setName("AdminPannelToggle")
:setImage(6778632035)
:bindToggleKey(Enum.KeyCode.F2)
:setTip("(F2)")
:setLabel("Admin Panel", "hovering")
Toggle.selected:Connect(function()
Frame.Visible = true
ChoicesHolder.Visible = true
end)
Toggle.deselected:Connect(function()
Frame.Visible = false
ChoicesHolder.Visible = false
end)
when it’s used while the 1st button is performing it’s “selected” function, it ends up triggering the “deselected” for button1 for some reason… am i doing this wrong? (im using the new version)
That’s not how you handle button clicking with TopbarPlus. Look at the docs. Also this is an old and outdated topic, if you have any questions ask here: TopbarPlus v2.9.1 | Construct intuitive topbar icons; customise them with themes, dropdowns, captions, labels and much more
Reply to the new topic to ask questions TopbarPlus v2.9.1 | Construct intuitive topbar icons; customise them with themes, dropdowns, captions, labels and much more
also yes, if you check the docs, there’s a property for icons that when set to true, when another button is selected, the button that was already selected is deselected and I’m pretty sure the property is set to true by default