Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show danger radius in overmap note list #71628

Merged

Conversation

nornagon
Copy link
Contributor

@nornagon nornagon commented Feb 9, 2024

Summary

Interface "Show danger radius in note list"

Purpose of change

Ref #71577. This adds some indication in the note list UI that a particular
note has a danger radius associated with it.

Describe the solution

Added a new note_danger_radius method, because this information wasn't
previously exposed by the overmap interface.

Also makes the "DANGEROUS AREA" text translated, and changes it to "IN DANGEROUS AREA" for notes that are not themselves marked dangerous (but which fall inside a danger zone).

Describe alternatives you've considered

Perhaps the whole om_note struct ought to be exposed..?

Testing

Tested locally.

Screenshot 2024-02-08 at 21 06 02 Screenshot 2024-02-08 at 21 06 12 Screenshot 2024-02-08 at 21 06 20

Additional context

NB there is a bug in trim_by_length which messes up the color when the note name is very long. I'll attempt to address this separately:

Screenshot 2024-02-08 at 21 07 22

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. Map / Mapgen Overmap, Mapgen, Map extras, Map display [C++] Changes (can be) made in C++. Previously named `Code` labels Feb 9, 2024
src/overmap_ui.cpp Outdated Show resolved Hide resolved
src/overmap_ui.cpp Outdated Show resolved Hide resolved
src/overmap_ui.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 9, 2024
@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Feb 9, 2024
@nornagon nornagon changed the title show danger radius in note list show danger radius in overmap note list Feb 9, 2024
@Maleclypse Maleclypse merged commit 9a66582 into CleverRaven:master Feb 11, 2024
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants