is there any way to remove your hd admin topbar button that comes up automatically, it takes over the fake chat button and the only way to open it is by “/”
Note: The right button is the custom one made manually, and the left is the hd admin one, it overlaps the fake chat button , I would just delete my button that I made, but I want it to fit with the blue theme
also, did try this, didn’t work:
--Local script in StarterPlayerScripts
local hdMain = require(game:GetService("ReplicatedStorage"):WaitForChild("HDAdminSetup"))
local hdAdminMain = hdMain:GetMain()
local hd = hdAdminMain:GetModule("API")
hd:SetTopbarEnabled(false)
If you’re trying to re-theme your whole topbar (including the the HD icon which comes with HD Admin), I recommend using IconController:setGameTheme(theme), which sets a theme which is applied to all existing and future icons.
To grab the existing HD Admin icon with V2, you can do:
local hdMain = require(game:GetService("ReplicatedStorage"):WaitForChild("HDAdminSetup")):GetMain()
local TopbarController = hdMain:GetModule("TopbarClient")
local hdIcon = TopbarController:getIcon("HDAdmin")
I’ve just deployed a patch to fix this. Feel free to DM me if you have further issues specifically with HD Admin.
@UltraKrypt
To hide the icons created specifically by HD Admin, do:
local hdMain = require(game:GetService("ReplicatedStorage"):WaitForChild("HDAdminSetup")):GetMain()
local TopbarController = hdMain:GetModule("TopbarClient")
local hdIcon = TopbarController:getIcon("HDAdmin")
hdIcon:setEnabled(false)
TopbarController:removeFakeChat()
local function toggleFunction()
-- This will be called every time the icon is toggled (selected and deselected)
end
icon:setToggleFunction(toggleFunction)
I stumbled upon this path on the CoreGui where it houses the TopBar on how the buttons are laid out. Is this path going to cause conflict in the future when using it for Topbar+?
oh yea i had to edit the script to add the slice thing lol
If significant changes are made to the core UI I’ll have Topbar+ mirror these, so that shouldn’t be a problem. Corner manipulation is something I’m looking to explore once it’s been officially released.
You can simply load the most up-to-date modules into your game by running require(4874365424) in a server script (for example a Script placed in ServerScriptService), or grabbing the source code directly from the repository.
Then in a LocalScript placed under StarterPlayerScripts (for the first method) you can reference the IconController by doing:
local replicatedStorage = game:GetService("ReplicatedStorage")
local topbarPlus = replicatedStorage:WaitForChild("HDAdmin"):WaitForChild("Topbar+")
local iconController = require(topbarPlus.IconController)
Then creating an icon by doing:
local shopIcon = iconController:createIcon("Shop", 4882429582, 1)
For more coded examples, it’s definitely worth checking out the playground!