Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Table Container

An asset by Delphi
The page banner background of a mountain and forest
Table Container hero image

Quick Information

0 ratings
Table Container icon image
Delphi
Table Container

A Godot plugin that provides a container type that serves as a table.

Supported Engine Version
4.2
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Godot Table Container

A Godot plugin that provides a container type that serves as a table. I wrote this because the current options for tabular data were insufficient for my use cases.

GridContainer was close, but the fact that all the elements must be children of the container created some limitations. First, there is no concept of discrete rows, so it was awkward to add sets of nodes as a row to it. Second, because of the above, while I was able to instantiate a row scene and then reparent the children to it, the row itself, with any scripting I might have, would be lost.

Combining VBoxContainer and HBoxContainer is effectively what I do here, but the initial limitation is that the columns do not stay in alignment. That's basically what this does.

Features

  • Keeps columns (i.e. Control nodes within each HBoxContainer) in alignment
  • Has optional auto-update in the game and in the editor
  • Has property to seet horizontal and vertical spacing overrides to the entire table

Usage

To use, simply create a new TableContainer node in your scene tree. Add HBoxContainer nodes to represent the rows, and ensure that all rows have the same number of columns (children).

The TableContainer node has four exported properties:

  • update_interval_editor, if not null, updates the table's alignment in _process in the editor every number of frames specified.
  • update_interval_game, if not null, updates the table's alignment in _process in the game every number of frames specified.
  • separation_horizontal, if not null, applies a value to each row's HBoxContainer theme_override_constants/separation property.
  • separation_vertical, if not null, applies a value to the TableContainer theme_override_constants/separation property.

Limitations

Anything that's not listed above. Rows must be the same length.

Development

I'm planning to put this to use in another project, and as I see the need, I may extend this. It's primarily for my own use, but since I didn't see anything quite like it out there and I've seen it asked about, I figured I'd share!

A Godot plugin that provides a container type that serves as a table.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Table Container icon image
Delphi
Table Container

A Godot plugin that provides a container type that serves as a table.

Supported Engine Version
4.2
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers