Skip to content

Smoothly reorder inventory lines when picking up a new item #6

@InsanityCode

Description

@InsanityCode

Currently a single text instance is used for the entire inventory text.
In order to smoothly reorder lines one could chop this into three instances instead.

  1. The top part that doesn't move and remains static
  2. The item moving to the bottom
  3. The bottom chunk moving up, filling the now empty slot

After reordering is complete, use a single instance again.

TODO
Figure out a way to handle several consecutive pickups.
If possible avoid having a seperate text instance for every single line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions