Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature request] I made a small proof-of-concept for a "site search" feature (see video)

Đang mở
#5,868 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 2 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
lua
Lĩnh vực
game-dev

Hướng nghiên cứu

The proof of concept hides other sites by toggling site.flag.HIDDEN, borrowing from reveal-hidden-sites.lua, so start by reading that script and how it restores flags. Then decide whether the search window can highlight the selected site without hiding the rest, which the issue asks the maintainers about. Done means a settled approach, and the search-and-restore behaviour working on a world map.

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

Mô tả

The idea is simple: the world map currently has no way to search sites by name, which makes finding specific locations difficult. The script provides a searchable list of all known sites using their translated English names.

When a site is selected, it temporarily hides all other world sites by toggling their site.flag.HIDDEN state, leaving only the selected site visible (yes, I borrowed the idea from reveal-hidden-sites.lua). The normal world map then highlights it automatically, using the game's existing site rendering behavior. When the search window is closed, all original hidden states are restored.

What do you think? Perhaps there is a better way to make the selected site stand out even more, and without hiding all the other sites?

https://github.com/user-attachments/assets/789344e2-331e-49c5-a022-3660aa3ab7f3

Ngôn ngữ chính
C++
Star
2.1k
Fork
509
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
28

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 DFHack/dfhack

Tất cả issue của DFHack/dfhack

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.