Improved visibility of the attack indicator.
Move it on its own layer and show it at a higher level so it won't be obscured by the terrain (bug #12401).
This commit is contained in:
parent
3847d29bbd
commit
2136d9eff1
4 changed files with 6 additions and 2 deletions
|
@ -40,6 +40,8 @@ Version 1.5.4+svn:
|
|||
* Added a new image widget.
|
||||
* Added a feature to draw hex coordinates and/or terrain code on every hex.
|
||||
Available in-game via :sc and :tc commands, and in editor2's menu.
|
||||
* Move the attack indicator on it's own layer and show at a higher layer so
|
||||
its view won't be obscured by the terrain (bug #12401).
|
||||
* WML engine:
|
||||
* New command, [store_time_of_day], makes it possible to store ToD info
|
||||
in a WML array/container.
|
||||
|
|
|
@ -32,6 +32,7 @@ Version 1.5.4+svn:
|
|||
lists (FR #7492) and wildcards.
|
||||
* Added a feature to draw hex coordinates and/or terrain code on every hex.
|
||||
Available in-game via :sc and :tc commands, and in editor2's menu.
|
||||
* Make sure the attack indicator is never obscured by the terrain.
|
||||
|
||||
Version 1.5.4:
|
||||
* Editor2
|
||||
|
|
|
@ -674,6 +674,7 @@ public:
|
|||
* Unit bars and overlays are drawn on this
|
||||
* layer (for testing here).
|
||||
*/
|
||||
LAYER_ATTACK_INDICATOR, /**< Layer which holds the attack indicator. */
|
||||
LAYER_MOVE_INFO, /**< Movement info (defense%, ect...). */
|
||||
LAYER_LINGER_OVERLAY, /**< The overlay used for the linger mode. */
|
||||
LAYER_BORDER, /**< The border of the map. */
|
||||
|
|
|
@ -384,10 +384,10 @@ void game_display::draw_hex(const gamemap::location& loc)
|
|||
}
|
||||
// Draw the attack direction indicator
|
||||
if(on_map && loc == attack_indicator_src_) {
|
||||
drawing_buffer_add(LAYER_TERRAIN_TMP_BG, drawing_order, tblit(xpos, ypos,
|
||||
drawing_buffer_add(LAYER_ATTACK_INDICATOR, drawing_order, tblit(xpos, ypos,
|
||||
image::get_image("misc/attack-indicator-src-" + attack_indicator_direction() + ".png", image::UNMASKED)));
|
||||
} else if (on_map && loc == attack_indicator_dst_) {
|
||||
drawing_buffer_add(LAYER_TERRAIN_TMP_BG, drawing_order, tblit(xpos, ypos,
|
||||
drawing_buffer_add(LAYER_ATTACK_INDICATOR, drawing_order, tblit(xpos, ypos,
|
||||
image::get_image("misc/attack-indicator-dst-" + attack_indicator_direction() + ".png", image::UNMASKED)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue