if (sOptions[2].Function == 1) //if esp is enabled in menu
if (AimEspInfo.size() != NULL)
{
for (unsigned int i = 0; i < AimEspInfo.size(); i++)
{
if (AimEspInfo[i].vOutX > 1 && AimEspInfo[i].vOutY > 1 && AimEspInfo[i].vOutX < viewport.Width && AimEspInfo[i].vOutY < viewport.Height)
{
//draw box
//renderer->drawOutlinedRect(Vec4(AimEspInfo[i].vOutX - 7, AimEspInfo[i].vOutY, 12, 12), 1.f, Color{ 0.9f, 0.0f, 0.0f, 0.95f }, Color{ 1.f , 0.f, 0.f, 0.05f });
renderer->drawOutlinedRect(Vec4(AimEspInfo[i].vOutX - 25.0f, AimEspInfo[i].vOutY, 50, 50), 1.f, Color{ 0.0f, 0.9f, 0.0f, 0.95f }, Color{ 0.f , 1.f, 0.f, 0.02f });
//draw text
if (pFontWrapper)
pFontWrapper->DrawString(pContext, L"dino", 14, AimEspInfo[i].vOutX, AimEspInfo[i].vOutY, 0xFFFFFF00, FW1_RESTORESTATE| FW1_CENTER | FW1_ALIASED);
//distance esp
swprintf_s(reportValue, L"%d", (int)AimEspInfo[i].vOutZ);
if (pFontWrapper)
pFontWrapper->DrawString(pContext, reportValue, 14.0f, AimEspInfo[i].vOutX, AimEspInfo[i].vOutY+viewport.Height/20.0f, 0xffffffff, FW1_RESTORESTATE | FW1_CENTER | FW1_ALIASED);
}
}
}
renderer->draw();
renderer->end();
if (sOptions[10].Function == 2) //if esp is enabled in menu
if (AimEspInfo.size() != NULL)
{
for (unsigned int i = 0; i < AimEspInfo.size(); i++)
{
if (AimEspInfo[i].vOutX > 1 && AimEspInfo[i].vOutY > 1 && AimEspInfo[i].vOutX < viewport.Width && AimEspInfo[i].vOutY < viewport.Height)
{
//draw box
//renderer->drawOutlinedRect(Vec4(AimEspInfo[i].vOutX - 7, AimEspInfo[i].vOutY, 12, 12), 1.f, Color{ 0.9f, 0.0f, 0.0f, 0.95f }, Color{ 1.f , 0.f, 0.f, 0.05f });
renderer->drawOutlinedRect(Vec4(AimEspInfo[i].vOutX - 25.0f, AimEspInfo[i].vOutY, 50, 50), 1.f, Color{ 0.9f, 0.0f, 0.0f, 0.95f }, Color{ 0.f , 1.f, 0.f, 0.02f });
//draw text
if (pFontWrapper)
pFontWrapper->DrawString(pContext, L"_________________________", 14, AimEspInfo[i].vOutX, AimEspInfo[i].vOutY, 0xFFFFFF00, FW1_RESTORESTATE| FW1_CENTER | FW1_ALIASED);
//distance esp
swprintf_s(reportValue, L"%d", (int)AimEspInfo[i].vOutZ);
if (pFontWrapper)
pFontWrapper->DrawString(pContext, reportValue, 14.0f, AimEspInfo[i].vOutX, AimEspInfo[i].vOutY + viewport.Height / 20.0f, 0xffffffff, FW1_RESTORESTATE | FW1_CENTER | FW1_ALIASED);
}
}
}
renderer->draw();
renderer->end();