Skip to content

Update number of hotbar slots at runtime #84

@legendoj1

Description

@legendoj1

Is your feature request related to a problem?

Currently, it is hard to update the number of slots that show in the hotbar at runtime. The easiest way to configure the number of slots showing is by editing the constants at the top of the script, but updating these at runtime is impossible.

Describe the solution you'd like

I would like a method to be added to the API which allows setting the number of hotbar slots to show at runtime, e.g. Satchel:SetNumHotbarSlots(n: number). If the number passed is less than the number of currently showing tools, it would move current tools to the inventory to preserve them. If the number passed is more than the number of currently showing tools, it would move tool slots from the inventory into the hotbar.

Describe alternatives you've considered

No response

Additional context

The use case for this feature is that some users in my game complain about the 6 slots on mobile and I want to add a setting which allows people to choose between 1-10 slots to show on their own screen.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions