Skip to content

Add basic workspace context menu API#110

Merged
ManlyMarco merged 7 commits into
masterfrom
workspace-context
Jun 28, 2026
Merged

Add basic workspace context menu API#110
ManlyMarco merged 7 commits into
masterfrom
workspace-context

Conversation

@ManlyMarco

Copy link
Copy Markdown
Collaborator

No description provided.

@ManlyMarco ManlyMarco force-pushed the workspace-context branch 2 times, most recently from 3a864c7 to 7dbf5e4 Compare June 26, 2026 12:39
@ManlyMarco ManlyMarco marked this pull request as ready for review June 28, 2026 08:11
@ManlyMarco ManlyMarco requested a review from Copilot June 28, 2026 08:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a basic API for extending CharaStudio’s workspace right‑click context menu, including ordering/grouping of items and event args describing the clicked/selected nodes.

Changes:

  • Added StudioContextMenus API to register workspace context menu entries with ordering and optional state checks.
  • Hooked TreeNodeObject.Start to detect right-clicks on workspace nodes and open the custom context menu.
  • Added public docs for the new API surface (StudioContextMenuOrder, StudioContextMenus, WorkspaceNodeClickedEventArgs) and wired new sources into the shared project items.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Shared.CharaStudio/Studio/StudioContextMenus.cs New context menu registry + default workspace commands and menu display logic
src/Shared.CharaStudio/Studio/StudioContextMenuOrder.cs New enum defining standard grouping/order bands for menu items
src/Shared.CharaStudio/Studio/StudioAPI.Hooks.cs Adds right-click handler hookup for workspace nodes via IPointerClickHandler
src/Shared.CharaStudio/Studio/StudioAPI.cs Initializes the new context menu system during Studio init
src/Shared.CharaStudio/Studio/Events/WorkspaceNodeClickedEventArgs.cs New event args type exposing clicked node and selected nodes/objects
src/Shared.CharaStudio/Shared.CharaStudio.projitems Includes new source files in the shared project items
doc/KKAPI.Studio.md Documents the new API types and removes the old context menu registration entry
doc/Home.md Adds links to the new documentation sections

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Shared.CharaStudio/Studio/StudioContextMenus.cs
Comment thread src/Shared.CharaStudio/Studio/StudioContextMenus.cs Outdated
@ManlyMarco ManlyMarco merged commit bc063bd into master Jun 28, 2026
2 checks passed
@ManlyMarco ManlyMarco deleted the workspace-context branch June 28, 2026 08:46
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.

2 participants