Editor panels and toolbar buttons from a plugin

オープン
#3,589 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp

調査の方向性

This is design work, not a first task: the proposal leaves the panel declaration API, the view split between toolkits, and dock-state persistence open. Start by reading GameStudioWindow.xaml for the fixed layout and the existing extension points ([EditorGameService], IEditorGameOverlayService, [EditorSettings]) to see how plugins attach today. Done means an agreed design in #3581 or this issue, not code.

索引モデルが issue の本文から書いたものです。

説明

area-GameStudio area-Plugins enhancement

Users ask for custom tool windows in Game Studio, for example a panel with scene tools (spawn, paint, delete in the viewport) docked next to the property grid. Today this needs reflection hacks into the WPF window.

Related: #3183 (extending the scene editor, with a spline editor proof of concept). Tracked in #3581.

What a plugin can already do (4.5)

An Editor package can add:

  • scene editor behavior with [EditorGameService] (viewport input, picking, adding or removing entities);
  • scene editor overlays (IEditorGameOverlayService), gizmos;
  • asset editors and previews, editor settings pages ([EditorSettings]), thumbnails and icons.
What is missing
  • A dockable panel (tool window) declared by a plugin. The Game Studio layout is fixed in GameStudioWindow.xaml.
  • Toolbar buttons (in the scene editor toolbar or the main toolbar).
Proposal

Toolkit-neutral, like the asset editors already are:

  • The plugin's Editor package declares a panel: a view model type, a title, a default dock side.
  • Each UI toolkit provides the view (<Plugin>.Editor.Wpf today). The WPF to Avalonia port then only redoes the view, and plugins keep their view models.
  • Game Studio adds the declared panels to its layout and View menu, and saves their dock state with the layout.
主要言語
C#
スター
8k
フォーク
1.2k
平均マージ
1日 1時間
マージ済み PR(30日)
321

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stride3d/stride のほかの issue

stride3d/stride の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。