diff options
Diffstat (limited to 'client/menu/document/document.gd')
-rw-r--r-- | client/menu/document/document.gd | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/client/menu/document/document.gd b/client/menu/document/document.gd index 69a0b852..ba7883dd 100644 --- a/client/menu/document/document.gd +++ b/client/menu/document/document.gd @@ -52,7 +52,18 @@ func build_document(element: Dictionary) -> Control: for e in element["es"]: node.add_child(text_node(e, true)) "table": - push_warning("Table not yet implemented") + node = VBoxContainer.new() + node.name = "Rows" + node.size_flags_horizontal = Control.SIZE_EXPAND_FILL + for r in range(element["es"].size()): + var row = HBoxContainer.new() + node.add_child(row) + row.size_flags_horizontal = Control.SIZE_EXPAND_FILL + row.name = "Row%d" % r + for c in element["es"][r]: + var e = build_document(c) + e.size_flags_horizontal = Control.SIZE_EXPAND_FILL + row.add_child(e) "par": node = VBoxContainer.new() node.name = "Paragraph" |