Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. void Menu::DrawMenu()
  2. {
  3. if (GetAsyncKeyState(VK_SHIFT) & 1)
  4. {
  5. this->active = !this->active;
  6.  
  7. std::ostringstream mouseEnableCmd;
  8. mouseEnableCmd << "cl_mouseenable " << std::setw(1) << std::setfill('0') << !this->active;
  9. INTERFACES::Engine->ClientCmd(mouseEnableCmd.str().c_str());
  10. }
  11.  
  12. if (this->active)
  13. {
  14. static int oldResolutionW = 0;
  15. static int oldResolutionH = 0;
  16.  
  17. INTERFACES::Engine->GetScreenSize(this->resolutionW, this->resolutionH);
  18.  
  19. if (this->resolutionW != oldResolutionW || this->resolutionH != oldResolutionH)
  20. {
  21. this->SetupFonts();
  22. this->GetMenuProportions();
  23. this->SetupElements();
  24.  
  25. oldResolutionW = this->resolutionW;
  26. oldResolutionH = this->resolutionH;
  27. }
  28.  
  29. this->cheat.Draw();
  30. gPaint.DrawCursor(CColor(255, 255, 255, 255), CColor(0, 0, 0, 255));
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement