Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#5,868 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
lua
Domínio
game-dev

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
C++
Estrelas
2.1k
Forks
509
Merge médio
2d 19h
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DFHack/dfhack

Todas as issues de DFHack/dfhack

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.