Gave the whiteboard its own copy of the attack indicator,
...so it can eventually be different from the regular one.
BIN
images/whiteboard/attack-indicator-dst-n.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/whiteboard/attack-indicator-dst-ne.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/whiteboard/attack-indicator-dst-nw.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/whiteboard/attack-indicator-dst-s.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
images/whiteboard/attack-indicator-dst-se.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/whiteboard/attack-indicator-dst-sw.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/whiteboard/attack-indicator-src-n.png
Normal file
After Width: | Height: | Size: 551 B |
BIN
images/whiteboard/attack-indicator-src-ne.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/whiteboard/attack-indicator-src-nw.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/whiteboard/attack-indicator-src-s.png
Normal file
After Width: | Height: | Size: 609 B |
BIN
images/whiteboard/attack-indicator-src-se.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
images/whiteboard/attack-indicator-src-sw.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
|
@ -111,7 +111,7 @@ void attack::draw_hex(const map_location& hex)
|
||||||
{
|
{
|
||||||
if (hex == get_dest_hex() || hex == target_hex_) //draw attack indicator
|
if (hex == get_dest_hex() || hex == target_hex_) //draw attack indicator
|
||||||
{
|
{
|
||||||
//TODO: replace this by either the use of transparency + LAYER_ATTACK_INDICATOR,
|
//@todo: replace this by either the use of transparency + LAYER_ATTACK_INDICATOR,
|
||||||
//or a dedicated layer
|
//or a dedicated layer
|
||||||
const display::tdrawing_layer layer = display::LAYER_FOOTSTEPS;
|
const display::tdrawing_layer layer = display::LAYER_FOOTSTEPS;
|
||||||
|
|
||||||
|
@ -124,9 +124,8 @@ void attack::draw_hex(const map_location& hex)
|
||||||
int xpos = resources::screen->get_location_x(get_dest_hex());
|
int xpos = resources::screen->get_location_x(get_dest_hex());
|
||||||
int ypos = resources::screen->get_location_y(get_dest_hex());
|
int ypos = resources::screen->get_location_y(get_dest_hex());
|
||||||
|
|
||||||
//TODO: Give the whiteboard its own copy of the attack indicator, so it can have a different look.
|
|
||||||
resources::screen->drawing_buffer_add(layer, get_dest_hex(), display::tblit(xpos, ypos,
|
resources::screen->drawing_buffer_add(layer, get_dest_hex(), display::tblit(xpos, ypos,
|
||||||
image::get_image("misc/attack-indicator-src-" + direction_text + ".png", image::SCALED_TO_HEX)));
|
image::get_image("whiteboard/attack-indicator-src-" + direction_text + ".png", image::SCALED_TO_HEX)));
|
||||||
}
|
}
|
||||||
else if (hex == target_hex_) //add symbol to defender hex
|
else if (hex == target_hex_) //add symbol to defender hex
|
||||||
{
|
{
|
||||||
|
@ -134,7 +133,7 @@ void attack::draw_hex(const map_location& hex)
|
||||||
int ypos = resources::screen->get_location_y(target_hex_);
|
int ypos = resources::screen->get_location_y(target_hex_);
|
||||||
|
|
||||||
resources::screen->drawing_buffer_add(layer, target_hex_, display::tblit(xpos, ypos,
|
resources::screen->drawing_buffer_add(layer, target_hex_, display::tblit(xpos, ypos,
|
||||||
image::get_image("misc/attack-indicator-dst-" + direction_text + ".png", image::SCALED_TO_HEX)));
|
image::get_image("whiteboard/attack-indicator-dst-" + direction_text + ".png", image::SCALED_TO_HEX)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|