void Visuals::DesyncIndicator()
{
if (!g_LocalPlayer || !g_LocalPlayer->IsAlive())
return;
Color clr = Color::Green;
float percent;
percent = g_LocalPlayer->GetMaxDesyncAngle() / 58.f;
ImVec2 t = g_pDefaultFont->CalcTextSizeA(34.f, FLT_MAX, 0.0f, "DESYNC");
float width = t.x * percent;
Render::Get().RenderLine(9.f, ScreenY - 100.f - (CurrentIndicatorHeight - 34.f), 11.f + t.x, ScreenY - 100.f - (CurrentIndicatorHeight - 34.f), Color(0, 0, 0, 25), 4.f);
if (width <= t.x && width > 0.f)
Render::Get().RenderLine(10.f, ScreenY - 100.f - (CurrentIndicatorHeight - 34.f), 10.f + width, ScreenY - 100.f - (CurrentIndicatorHeight - 34.f), clr, 2.f);
Render::Get().RenderTextNoOutline("DESYNC", ImVec2(10, ScreenY - 100.f - CurrentIndicatorHeight), 34.f, clr);
CurrentIndicatorHeight += 34.f;
}