-
Автор темы
- #1
i made that because my cursor wasnt drawing on my cs2 hack, it helpt me to debug my input bugs and solve them, maybe you guys could find any use for it since i dont need anymore
thats how it looks ( note that this is the most gheto way to draw it, you could do it using add text + custom font
C++:
void draw_cursor( ) {
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 1, input::g_input->get_mouse_pos( ).y, 1, 17, themes::g_theme->theme.outline);
for (unsigned int i = 0; i < 11; i++)
{
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 2 + i, input::g_input->get_mouse_pos( ).y + 1 + i, 1, 1, themes::g_theme->theme.outline);
}
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 8, input::g_input->get_mouse_pos( ).y + 12, 5, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 8, input::g_input->get_mouse_pos( ).y + 13, 1, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 9, input::g_input->get_mouse_pos( ).y + 14, 1, 2, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 10, input::g_input->get_mouse_pos( ).y + 16, 1, 2, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 8, input::g_input->get_mouse_pos( ).y + 18, 2, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 7, input::g_input->get_mouse_pos( ).y + 16, 1, 2, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 6, input::g_input->get_mouse_pos( ).y + 14, 1, 2, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 5, input::g_input->get_mouse_pos( ).y + 13, 1, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 4, input::g_input->get_mouse_pos( ).y + 14, 1, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 3, input::g_input->get_mouse_pos( ).y + 15, 1, 1, themes::g_theme->theme.outline);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 2, input::g_input->get_mouse_pos( ).y + 16, 1, 1, themes::g_theme->theme.outline);
for (unsigned int i = 0; i < 4; i++)
{
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 2 + i, input::g_input->get_mouse_pos( ).y + 2 + i, 1, 14 - (i * 2), themes::g_theme->theme.accent);
}
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 6, input::g_input->get_mouse_pos( ).y + 6, 1, 8, themes::g_theme->theme.accent);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 7, input::g_input->get_mouse_pos( ).y + 7, 1, 9, themes::g_theme->theme.accent);
for (unsigned int i = 0; i < 4; i++)
{
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 8 + i, input::g_input->get_mouse_pos( ).y + 8 + i, 1, 4 - i, themes::g_theme->theme.accent);
}
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 8, input::g_input->get_mouse_pos( ).y + 14, 1, 4, themes::g_theme->theme.accent);
render::g_render->add_rect_filled(input::g_input->get_mouse_pos( ).x + 9, input::g_input->get_mouse_pos( ).y + 16, 1, 2, themes::g_theme->theme.accent);
}