0 votes

I want to have a list of items with multiple columns, for something like: [name, type, weight, value]. And I would like to be able to sort each of those columns.

I tried the ItemList node, but it doesn't seem to support multiple columns for a single item, the columns hold separate items. Does Godot have a node for this already?

in Engine by (672 points)

I guess Tree can show multiple columns. but you need to make your own function for sorting for a certain column.

It seems like the Tree node is what I need. It even has column titles, and it looks like they can be clicked too. However I can't seem to find any way of recognizing when a title is pressed so that I could sort the list.

I think I'll just make a custom list using built-in controls for now. It will give me more control over how the inventory looks.


Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.