Пользователь
-
Автор темы
- #1
Aimware v4 watermark.
C++:
void draw_watermark()
{
int tickrate = int(1.f / valve::interfaces::globalvars->interval_per_tick);
int fps = int(1.f / valve::interfaces::globalvars->frametime);
auto t = std::time(nullptr);
std::ostringstream time;
time << std::put_time(std::localtime(&t), "%H:%M:%S");
cheat::render::draw_rect_filled(15, 15, 246, 40, Color(73, 100, 170, 150));
cheat::render::draw_rect_filled(15, 40, 246, 44, Color(66, 87, 186, 255));
cheat::render::draw_rect_filled(15, 40, 246, 44, Color(66, 87, 186, 255));
cheat::render::draw_rect_filled(15, 44, 246, 67, Color(19, 19, 19, 255));
cheat::render::draw_rect_filled(15, 67, 246, 71, Color(29, 29, 27, 200));
cheat::render::draw_text(cheat::render::segoeui_font, 21, 20, Color(255, 255, 255, 255), 0, "aimware.net");
cheat::render::draw_text(cheat::render::segoeui_font, 21, 46, Color(255, 255, 255, 255), 0, "tick:");
cheat::render::draw_text(cheat::render::segoeui_font, 48, 46, Color(255, 255, 255, 255), 0, std::to_string(tickrate).c_str());
cheat::render::draw_text(cheat::render::segoeui_font, 90, 46, Color(255, 255, 255, 255), 0, "fps:");
cheat::render::draw_text(cheat::render::segoeui_font, 115, 46, Color(255, 255, 255, 255), 0, std::to_string(fps).c_str());
cheat::render::draw_text(cheat::render::segoeui_font, 160, 46, Color(255, 255, 255, 255), 0, "time:");
cheat::render::draw_text(cheat::render::segoeui_font, 193, 46, Color(255, 255, 255, 255), 0, time.str().c_str());
}
C++:
cheat::render::segoeui_font = cheat::render::create_font("Segoe UI Semibold", 18, 400, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);