Editor panels and toolbar buttons from a plugin

Đang mở
#3,589 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C#
Star
8k
Fork
1.2k
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
321

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stride3d/stride

Tất cả issue của stride3d/stride

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.