Make steering wheel transparent

This commit is contained in:
dragonpilot
2019-09-24 15:09:20 +10:00
parent 8cb4ff08c7
commit 9f33903798
+3 -3
View File
@@ -1360,11 +1360,11 @@ static void ui_draw_vision_event(UIState *s) {
nvgBeginPath(s->vg);
nvgCircle(s->vg, bg_wheel_x, (bg_wheel_y + (bdr_s*1.5)), bg_wheel_size);
if (is_engaged) {
nvgFillColor(s->vg, nvgRGBA(23, 134, 68, 255));
nvgFillColor(s->vg, nvgRGBA(23, 134, 68, 180));
} else if (is_warning) {
nvgFillColor(s->vg, nvgRGBA(218, 111, 37, 255));
nvgFillColor(s->vg, nvgRGBA(218, 111, 37, 180));
} else if (is_engageable) {
nvgFillColor(s->vg, nvgRGBA(23, 51, 73, 255));
nvgFillColor(s->vg, nvgRGBA(23, 51, 73, 180));
}
nvgFill(s->vg);
img_wheel_alpha = 1.0f;