Change the default alpha transparency of hp/xp bar from 0.7 to 0.8...
...(used when a unit is not under the mouse, 1.0 continue to be used in this case) This helps a little to avoid confusion with a colored background partially visible under the bar (like reported in bug #11030) PS: bars a bit more visible but seems still ok (if you can notice the change). Using always 1.0 is possible and more KISS but looked less nice IMO
This commit is contained in:
parent
0464c67d1f
commit
a69ada3bc6
1 changed files with 1 additions and 1 deletions
|
@ -1831,7 +1831,7 @@ void unit::redraw_unit(game_display& disp, const gamemap::location& loc)
|
|||
#endif
|
||||
const int hp_bar_height = static_cast<int>(max_hitpoints()*game_config::hp_bar_scaling);
|
||||
|
||||
const fixed_t bar_alpha = loc == disp.mouseover_hex() ? ftofxp(1.0): ftofxp(0.7);
|
||||
const fixed_t bar_alpha = loc == disp.mouseover_hex() ? ftofxp(1.0): ftofxp(0.8);
|
||||
|
||||
disp.draw_bar(*energy_file, xsrc+bar_shift, ysrc_adjusted, hp_bar_height, unit_energy,hp_color(), bar_alpha);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue