Skip to content

feat(editor): dockable, resizable panels with per-user saved layout (#919) - #1169

Open
houko wants to merge 3 commits into
mainfrom
feat/editor-dockable-panels-919
Open

houko wants to merge 3 commits into
mainfrom
feat/editor-dockable-panels-919

Conversation

@houko

@houko houko commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #919

Summary

  • Rebuilds EditorView on NSGo's ui.DockArea so all built-in panels (viewport, scene_tree, layers, assets, files, library, inspector, problems, output, profiler, animation, states, tileset, datatable, search, navmesh, project_settings, audio_mixer, input_map, localization, export) and active plugin panels (plugin:<plugin>:<id>) are dockable, resizable, movable, tabbable, and hideable.
  • Adds View > Panels show/hide menu entries for built-in and active plugin panels plus View > Reset Layout / CmdResetLayout (ResetLayout), while preserving the 4-menu desktop menu bar and 2-row toolbar at 1120×680.
  • Adds strict versioned per-user YAML layout persistence (LayoutFile, LayoutVersion = 1, ParseLayout, EncodeLayout, DefaultLayoutPath, SetLayoutPath) saved outside any project at <UserConfigDir>/nsgo-game/layout.yaml (editor#layout), wired automatically by game editor and editorcmd.
  • Drops saved panels that no longer exist on restore, and places plugin panels at their declared Panel.Dock on first use and at their user-moved location afterwards.
  • Updates docs/en/{editor,formats}.md, docs/zh/{editor,formats}.md, changelog.d/editor-dockable-panels-919.md, and .agents/notes/implemented/feature/2026-11-25-editor-dockable-panels-layout.md.

Verification

  • env -u GOROOT go tool nsgo check (desktop + -target ios) on ./editor, ./editor/editorcmd, ./cmd/game, .
  • env -u GOROOT TMPDIR=/tmp go tool nsgo test ./editor (450 passed, 0 failed)
  • env -u GOROOT go tool nsgo test ./editor/editorcmd, ./cmd/game, and . -run TestFormatsPage
  • env -u GOROOT go run ./tools/changelog check
  • bun run verify-notes

@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging enhancement New feature or request documentation Improvements or additions to documentation pkg/cmd pkg/editor pkg/game area/agents size/XL labels Nov 25, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch 2 times, most recently from da54536 to 71f6069 Compare November 26, 2026 11:23
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from 71f6069 to d2a4333 Compare November 26, 2026 11:55
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from d2a4333 to 0744656 Compare November 26, 2026 12:15
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch 2 times, most recently from b8bd860 to 8c93e5f Compare November 26, 2026 12:32
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from 8c93e5f to c18bd18 Compare November 26, 2026 12:49
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from c18bd18 to edc19aa Compare November 26, 2026 12:59
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from edc19aa to f650e74 Compare November 26, 2026 17:38
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@github-actions github-actions Bot added the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch 2 times, most recently from 32f17c9 to fec8cc7 Compare November 26, 2026 18:02
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from fec8cc7 to 568a09d Compare November 26, 2026 18:20
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from 568a09d to bbb70ce Compare November 26, 2026 18:21
@github-actions github-actions Bot added the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from bbb70ce to 1b322e4 Compare November 26, 2026 18:32
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from 1b322e4 to 7d8389f Compare November 26, 2026 18:46
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from 7d8389f to ce35621 Compare November 26, 2026 19:09
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-dockable-panels-919 branch from ce35621 to c74f03a Compare November 26, 2026 19:09
@github-actions github-actions Bot added the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026

This branch has not been deployed

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

Labels

area/agents conflict Conflicts with the target branch; resolve before merging documentation Improvements or additions to documentation enhancement New feature or request pkg/cmd pkg/editor pkg/game size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor: dockable, resizable panels with the layout saved per user

1 participant