NeoHotbar - A modern, customizable backpack

1 Like

hello @ImAvafe, I love your module and have been using it in all my games, but I came across an issue.

whenever a tools name is updated in the backpack, it doesn’t update the hot bar. how could I fix this? or where is the button creating part of the module?

Is there a way to get a ToolButton by its Tool Name?

does it save the tool position like if you die and have it a tool on 3 and other tools in different numbers will it save?

function NeoHotbar:FindToolButton(ToolName: string)
	if typeof(ToolName) ~= "string" then return end

	
	if not self.Started then
		warn("NeoHotbar needs to be started before you can do stuff")
		return
	end

	for _, ToolButton in pairs(self._HotbarGui.Hotbar.Buttons.ToolSlots:GetChildren()) do
		if not ToolButton:IsA("TextButton") then continue end
		if ToolButton.Tool.Value.Name == ToolName then
			return ToolButton
		end
	end
end

Sorry if im replying too late. Put this in the main neohotbar module, the one with all the other functions. It returns the tool button by name of the tool. I was using this for my own customization.

1 Like

Not a fan of how everything is hardcoded, why not provide any config? Maybe I want to change the size of the hotbar or give less slots to mobile players

You can almost entirely override the UI.

1 Like

no offense but why would i choose this over something like CustomPack?

Hey I have been having a issue with inputs not being registered. People just aren’t able to swap items.

I have only been seeing this on PC and console, and I haven’t modified any of the code.

1 Like

Why regenerate the buttons every time they’re pressed? I had to modify the code quite a bit in order to add spring/tween effects.

Could you like save position like when you die that tool you put on 3 it saves on 3 until you change it?

NeoHotbar is now officially deprecated and unmaintained. I don’t recommend using it for new works.

2 Likes

Are there any good alternatives then?

1 Like

Thanks for the help! This one looks good, but I only need a hotbar, like NeoHotbar, not the full inventory system. Is it possible to disable the inventory and keep everything else?