File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ void HUD :: logic_self(Freq::Time t)
45
45
Color c = Color::white ();
46
46
if (i == 1 )
47
47
c = Color::black ();
48
- cairo->set_source_rgba (c.r (), c.g (), c.b (), c.a ());
48
+ // cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
49
49
m_pCanvas->text (
50
50
boost::to_upper_copy (ch->weapon ()->name ()) + " " + to_string (+ ch->clip ()) + " / " + to_string (ch->ammo ()),
51
+ c,
51
52
vec2 (sz/2 .0f - i*shadow, m_pWindow->size ().y - sz/2 .0f + i*shadow)
52
53
);
53
54
if (i == 0 ){
@@ -57,13 +58,14 @@ void HUD :: logic_self(Freq::Time t)
57
58
ch->hp_percent () / 100 .0f
58
59
);
59
60
}
60
- cairo->set_source_rgba (c.r (), c.g (), c.b (), c.a ());
61
+ // cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
61
62
cairo->set_font_size (
62
63
sz + (1 .0f - ch->hp_percent () / 100 .0f ) * 4 .0f * (1 .0f +sin (m_Fade * K_TAU)
63
64
// + sz * (1.0f - ch->hp_percent() / 100.0f)
64
65
));
65
66
m_pCanvas->text (
66
67
to_string (ch->hp_percent ()) + " %" ,
68
+ c,
67
69
vec2 (m_pWindow->size ().x - sz/2 .0f - i*shadow, m_pWindow->size ().y - sz/2 .0f + i*shadow),
68
70
Canvas::Align::RIGHT
69
71
);
You can’t perform that action at this time.
0 commit comments