Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Menu::DrawMenu()
- {
- if (GetAsyncKeyState(VK_SHIFT) & 1)
- {
- this->active = !this->active;
- std::ostringstream mouseEnableCmd;
- mouseEnableCmd << "cl_mouseenable " << std::setw(1) << std::setfill('0') << !this->active;
- INTERFACES::Engine->ClientCmd(mouseEnableCmd.str().c_str());
- }
- if (this->active)
- {
- static int oldResolutionW = 0;
- static int oldResolutionH = 0;
- INTERFACES::Engine->GetScreenSize(this->resolutionW, this->resolutionH);
- if (this->resolutionW != oldResolutionW || this->resolutionH != oldResolutionH)
- {
- this->SetupFonts();
- this->GetMenuProportions();
- this->SetupElements();
- oldResolutionW = this->resolutionW;
- oldResolutionH = this->resolutionH;
- }
- this->cheat.Draw();
- gPaint.DrawCursor(CColor(255, 255, 255, 255), CColor(0, 0, 0, 255));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement