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

Draw highlights in tiles #29840

Merged
merged 2 commits into from Apr 23, 2019

Conversation

Projects
None yet
3 participants
@ifreund
Copy link
Contributor

commented Apr 22, 2019

Summary

SUMMARY: Features "Draw highlights in tiles (e.g. when examining)."

Purpose of change

While working on some other changes, I noticed that in curses actions such as examine draw a highlight on valid targets by inverting the colors at those points. However, there was no equivalent in tiles.

Describe the solution

This pull request adds a new graphic highlight that can be drawn very similarly to how a cursor is drawn.

I also set this to the same sprite as cursor for all tilesets, as this is a workable fallback until tileset maintainers replace it.

ifreund added some commits Apr 22, 2019

Allow specification of a `highlight` graphic in tiles
 - This is meant to be the SDL analog of inverting colors in curses.
 - This is currently drawn, for example, to show which adjacent tiles can be examined.
Set highlight graphic same as cursor in all tilesets
 - This is meant as a decent fallback, as not all tilesets are actively updated.
 - Those tilsets which are under active development can of course replace this.

@ZhilkinSerg ZhilkinSerg self-assigned this Apr 23, 2019

@ZhilkinSerg ZhilkinSerg merged commit 5a102c1 into CleverRaven:master Apr 23, 2019

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
gorgon-ghprb Build finished.
Details

@ZhilkinSerg ZhilkinSerg removed their assignment Apr 23, 2019

@kevingranade

This comment has been minimized.

Copy link
Member

commented Apr 23, 2019

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/32x32-msx-dead-people-tileset/18775/161

@ifreund ifreund deleted the ifreund:tiles-highlight branch Apr 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.