Projects like TopbarPlus involve hundreds of hours of work and maintenance. It’s my goal to keep these projects free, open source and up-to-date, however its become increasingly difficult with Roblox’s direction of the Marketplace. If you’ve found TopbarPlus helpful, please consider reading into how Roblox can support marketplace developers and open-source creations.
Construct dynamic and intuitive topbar icons. Enhance the appearance and behaviour of these icons with features such as themes, dropdowns and menus.
-- This assumes you place the TopbarPlus module (called 'Icon') under ReplicatedStorage
local Icon = require(game:GetService("ReplicatedStorage").Icon)
-- Here we construct a simple icon
Icon.new()
:setImage(6326373239)
:setLabel("Nanoblox")
-- This retrieves the theme module under Icon
local iconModule = game:GetService("ReplicatedStorage").Icon
local Icon = require(iconModule)
local Themes = require(iconModule.Themes)
-- Here we utilise the many other icon methods. You can view all of them at the docs.
Icon.new()
:setImage(6326373239)
:setLabel("Nanoblox")
:setCaption("Nanoblox Caption")
:setTip("Open Nanoblox Panel (v)")
:bindToggleKey(Enum.KeyCode.V)
:bindToggleItem(nanobloxFrame)
:setProperty("deselectWhenOtherIconSelected", false)
:set("iconFont", Enum.Font.GothamSemibold)
:setRight()
:notify()
:setTheme(Themes.YourThemeName)
:bindEvent("selected", function(icon)
print("selected!")
end)
:bindEvent("deselected", function(icon)
print("deselected!")
end)
:setDropdown({
Icon.new()
:setLabel("Item 1")
,
Icon.new()
:setLabel("Item 2")
,
Icon.new()
:setLabel("Item 3")
,
Icon.new()
:setLabel("Item 4")
,
})
TopbarPlus is free and open source! You’re welcome to use and modify this for any of your projects. Credit back to this thread is greatly appreciated although I won’t send the popo after you if you don’t.
I won’t be able to respond to all questions, however I pinky-promise that I’ll read your comments. We’ve put hundreds of hours into this resource so its always a joy to hear your feedback!
I absolutely loved the first version of TopbarPlus and have used it on numerous projects. This second iteration of it seems even more fantastic, can’t wait to use it on my future projects! Keep up the good work.
I LOVE the look of the bars. It really does make it seem like it’s a part of Roblox, which will help make the UI cleaner! I remember when this first was created and man, you’ve added so many things! Nice work!!
Thank you very much for sharing this.
I would like to make a feature request, if I may.
The ability to Parent buttons and menus to other frames than just the TopBar.
Something like icon:setParent(someFrameOutsideTopbar)
This would make it possible to easily make other GUI like tabs and other kinds of menus outside of just the TopBar.
I’m thinking of things like perhaps an inventory with tabs to sort the items. You would open the inventory with the button on the TopBar but you would also create the tabs that filter the inventory. All in the same system.
This is certainly a consideration (and potentially a new project in itself) although for TopbarPlus we’ll likely remain within it’s original intention to provide game developers with easy-to-add and easy-to-customise topbar icons and software developers and runtime applications (like admin commands) with the ability to seamlessly integrate their own icons into others games.
Hey, I have a dropdown menu in-game and am trying to figure out how to add functions to the individual icons. I wanted to achieve allowing a player to morph themselves when they press an option using HD admin. Could you break it down for me?
You can achieve this with setDropdown combined with bindEvent demonstrated here:
If you’re attempting to morph someone via HD Admin I’d recommend waiting until Nanoblox is released which has a greatly more reliable API. For the time being you could morph people using HumanoidDescriptions
For HD Admin users: it’s now compatible with both v1 and v2 so you’ll no longer experience any issues if you previously attempted to use v2 in your game alongside it
I think I have explained myself wrong, what I want is that when the player reappears the Guis that are with the ResetOnSpawn option activated implemented in the topbarplus, the guis will appear again and that they can be opened from the top bar, as before this version when I put ResetOnSpawn the GUI became unusable.
What I mean by this is: When the player appears, the usable ResetOnSpawn guis reappear, not that it is deleted.
—If you have done what I wanted to tell you then it is a mistake for being a new option or I did something wrong—
This is what the ResetOnSpawn property is for. If you set it to true then your UI objects will be destroyed no matter what.
Assuming your topbaricons are constructed in a location that does persist (such as starterplayerscripts) and you want to bind them to GUIs that reset on spawn, then you could achieve this by listening for game.Players.PlayerAdded in the script that persists, then using icon:bindToggleItem and icon:unbindToggleItem when the desired GUIs are removed/added back in.
The above method is just over complicating things though - you’d honestly be better off fixing whatever problems you have with ResetOnSpawn and setting this property to false.