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

add sound/deafness to labels and labels-narrow sidebar layouts #35886

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

esotericist
Copy link
Contributor

SUMMARY: Interface "add sound/deafness to labels and labels-narrow sidebar layouts"

Purpose of change

it turns out that there is no indicator for player-generated-sound or player-deafness in the labels or labels-narrow sidebar layouts, which deprives users of sometimes-critical-information

Describe the solution

added sound/deafness indicator to the draw_needs_labels panel of the labels layout
added a new draw_sound_narrow panel to the labels-narrow layout

Describe alternatives you've considered

this originally came up in the context of a player wanting a warning when setting alarm when they had earplugs in

it's possible the primary use cases where this would matter could be addressed when relevant, but since there was empty room in the labels layout and you can disable the new panel for labels-narrow, it seemed sensible to just go ahead and add this information

Testing

loaded game, equipped earplugs, also ran around and smashed things w/out earplugs, verifying noise showed up as expected

Additional context

labels narrow sound
image1

labels narrow deaf
image2

labels deaf
image3

@esotericist esotericist added [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics Info / User Interface Game - player communication, menus, etc. <Bugfix> This is a fix for a bug (or closes open issue) labels Dec 5, 2019
@ZhilkinSerg ZhilkinSerg merged commit f25ef50 into CleverRaven:master Dec 6, 2019
I-am-Erk pushed a commit to I-am-Erk/Cataclysm-DDA that referenced this pull request Dec 6, 2019
…rRaven#35886)

* add sound/deafness to labels and labels-narrow sidebar layouts

* attempt to appease clang-tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants