#include "../Cheat.h"
PaintTraverseFn oPaintTraverse;
void __fastcall Hks::PaintTraverse(void* pPanels, int edx, unsigned int panel, bool forceRepaint, bool allowForce)
{
if (!strcmp("HudZoom", I::VPanel->GetName(panel)))
return;
oPaintTraverse(pPanels, panel, forceRepaint, allowForce);
static unsigned int FocusOverlayPanel = 0;
static bool FoundPanel = false;
if (!FoundPanel)
{
PCHAR szPanelName = (PCHAR)I::VPanel->GetName(panel);
if (strstr(szPanelName, "MatSystemTopPanel"))
{
FocusOverlayPanel = panel;
FoundPanel = true;
}
}
else if (FocusOverlayPanel == panel)
{
//if (G::LocalPlayer->IsScoped())
//{
// int _x, _y;
// I::Engine->GetScreenSize(_x, _y);
// D::DrawLine(0, _y / 2, _x, _y / 2, Color::Black());
// D::DrawLine(_x / 2, 0, _x / 2, _y, Color::Black());
//}
Func::Visuals->Run();
Func::ClantagChanger->BeginFrame();
Func::NameChanger->BeginFrame();
}
}