Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. #pragma once
  2. #include "SDK.h"
  3.  
  4. struct settings_t
  5. {
  6.  
  7.  
  8. bool show_aiming = true; // default menu tab
  9.  
  10.  
  11.  
  12. bool show_visuals = false;
  13.  
  14.  
  15.  
  16. bool show_misc = false;
  17.  
  18. bool show_misc_bunnyhop = false;
  19.  
  20. //////////////////////////
  21. // LocalPlayer Tuneables//
  22. //////////////////////////
  23.  
  24. int ply_fov = NULL;
  25.  
  26. }; extern settings_t g_Settings;
  27.  
  28. class CMenu
  29. {
  30. public:
  31. void ThinkKeyboard()
  32. {
  33. static bool PressedButtons = false;
  34.  
  35. if (!PressedButtons && GetAsyncKeyState(VK_DELETE))
  36. {
  37. PressedButtons = true;
  38. }
  39. else if (PressedButtons && !GetAsyncKeyState(VK_DELETE))
  40. {
  41. PressedButtons = false;
  42. m_opened = !m_opened;
  43. }
  44. }
  45.  
  46. void SelectedTab()
  47. {
  48. ImGuiStyle& style = ImGui::GetStyle();
  49. style.Colors[ImGuiCol_Button] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  50. }
  51.  
  52. void NormalTab()
  53. {
  54. ImGuiStyle& style = ImGui::GetStyle();
  55. style.Colors[ImGuiCol_Button] = ImVec4(0.47f, 0.77f, 0.83f, 0.14f);
  56. }
  57.  
  58. void InitializeTheme()
  59. {
  60. ImGuiStyle& style = ImGui::GetStyle();
  61.  
  62. style.FramePadding = ImVec2(4, 2);
  63. style.ItemSpacing = ImVec2(6, 2);
  64. style.ItemInnerSpacing = ImVec2(6, 4);
  65. style.Alpha = 0.0f;
  66. style.WindowRounding = 4.0f;
  67. style.WindowTitleAlign = ImVec2(0.5, 0.5);
  68. style.FrameRounding = 2.0f;
  69. style.IndentSpacing = 6.0f;
  70. style.ItemInnerSpacing = ImVec2(2, 4);
  71. style.ColumnsMinSpacing = 50.0f;
  72. style.GrabMinSize = 14.0f;
  73. style.GrabRounding = 16.0f;
  74. style.ScrollbarSize = 12.0f;
  75. style.ScrollbarRounding = 16.0f;
  76.  
  77. style.Colors[ImGuiCol_Text] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);
  78. style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.28f);
  79. style.Colors[ImGuiCol_WindowBg] = ImVec4(0.13f, 0.14f, 0.17f, 1.00f);
  80. style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.20f, 0.22f, 0.27f, 0.58f);
  81. style.Colors[ImGuiCol_Border] = ImVec4(0.31f, 0.31f, 1.00f, 0.00f);
  82. style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  83. style.Colors[ImGuiCol_FrameBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  84. style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
  85. style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  86. style.Colors[ImGuiCol_TitleBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  87. style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);
  88. style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  89. style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.20f, 0.22f, 0.27f, 0.47f);
  90. style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  91. style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);
  92. style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
  93. style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  94. style.Colors[ImGuiCol_ComboBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);
  95. style.Colors[ImGuiCol_CheckMark] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  96. style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.47f, 0.77f, 0.83f, 0.14f);
  97. style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  98. style.Colors[ImGuiCol_Button] = ImVec4(0.47f, 0.77f, 0.83f, 0.14f);
  99. style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.86f);
  100. style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  101. style.Colors[ImGuiCol_Header] = ImVec4(0.15f, 0.60f, 0.78f, 0.76f);
  102. style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
  103. style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.0f); //
  104. style.Colors[ImGuiCol_Column] = ImVec4(0.14f, 0.16f, 0.19f, 1.00f);
  105. style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
  106. style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  107. style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.47f, 0.77f, 0.83f, 0.04f);
  108. style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);
  109. style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  110. style.Colors[ImGuiCol_CloseButton] = ImVec4(0.86f, 0.93f, 0.89f, 0.16f);
  111. style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.86f, 0.93f, 0.89f, 0.39f);
  112. style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(0.86f, 0.93f, 0.89f, 1.00f);
  113. style.Colors[ImGuiCol_PlotLines] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  114. style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  115. style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
  116. style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);
  117. style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.15f, 0.60f, 0.78f, 0.43f);
  118. style.Colors[ImGuiCol_PopupBg] = ImVec4(0.20f, 0.22f, 0.27f, 0.9f);
  119. style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.22f, 0.27f, 0.73f);
  120. }
  121.  
  122. void Think()
  123. {
  124. static bool last = m_opened;
  125.  
  126. if (m_opened != last)
  127. {
  128. last = m_opened;
  129.  
  130. std::string msg = ("cl_mouseenable ") + std::to_string(!m_opened);
  131. g_pEngine->ExecuteClientCmd(msg.c_str());
  132. }
  133.  
  134. ImGui::GetIO().MouseDrawCursor = m_opened;
  135.  
  136. /* your dope imgui menu here */
  137. ImGui::Begin(CHEAT_NAME, &m_opened, ImVec2(600, 350), 0.9f, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
  138. {
  139.  
  140. static int switchTabs = 4;
  141.  
  142. if (ImGui::Button("Legitbot", ImVec2(145.f, 20.f)))
  143. switchTabs = 0;
  144. ImGui::SameLine(0.0, 2.0f);
  145.  
  146.  
  147.  
  148. if (ImGui::Button("Ragebot", ImVec2(145.f, 20.f)))
  149. switchTabs = 1;
  150. ImGui::SameLine(0.0, 2.0f);
  151.  
  152.  
  153.  
  154. if (ImGui::Button("Visuals", ImVec2(145.f, 20.f)))
  155. switchTabs = 2;
  156. ImGui::SameLine(0.0, 2.0f);
  157.  
  158.  
  159.  
  160. if (ImGui::Button("Misc", ImVec2(145.f, 20.f)))
  161. switchTabs = 3;
  162. ImGui::SameLine(0.0, 2.0f);
  163.  
  164.  
  165.  
  166. switch (switchTabs) {
  167. case 0:
  168. ImGui::NewLine();
  169. break;
  170. case 1:
  171. ImGui::NewLine();
  172. break;
  173. case 2:
  174. ImGui::NewLine();
  175. break;
  176. case 3:
  177. ImGui::NewLine();
  178. ImGui::Checkbox("Bunnyhop", &g_Settings.show_misc_bunnyhop);
  179. break;
  180. }
  181.  
  182. }
  183. ImGui::End();
  184. }
  185.  
  186.  
  187. bool m_opened = false;
  188. }; extern CMenu* g_pMenu;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement