Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline bool CheckPanel(const char* pName) {
- return !std::strcmp(pName, "MatSysTopPanel");
- }
- void __fastcall Hooked_PaintTraverse(void* ecx, void* edx, unsigned int vguiPanel, bool forceRepaint, bool allowForce) {
- m_pPanelHook->GetMethod<PaintTraverseFn>(HOOK_INDEX_PAINTTRAVERSE)(ecx, vguiPanel, forceRepaint, allowForce);
- const char* pPanelName = m_pPanel->GetName(vguiPanel);
- if (CheckPanel(pPanelName)) {
- m_pSurface->DrawSetColor(255, 255, 255, 255);
- m_pSurface->DrawFilledRect(0, 0, 100, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement