Is there an item list node with sortable columns?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CowThing
:warning: Old Version Published before Godot 3 was released.

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?

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

volzhs | 2016-09-04 04:33

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.

CowThing | 2016-09-05 19:11

GridContainer?

wombatTurkey | 2017-04-10 22:47