ItemList 2 columns

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

I use ItemList. I need to create a list like “position - quantity (pieces)”. How can I do that would be:

  1. position aligned with the left edge of the row of the list.
  2. the quantity (pieces) aligned on the right edge of the row of the list?

You can use GridContainer.
Set collumns param to 2.
Then first control you will add will be in first row first column, second node in first row second column, third node in second row first column, forth node in second row and second column…
Then you need to align your controls manually… in Label node you have ‘align’ property simply choose left for those in first row, and right for those in right row. You can use RichTextLabel together with bbcodes ([left]/[right]) as well, or use other regular controls with proper anchoring (center left, center right).

kubecz3k | 2016-06-20 08:32

No, it’s not what you need. I need a manageable list. ItemList is very well suited. I get the index of the selected item. Also double tap to activate (use) the item in the list.

I only need to submit information in a more accessible (readable) form.

DimitriyPS | 2016-06-20 09:39

oh ok, will convert this into comment them

kubecz3k | 2016-06-20 10:10

oh ok, will convert this into comment them

kubecz3k, sorry, I did not understand You?

DimitriyPS | 2016-06-20 11:57

Well since my answer was not in the subject really, I converted it into comment, so the question will remain as ‘unanswered’ and more people will see it on the front page.

kubecz3k | 2016-06-20 12:04