Skip to content

Add Category Tabs Mode#231

Merged
bitbrain merged 2 commits into
bitbrain:godot-4.xfrom
kphero:issue-146
Dec 18, 2025
Merged

Add Category Tabs Mode#231
bitbrain merged 2 commits into
bitbrain:godot-4.xfrom
kphero:issue-146

Conversation

@kphero

@kphero kphero commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

Description

This PR implements a new tab-based interface option for managing Pandora categories as an alternative to the existing tree view. This provides a cleaner, more intuitive workflow for users working with many root categories.

Implements #146

Features

  • New project setting to toggle between tree mode and tab mode
  • TabContainer displays each root category as a separate tab
  • '+' tab to create new root categories
  • Right-click context menu on tabs for rename/delete operations
  • Automatic mode switching when settings change
  • Tab mode hides "Create Category" button and enables "Create Entity" button by default
  • Entities and subcategories created within the context of the active tab

Screenshots

image image

Let me know if there are any additional adjustments needed!

Implements a new tab-based interface option for managing Pandora categories as an alternative to the tree view.

- New project setting to toggle between tree mode and tab mode
- TabContainer displays each root category as a separate tab
- '+' tab to create new root categories
- Right-click context menu on tabs for rename/delete operations
- Automatic mode switching when settings change
- Tab mode hides "Create Category" button and enables "Create Entity" button by default
- Entities and subcategories created within the context of the active
  tab
@onready var import_dialog = %ImportDialog
@onready var progress_bar = %ProgressBar
@onready var category_tab_container: TabContainer = %CategoryTabContainer
@onready var tree_scroll_container: ScrollContainer = $Contents/DataContent/HSplitContainer/EntitySelection/ScrollContainer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the % notation here to avoid breaking it accidentally in the future.
Also, rename the node to make it more clear what it is, maybe giving it the same name as the variable.

@shomykohai shomykohai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR!
This is, in my opinion, a greag QoL update :D!
Just a small change to do for consistency with the codebase

@bitbrain

Copy link
Copy Markdown
Owner

Very nice. Thank you for your contribution.

@bitbrain bitbrain merged commit a7ab6c0 into bitbrain:godot-4.x Dec 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants