Active Generator overlay doesn't rewrap its buttons when its width changes

Đang mở
#223 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, unity
Lĩnh vực
design, game-dev

Hướng nghiên cứu

Start by reading ChiselPlacementToolsSelectionWindow.RenderGeneratorTools, where the issue says a fixed width of eight buttons is used as a workaround. Inspect how the Active Generator overlay lays out its buttons as its width changes in docked and floating modes and when the scene view is resized. Done means rows rewrap, the overlay width matches the rows, and button gaps stay consistent without clipping or excess space.

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

Mô tả

The "Chisel Active Generator" overlay doesn't lay out its generator buttons properly when its width changes.

  • When the scene view is resized, the overlay changes width, but the rows of buttons don't wrap again to fit.
  • Buttons get clipped by the overlay's edge, or it leaves empty space beside the last column.
  • The overlay should be exactly as wide as its rows of buttons, with the same gap between buttons, and should rewrap whenever its width changes (docked, floating, or when the scene view is resized).

The current workaround gives the overlay a fixed width of 8 buttons in ChiselPlacementToolsSelectionWindow.RenderGeneratorTools, which avoids the clipping but doesn't wrap.

Ngôn ngữ chính
C#
Star
135
Fork
15
Merge trung bình
24 phút
Pull request đã merge (30 ngày)
112

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 RadicalCSG/com.chisel

Tất cả issue của RadicalCSG/com.chisel

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.