Editor panels and toolbar buttons from a plugin

Abierto
#3,589 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
C#
Estrellas
8k
Forks
1.2k
Merge medio
1 d 1 h
PR fusionados (30 d)
321

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stride3d/stride

Todos los issues de stride3d/stride

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.