Skip to content

Altering SpawnInventory UI to only show amounts that can be spawned #1773

@koosemose

Description

@koosemose

Currently the SpawnInventory UI will always show the standard 1,20, 50 for amount of an Inventory that can be spawned, but (appropriately I believe) will only spawn up to the max stack size), however, this does have a potential for confusion, as if someone clicks on, for example, the button to spawn 50 power cells, they would reasonably expect to be spawning 50 powercells not only 5.

So, while working on another PR, I toyed with making it not display options higher than it can spawn, and if it's max stack size is less than 50, have one button for the max stack size. Basically having what the UI shows match what it will actually do (and less buttons that do the same thing for things with really small stack sizes.

This is what it looks like (also with localized names, because that's the PR I'm working on):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions