Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\includes.hpp"
- #define rgba_to_float(r,g,b,a) (float)r/255.0f, (float)g/255.0f, (float)b/255.0f, (float)a/255.0f
- bool new_menu::m_init = false;
- ImFont* new_menu::Default = nullptr;
- ImFont* new_menu::Logo = nullptr;
- ImFont* new_menu::Default_bold = nullptr;
- ImFont* new_menu::Default_bold2 = nullptr;
- namespace ImGui
- {
- static auto vector_getter = [](void* vec, int idx, const char** out_text)
- {
- auto& vector = *static_cast<std::vector<std::string>*>(vec);
- if (idx < 0 || idx >= static_cast<int>(vector.size())) { return false; }
- *out_text = vector.at(idx).c_str();
- return true;
- };
- bool Combo(const char* label, int* currIndex, std::vector<std::string>& values)
- {
- if (values.empty()) { return false; }
- return Combo(label, currIndex, vector_getter,
- static_cast<void*>(&values), values.size());
- }
- bool ListBox(const char* label, int* currIndex, std::vector<std::string>& values, int height_in_items = -1)
- {
- if (values.empty()) { return false; }
- return ListBox(label, currIndex, vector_getter,
- static_cast<void*>(&values), values.size(), height_in_items);
- }
- static bool ListBox(const char* label, int* current_item, std::function<const char*(int)> lambda, int items_count, int height_in_items)
- {
- return ImGui::ListBox(label, current_item, [](void* data, int idx, const char** out_text)
- {
- *out_text = (*reinterpret_cast<std::function<const char*(int)>*>(data))(idx);
- return true;
- }, &lambda, items_count, height_in_items);
- }
- void ColorPickerBox(const char* picker_idname, float col_n[], bool alpha = false)
- {
- bool open_popup = ImGui::ColorButton(picker_idname, col_n, ImGuiColorEditFlags_RGB, ImVec2(45.0f, 15.0f));
- if (open_popup)
- ImGui::OpenPopup(picker_idname);
- if (ImGui::BeginPopup(picker_idname))
- {
- std::string id_new = picker_idname;
- id_new += "##pick";
- ImGui::MyColorPicker4(id_new.c_str(), col_n, ImGuiColorEditFlags_RGB | (alpha ? ImGuiColorEditFlags_Alpha : 0));
- ImGui::EndPopup();
- }
- }
- }
- auto new_menu::initialize(IDirect3DDevice9* m_device) -> void
- {
- ImGui_ImplDX9_Init(hooks::window, m_device);
- auto& style = ImGui::GetStyle();
- auto& io = ImGui::GetIO();
- ImGui::GetIO().MouseDrawCursor = g_cfg.menu.menu_opened;
- style.Colors[ImGuiCol_Text] = ImVec4(rgba_to_float(188.f, 198.f, 200.f, 255.f));
- style.Colors[ImGuiCol_ComboBg] = ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f));
- style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.28f);
- style.Colors[ImGuiCol_WindowBg] = ImVec4(rgba_to_float(50.0f, 53.0f, 68.0f, 255.0f));
- style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(rgba_to_float(50.0f, 53.0f, 68.0f, 255.0f));
- style.Colors[ImGuiCol_Border] = ImVec4(rgba_to_float(28.0f, 28.0f, 28.0f, 255.0f));
- style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.05f);
- style.Colors[ImGuiCol_FrameBg] = ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f));
- style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f));
- style.Colors[ImGuiCol_FrameBgActive] = ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f));
- style.Colors[ImGuiCol_TitleBg] = ImVec4(rgba_to_float(38.0f, 36.0f, 36.0f, 255.f));
- style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(rgba_to_float(38.0f, 36.0f, 36.0f, 255.f));
- style.Colors[ImGuiCol_TitleBgActive] = ImVec4(rgba_to_float(38.0f, 36.0f, 36.0f, 255.f));
- style.Colors[ImGuiCol_MenuBarBg] = ImVec4(rgba_to_float(16.f, 16.f, 23.f, 255.f));
- style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(rgba_to_float(22.0f, 22.0f, 22.0f, 255.0f));
- style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(rgba_to_float(161.0f, 64.0f, 64.0f, 255.0f));
- style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(rgba_to_float(161.0f, 64.0f, 64.0f, 255.0f));
- style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(rgba_to_float(161.0f, 64.0f, 64.0f, 255.0f));
- style.Colors[ImGuiCol_CheckMark] = ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 255.0f));
- style.Colors[ImGuiCol_SliderGrab] = ImVec4(rgba_to_float(161.0f, 64.0f, 64.0f, 255.0f));
- style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(rgba_to_float(161.0f, 64.0f, 64.0f, 255.0f));
- style.Colors[ImGuiCol_Button] = ImVec4(rgba_to_float(41.0f, 44.0f, 51.0f, 255.0f));
- style.Colors[ImGuiCol_ButtonHovered] = ImVec4(rgba_to_float(41.0f, 44.0f, 51.0f, 255.0f));
- style.Colors[ImGuiCol_ButtonActive] = ImVec4(rgba_to_float(41.0f, 44.0f, 51.0f, 255.0f));
- style.Colors[ImGuiCol_Header] = ImVec4(rgba_to_float(25.0f, 36.0f, 54.0f, 255.0f));
- style.Colors[ImGuiCol_HeaderHovered] = ImVec4(rgba_to_float(25.0f, 36.0f, 54.0f, 255.0f));
- style.Colors[ImGuiCol_HeaderActive] = ImVec4(rgba_to_float(25.0f, 36.0f, 54.0f, 255.0f));
- style.Colors[ImGuiCol_Column] = ImVec4(0.14f, 0.16f, 0.19f, 1.00f);
- style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.92f, 0.18f, 0.29f, 0.78f);
- style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.92f, 0.18f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.47f, 0.77f, 0.83f, 0.04f);
- style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.92f, 0.18f, 0.29f, 0.78f);
- style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.92f, 0.18f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_PlotLines] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
- style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.92f, 0.18f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.86f, 0.93f, 0.89f, 0.63f);
- style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.92f, 0.18f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.92f, 0.18f, 0.29f, 0.43f);
- style.Colors[ImGuiCol_PopupBg] = ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f));
- style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(0.20f, 0.22f, 0.27f, 0.73f);
- style.Colors[ImGuiCol_CloseButton] = ImVec4(rgba_to_float(200.0f, 200.0f, 200.0f, 255.0f));
- style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(rgba_to_float(200.0f, 200.0f, 200.0f, 255.0f));
- style.Colors[ImGuiCol_CloseButtonActive] = ImVec4(rgba_to_float(200.0f, 200.0f, 200.0f, 255.0f));
- style.WindowMinSize = ImVec2(160.0f, 20.0f);
- style.FramePadding = ImVec2(4, 4);
- style.ItemSpacing = ImVec2(2.0f, 7.5f);
- style.WindowTitleAlign = ImVec2(0.513f, 0.5f);
- style.WindowPadding = ImVec2(0.f, 0.f);
- style.ItemInnerSpacing = ImVec2(8.0f, 4.0f);
- style.Alpha = 1.0f;
- style.WindowRounding = 0.0f;
- style.FrameRounding = 0.0f;
- style.IndentSpacing = 6.0f;
- style.ColumnsMinSpacing = 50.0f;
- style.GrabMinSize = 14.0f;
- style.GrabRounding = 0.0f;
- style.ScrollbarSize = 12.0f;
- style.ScrollbarRounding = 25.0f;
- style.CurveTessellationTol = 1.25f;
- style.ChildWindowRounding = 0.0f;
- style.AntiAliasedLines = true;
- style.AntiAliasedShapes = true;
- ImFontConfig font_config;
- font_config.OversampleH = 1;
- font_config.OversampleV = 1;
- font_config.PixelSnapH = true;
- Default = io.Fonts->AddFontFromFileTTF(u8"C:\\Windows\\Fonts\\Tahoma.ttf", 15.0f, &font_config, io.Fonts->GetGlyphRangesCyrillic());
- Logo = io.Fonts->AddFontFromFileTTF(u8"C:\\Windows\\Fonts\\Twiddlybitz.ttf", 10.0f, &font_config, io.Fonts->GetGlyphRangesCyrillic());
- Default_bold = io.Fonts->AddFontFromFileTTF(u8"C:\\Windows\\Fonts\\tahomabd.ttf", 15.0f, &font_config, io.Fonts->GetGlyphRangesCyrillic());
- Default_bold2 = io.Fonts->AddFontFromFileTTF(u8"C:\\Windows\\Fonts\\tahomabd.ttf", 14.0f, &font_config, io.Fonts->GetGlyphRangesCyrillic());
- m_init = true;
- }
- auto new_menu::render(IDirect3DDevice9* m_device) -> void
- {
- if (!m_init)
- initialize(m_device);
- ImGui_ImplDX9_NewFrame();
- if (g_cfg.menu.menu_opened)
- {
- const auto flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_ShowBorders | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings;
- const auto flags_child = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings;
- static auto tab_n = 0;
- static auto tab_n2 = 0;
- static auto check = false;
- static auto slider_float = 0.0f;
- static auto slider_int = 0;
- static float slider_picker[] = { 1.0f, 1.0f, 1.0f, 1.0f };
- static const char* combo_box[] = { "test1", "test2", "test3", "test4" };
- static const char* selection_type[] = { "field of view", "distance", "health" };
- static const char* lag_compensation_type[] = { "refine shot", "prediction" };
- ImGui::Begin("##main", &g_cfg.menu.menu_opened, ImVec2(930.0f, 605.0f), 1.0f, flags);
- {
- auto m_pos = ImGui::GetCursorScreenPos();
- auto m_draw = ImGui::GetWindowDrawList();
- // title bar
- m_draw->AddRectFilled(m_pos, m_pos + ImVec2(930.0f, 19.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(50.0f, 53.0f, 68.0f, 255.0f))));
- // 1st selectable
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 20.0f), m_pos + ImVec2(125.0f, 605.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(69.0f, 74.0f, 103.0f, 255.0f))));
- // 2st selectable
- m_draw->AddRectFilled(m_pos + ImVec2(125.0f, 20.0f), m_pos + ImVec2(335.0f, 605.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f))));
- // border
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 19.0f), m_pos + ImVec2(930.0f, 19.9f), ImGui::GetColorU32(ImVec4(rgba_to_float(36.0f, 39.0f, 46.0f, 255.0f))));
- ImGui::PushFont(Logo);
- m_draw->AddText(m_pos + ImVec2(7.0f, 2.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(181.0f, 184.0f, 193.0f, 255.0f))), "SAMOWARE-PROJECT");
- ImGui::PopFont();
- // controlers
- ImGui::SetCursorPos(ImVec2(47.0f, 165.0f));
- ImGui::BeginGroup();
- ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- if (ImGui::Button("##Rage", ImVec2(50.0f, 0.0f))) tab_n = 1, tab_n2 = 0;
- ImGui::SetCursorPosY(211.0f);
- if (ImGui::Button("##Config", ImVec2(50.0f, 0.0f))) tab_n = 2, tab_n2 = 0;
- ImGui::SetCursorPos(ImVec2(45.0f, 270.0f));
- if (ImGui::Button("##Visuals", ImVec2(50.0f, 0.0f))) tab_n = 3, tab_n2 = 0;
- ImGui::SetCursorPos(ImVec2(38.0f, 325.0f));
- if (ImGui::Button("##Gameplay", ImVec2(65.0f, 0.0f))) tab_n = 4, tab_n2 = 0;
- ImGui::SetCursorPosY(380.0f);
- if (ImGui::Button("##Legit", ImVec2(50.0f, 0.0f))) tab_n = 5, tab_n2 = 0;
- ImGui::SetCursorPosY(435.0f);
- if (ImGui::Button("##Skins", ImVec2(50.0f, 0.0f))) tab_n = 6, tab_n2 = 0;
- ImGui::PopStyleColor(3);
- ImGui::EndGroup();
- switch (tab_n)
- {
- case 0:
- break;
- case 1:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 147.0f), m_pos + ImVec2(125.0f, 191.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Rage");
- ImGui::PopFont();
- ImGui::SetCursorPos(ImVec2(151.0f, 66.0f));
- ImGui::PushFont(Default_bold);
- ImGui::BeginGroup();
- tab_n2 == 1 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Aimbot") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Aimbot");
- ImGui::SetCursorPosY(99.0f);
- tab_n2 == 2 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Anti-aim") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Anti-aim");
- ImGui::SetCursorPosY(132.0f);
- tab_n2 == 3 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "AA Standing") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "AA Regular");
- ImGui::SetCursorPosY(165.0f);
- tab_n2 == 4 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "AA Moving") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "AA Moving");
- ImGui::SetCursorPosY(198.0f);
- tab_n2 == 5 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "AA In air") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "AA Air");
- ImGui::EndGroup();
- ImGui::PopFont();
- ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::SetCursorPos(ImVec2(151.0f, 65.0f));
- if (ImGui::Button("##Aimbot", ImVec2(65.0f, 19.0f))) tab_n2 = 1;
- ImGui::SetCursorPos(ImVec2(151.0f, 100.0f));
- if (ImGui::Button("##Anti-aim", ImVec2(65.0f, 19.0f))) tab_n2 = 2;
- ImGui::SetCursorPos(ImVec2(151.0f, 132.0f));
- if (ImGui::Button("##AA Standing", ImVec2(65.0f, 19.0f))) tab_n2 = 3;
- ImGui::SetCursorPos(ImVec2(151.0f, 166.0f));
- if (ImGui::Button("##AA Moving", ImVec2(65.0f, 19.0f))) tab_n2 = 4;
- ImGui::SetCursorPos(ImVec2(151.0f, 197.0f));
- if (ImGui::Button("##AA In air", ImVec2(65.0f, 19.0f))) tab_n2 = 5;
- ImGui::PopStyleColor(3);
- break;
- case 2:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 199.0f), m_pos + ImVec2(125.0f, 243.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Config");
- ImGui::PopFont();
- ImGui::SetCursorPos(ImVec2(151.0f, 66.0f));
- ImGui::PushFont(Default_bold);
- ImGui::BeginGroup();
- //tab_n2 == 6 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Slots") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Slots");
- //ImGui::SetCursorPosY(99.0f);
- tab_n2 == 7 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Auto") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Auto");
- ImGui::SetCursorPosY(99.0f);
- tab_n2 == 8 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Scout") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Scout");
- ImGui::SetCursorPosY(132.0f);
- tab_n2 == 9 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "AWP") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "AWP");
- ImGui::SetCursorPosY(165.0f);
- tab_n2 == 10 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Heavy pistols") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Heavy pistols");
- ImGui::SetCursorPosY(198.0f);
- tab_n2 == 11 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Pistols") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Pistols");
- ImGui::SetCursorPosY(231.0f);
- //ImGui::SetCursorPosY(264.0f);
- tab_n2 == 12 ? ImGui::TextColored(ImVec4(rgba_to_float(20.0f, 176.0f, 173.0f, 255.0f)), "Other") : ImGui::TextColored(ImVec4(rgba_to_float(130.0f, 130.0f, 140.0f, 255.0f)), "Other");
- ImGui::EndGroup();
- ImGui::PopFont();
- ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(0.0f, 0.0f, 0.0f, 0.0f));
- //ImGui::SetCursorPos(ImVec2(151.0f, 65.0f));
- //if (ImGui::Button("##Slots", ImVec2(65.0f, 19.0f))) tab_n2 = 6;
- ImGui::SetCursorPos(ImVec2(151.0f, 65.0f));
- if (ImGui::Button("##Auto", ImVec2(65.0f, 19.0f))) tab_n2 = 7;
- ImGui::SetCursorPos(ImVec2(151.0f, 100.0f));
- if (ImGui::Button("##Scout", ImVec2(65.0f, 19.0f))) tab_n2 = 8;
- ImGui::SetCursorPos(ImVec2(151.0f, 166.0f));
- if (ImGui::Button("##AWP", ImVec2(65.0f, 19.0f))) tab_n2 = 9;
- ImGui::SetCursorPos(ImVec2(151.0f, 166.0f));
- if (ImGui::Button("##Heavy pistols", ImVec2(65.0f, 19.0f))) tab_n2 = 10;
- ImGui::SetCursorPos(ImVec2(151.0f, 197.0f));
- if (ImGui::Button("##Pistols", ImVec2(65.0f, 19.0f))) tab_n2 = 12;
- ImGui::SetCursorPos(ImVec2(151.0f, 228.0f));//259
- if (ImGui::Button("##Other", ImVec2(65.0f, 19.0f))) tab_n2 = 13;
- ImGui::PopStyleColor(3);
- break;
- case 3:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 257.0f), m_pos + ImVec2(125.0f, 301.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Visuals");
- ImGui::PopFont();
- break;
- case 4:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 312.0f), m_pos + ImVec2(125.0f, 356.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Gameplay");
- ImGui::PopFont();
- break;
- case 5:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 367.0f), m_pos + ImVec2(125.0f, 411.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Legit");
- ImGui::PopFont();
- break;
- case 6:
- m_draw->AddRectFilled(m_pos + ImVec2(0.0f, 422.0f), m_pos + ImVec2(125.0f, 466.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(20.0f, 178.0f, 177.0f, 220.0f))));
- ImGui::SetCursorPos(ImVec2(142.0f, 35.0f));
- ImGui::PushFont(Default_bold);
- ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f), "Skins");
- ImGui::PopFont();
- break;
- default:
- tab_n = 0;
- break;
- }
- const char* hitboxes[5] = {
- "head", "chest", "stomach", "arms", "legs"
- };
- switch (tab_n2)
- {
- case 0:
- break;
- case 1:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 64.0f), m_pos + ImVec2(144.0f, 86.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- ImGui::SetCursorPos(ImVec2(350.0f, 35.0f));
- ImGui::BeginChild("##Rage", ImVec2(565.0f, 555.0f), false, flags_child);
- {
- ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(rgba_to_float(108.0f, 112.0f, 123.0f, 255.0f)));
- ImGui::PushFont(Default_bold2);
- ImGui::Checkbox("Enable", &g_cfg.ragebot.enable);
- ImGui::SliderInt("Field of view", &g_cfg.ragebot.field_of_view, 0, 360, "%.0f°");
- ImGui::Combo("Selection type", &g_cfg.ragebot.selection_type, selection_type, IM_ARRAYSIZE(selection_type));
- ImGui::Checkbox("Silent aim", &g_cfg.ragebot.silent_aim);
- ImGui::Checkbox("Remove recoil", &g_cfg.ragebot.anti_recoil);
- ImGui::Checkbox("Remove spread", &g_cfg.ragebot.anti_spread);
- ImGui::Checkbox("Taser bot", &g_cfg.ragebot.zeus_bot);
- ImGui::Checkbox("Linear extrapolation", &g_cfg.ragebot.extrapolation);
- ImGui::Checkbox("Resolver", &g_cfg.ragebot.antiaim_correction);
- ImGui::Hotkey("Resolver override", &g_cfg.ragebot.override_key);
- ImGui::Checkbox("Aim step", &g_cfg.ragebot.aimstep);
- ImGui::Checkbox("Lag compensation", &g_cfg.ragebot.lagcomp);
- ImGui::SliderFloat("Backtrack limit", &g_cfg.ragebot.lagcomp_time, 0.0f, 0.2f, "%.1f s");
- ImGui::Combo("Compensation type", &g_cfg.ragebot.lag_compensation_type, lag_compensation_type, IM_ARRAYSIZE(lag_compensation_type));
- /*ImGui::Hotkey("Hotkey", &slider_int);
- ImGui::ColorPickerBox("##picker", slider_picker);
- ImGui::Button("Button", ImVec2(0.0f, 0.0f), false, true);
- ImGui::SetCursorPosX(-2.0f);
- ImGui::Combo("Combo", &slider_int, combo_box, IM_ARRAYSIZE(combo_box));*/
- ImGui::PopFont();
- ImGui::PopStyleColor();
- }
- ImGui::End();
- break;
- case 2:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 96.0f), m_pos + ImVec2(144.0f, 118.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- break;
- case 3:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 130.0f), m_pos + ImVec2(144.0f, 151.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- break;
- case 4:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 161.0f), m_pos + ImVec2(144.0f, 184.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- break;
- case 5:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 194.0f), m_pos + ImVec2(144.0f, 217.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- break;
- case 6:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 227.0f), m_pos + ImVec2(144.0f, 250.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- break;
- case 7:
- m_draw->AddRectFilled(m_pos + ImVec2(142.0f, 64.0f), m_pos + ImVec2(144.0f, 86.0f), ImGui::GetColorU32(ImVec4(rgba_to_float(15.0f, 181.0f, 179.0f, 255.0f))));
- ImGui::SetCursorPos(ImVec2(350.0f, 35.0f));
- ImGui::BeginChild("##Auto", ImVec2(565.0f, 555.0f), false, flags_child);
- {
- ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(rgba_to_float(108.0f, 112.0f, 123.0f, 255.0f)));
- ImGui::PushFont(Default_bold2);
- ImGui::Checkbox("Autoshoot", &g_cfg.ragebot.autoshoot[5]);
- ImGui::Checkbox("Autowall", &g_cfg.ragebot.autowall[5]);
- ImGui::SliderInt("Minimum damage", &g_cfg.ragebot.minimum_damage[5], 1, 100, "%.0f ");
- ImGui::Checkbox("Autoscope", &g_cfg.ragebot.autoscope[2]);
- ImGui::Checkbox("Hitchance", &g_cfg.ragebot.hitchance[5]);
- ImGui::SliderInt("Hitchance value", &g_cfg.ragebot.hitchance_amount[5], 0, 99, "%.0f %");
- for (auto i = 0; i < IM_ARRAYSIZE(hitboxes); ++i)
- {
- ImGui::Selectable(hitboxes[i], &g_cfg.ragebot.hitscan[5]);
- }
- //ImGui::ListBox("Hitboxes", &g_cfg.ragebot.hitscan[5], hitboxes, IM_ARRAYSIZE(hitboxes));
- ImGui::SliderFloat("Pointscale", &g_cfg.ragebot.pointscale[5], 0, 1, "%.2f");
- ImGui::Checkbox("Quickstop", &g_cfg.ragebot.quickstop[5]);
- ImGui::PopFont();
- ImGui::PopStyleColor();
- }
- ImGui::End();
- break;
- default:
- tab_n2 = 0;
- break;
- }
- ImGui::SetCursorPos(ImVec2(47.0f, 160.0f));
- ImGui::BeginGroup();
- if (tab_n == 1)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Rage");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Rage");
- ImGui::SetCursorPos(ImVec2(45.0f, 212.0f));
- if (tab_n == 2)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Config");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Config");
- ImGui::SetCursorPos(ImVec2(43.0f, 270.0f));
- if (tab_n == 3)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Visuals");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Visuals");
- ImGui::SetCursorPos(ImVec2(35.0f, 325.0f));
- if (tab_n == 4)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Gameplay");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Gameplay");
- ImGui::SetCursorPosY(380.0f);
- if (tab_n == 5)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Legit");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Legit");
- ImGui::SetCursorPosY(435.0f);
- if (tab_n == 6)
- {
- ImGui::PushFont(Default_bold);
- ImGui::Text("Skins");
- ImGui::PopFont();
- }
- else
- ImGui::Text("Skins");
- ImGui::EndGroup();
- }
- ImGui::End();
- }
- ImGui::Render();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement