Skip to content

Commit

Permalink
Tint the designations based on type, similar to DF (#186)
Browse files Browse the repository at this point in the history
* Tint the designations based on type, similar to DF

Signed-off-by: Myk <[email protected]>
  • Loading branch information
realSquidCoder authored Feb 9, 2025
1 parent 1756e2f commit da7b177
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SpriteObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,15 @@ void c_sprite::assemble_world_offset(int x, int y, int z, int plateoffset, Tile
}

ALLEGRO_COLOR shade_color = shadeAdventureMode(get_color(b), b->fog_of_war, b->designation.bits.outside);
if (ssConfig.show_designations && containsDesignations(b->designation, b->occ)) {
if (b->occ.bits.dig_auto) { shade_color = al_map_rgba(0, 255, 127, 127); }
if (b->occ.bits.dig_marked) {
shade_color = al_map_rgba(0, 127, 255, 127);
if (b->occ.bits.dig_auto) {
shade_color = partialBlend(shade_color, al_map_rgba(0, 255, 127, 127), 25);
}
}
}
if(chop && ( halftile == HALFPLATECHOP)) {
if(shade_color.a > 0.001f) {
b->AssembleSprite(
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Template for new versions:
## Fixes

## Misc Improvements
- `stonesense`: different types of dig designations (normal, blueprint, autodig) now are distinctly tinted, similar to the vanilla DF interface

## Removed

Expand Down

0 comments on commit da7b177

Please sign in to comment.