Skip to content

Table groups, metadata, and editor UI memory - #6033

Open
Baaaaaz wants to merge 6 commits into
RPTools:developfrom
Baaaaaz:feature/6032-table-groups-metadata-and-editor-UI-memory
Open

Table groups, metadata, and editor UI memory#6033
Baaaaaz wants to merge 6 commits into
RPTools:developfrom
Baaaaaz:feature/6032-table-groups-metadata-and-editor-UI-memory

Conversation

@Baaaaaz

@Baaaaaz Baaaaaz commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

resolves #6032

Description of the Change

EditLookupTablePanel

Added group ComboBox
image

Move table entries into a tab on a new tabbed pane
image

Added a metadata syntax editor into a tab on the new tabbed pane
image

Caches the panel from the factory, so retains the size and position when it is reopened rather than creating a new one each time from the DialogFactory.

LookupTableDetailPanel & Model

Added new column for Group visible to GMs and Players
Added new column for Metadata visible to GMs only - which displays the syntax type if there is metadata
image

Modified MTScript functions:
getTableNames(delim, group) - new group optional parameter to get all/visible table names in a named group

New MTScript functions:
getTableGroups() - get groups from all (GM) /visible (Player) tables

New MTScript trusted functions:
getTableGroup(tblName) - get the named table's group
setTableGroup(tblName, group) - set the named table's group
getTableMetadata(tblName) - get the named table's metadata
setTableMetadata(tblName, metadata) - set the named table's metadata

  • associated i18n text entries

Possible Drawbacks

Grouping only visible in the table details panel, not table image panel
Otherwise none foreseen

Release Notes

  • Table groups, metadata, and editor UI memory

This change is Reviewable

@github-actions github-actions Bot added the feature Adding functionality that adds value label Aug 15, 2026
@FullBleed

Copy link
Copy Markdown

Excellent update.

I do wish there was a representation under the Table Image display, too, though.

But to make that complete I suppose we'd need to be able to set a group image and be able to drag-n-drop tables into the groups in the table image panel.

Perhaps in a separate PR?

@Baaaaaz

Baaaaaz commented Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

I do wish there was a representation under the Table Image display, too, though.

Yeah I get that. I did look into this and the Table window image panel uses a thing that is also used for the Library window image panel - so I did not want to change that within this request. b.t.w. I was also wanting to add optional Player / GM Notes for tables to show in the table's tooltip but the current image panel does not handle that nicely so I left those out for now.

But to make that complete I suppose we'd need to be able to set a group image and be able to drag-n-drop tables into the groups in the table image panel.

I was thinking something akin to how macro groups are shown on macro panels, i.e. a border and a label for each table group. I would see dragging tables between groups being a GM only feature.

Perhaps in a separate PR?

Indeed! Other table group enhancements could be rename a table group and to export/import a group of tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding functionality that adds value

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Tables and table editor enhancements

2 participants