Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. bool esp = false;
  2. bool misc = false;
  3.  
  4.  
  5. auto& style = ImGui::GetStyle();
  6.  
  7. if (style.Alpha > 1.f)
  8. style.Alpha = 1.f;
  9. else if (style.Alpha != 1.f)
  10. style.Alpha += 0.01f;
  11.  
  12. style.Colors[ImGuiCol_Border] = ImVec4(0.0f, 0.0f, .0f, 0.00f);
  13. style.WindowMinSize = ImVec2(0, 0);
  14.  
  15. int w;
  16. int h;
  17.  
  18.  
  19.  
  20. ImVec2 mainWindowPos;
  21.  
  22. Source::m_pEngine->GetScreenSize(w, h);
  23.  
  24. ImGuiWindowFlags flagswindow = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize;
  25.  
  26.  
  27. if (ImGui::BeginMainMenuBar())
  28. {
  29. if (ImGui::BeginMenu("...."))
  30. {
  31. ImGui::MenuItem(XorStr("ESP"), " ", &esp);
  32. ImGui::MenuItem(XorStr("Misc"), " ", &misc);
  33. ImGui::EndMenu();
  34. }
  35. ImGui::EndMainMenuBar();
  36. }
  37.  
  38.  
  39. if(esp)
  40. {
  41. ImGui::Begin(XorStr("ESP"), nullptr, flagswindow);
  42. {
  43. //Чекбоксы и т.д тута
  44. }
  45. ImGui::End();
  46.  
  47. }
  48. if(misc)
  49. {
  50. ImGui::Begin(XorStr("Misc"), nullptr, flagswindow);
  51. {
  52. //ну тут чекбоксы и т.д
  53. }
  54. ImGui::End();
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement