-
Автор темы
- #1
constchars.h
configs.h
configs.cpp
menu.cpp
world_esp.cpp
Preview:
C++:
const char* proj_combo[] =
{
"Icon",
"Text",
"Box",
"Glow",
"Warning"
};
C++:
Color grenade_box_color;
C++:
setup_item(&g_cfg.esp.grenade_warning_color, Color(255, 255, 255), crypt_str("Esp.grenade_warning_color"));
C++:
if (g_cfg.esp.grenade_esp[GRENADE_WARNING])
{
ImGui::Text(crypt_str("Warning color "));
ImGui::SameLine();
ImGui::ColorEdit(crypt_str("##grenade_warning_color"), &g_cfg.esp.grenade_warning_color, ALPHA);
}
Код:
if (util::get_bbox(entity, box, false))
{
if (g_cfg.esp.grenade_esp[GRENADE_WARNING])
{
render::get().circle_filled(box.x, box.y - size.y * 0.5f, 60, 20, Color(15, 15, 15, 255));
render::get().draw_arc(box.x, box.y - size.y * 0.5f, 20, -90, (360 * 1), 2, (15, 15, 15, g_cfg.esp.grenade_warning_color));
render::get().text(fonts[ESP], box.x, box.y - size.y * 0.5f + 12.0f, g_cfg.esp.grenade_warning_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "");
}
if (g_cfg.esp.grenade_esp[GRENADE_BOX])
{
render::get().rect(box.x, box.y, box.w, box.h, g_cfg.esp.grenade_box_color);
if (g_cfg.esp.grenade_esp[GRENADE_ICON])
render::get().text(fonts[GRENADES], box.x + 1.0f, box.y - size.y * 0.5f + 2.0f, g_cfg.esp.projectiles_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, grenade_icon.c_str());
if (g_cfg.esp.grenade_esp[GRENADE_TEXT])
render::get().text(fonts[ESP], box.x + box.w / 2, box.y + box.h + 2, g_cfg.esp.projectiles_color, HFONT_CENTERED_X, grenade_name.c_str());
}
else
{
if (g_cfg.esp.grenade_esp[GRENADE_ICON] && g_cfg.esp.grenade_esp[GRENADE_TEXT])
{
render::get().text(fonts[GRENADES], box.x + 1.0f, box.y - size.y * 0.5f + 2.0f, g_cfg.esp.projectiles_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, grenade_icon.c_str());
render::get().text(fonts[ESP], box.x + box.w / 2, box.y + box.h / 2 + 7, g_cfg.esp.projectiles_color, HFONT_CENTERED_X, grenade_name.c_str());
}
else
{
if (g_cfg.esp.grenade_esp[GRENADE_ICON])
render::get().text(fonts[GRENADES], box.x + 1.0f, box.y - size.y * 0.5f + 2.0f, g_cfg.esp.projectiles_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, grenade_icon.c_str());
if (g_cfg.esp.grenade_esp[GRENADE_TEXT])
render::get().text(fonts[ESP], box.x + box.w / 2, box.y + box.h / 2, g_cfg.esp.projectiles_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, grenade_name.c_str());
}
}
}