Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sstream>
- #include <Windows.h>
- #include "XorStr.h"
- #include "imgui/imgui.h"
- #include "GUI.h"
- #include "Config.h"
- #include "Hacks/Misc.h"
- void GUI::render() noexcept
- {
- main();
- }
- void GUI::checkBoxAndColorPicker(const std::string_view name, bool* enable, float* color) const noexcept
- {
- ImGui::Checkbox(std::string{ "##" }.append(name).c_str(), enable);
- ImGui::SameLine(0.0f, 5.0f);
- bool openPopup = ImGui::ColorButton(std::string{ "##" }.append(name).append("ColorButton").c_str(), ImColor{ color[0], color[1], color[2] }, ImGuiColorEditFlags_NoTooltip);
- ImGui::SameLine(0.0f, 5.0f);
- ImGui::Text(name.data());
- if (openPopup)
- ImGui::OpenPopup(std::string{ "##" }.append(name).append("Popup").c_str());
- if (ImGui::BeginPopup(std::string{ "##" }.append(name).append("Popup").c_str())) {
- ImGui::ColorPicker3(std::string{ "##" }.append(name).append("Picker").c_str(), color, ImGuiColorEditFlags_RGB | ImGuiColorEditFlags_NoSidePreview);
- ImGui::EndPopup();
- }
- }
- void GUI::hotkey(int* key) const noexcept
- {
- ImGui::Text((std::ostringstream{ } << "[ " << (*key ? std::to_string(*key) : "key") << " ]").str().c_str());
- if (ImGui::IsItemHovered()) {
- ImGuiIO& io = ImGui::GetIO();
- for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++)
- if (ImGui::IsKeyPressed(i) && i != VK_INSERT)
- *key = i != VK_ESCAPE ? i : 0;
- }
- }
- void GUI::main() noexcept
- {
- if (window.misc) {
- ImGui::SetNextWindowSize({ 800.0f, 500.0f });
- ImGui::Begin("Aries Cheat - Version: v1.5 - Author: David", &window.misc, ImGuiWindowFlags_NoCollapse);
- ImGui::PushItemWidth(160.0f);
- ImGui::Columns(2, XorStr("Test"), false);
- {
- if (window.misc) {
- // Aimbot column
- ImGui::Text(XorStr("Aimbot - Others"));
- ImGui::Checkbox(XorStr("Enabled"), &config.aimbot.enabled);
- ImGui::Checkbox(XorStr("Silent"), &config.aimbot.silent);
- ImGui::SliderFloat(XorStr("##Fov"), &config.aimbot.fov, 0.0f, 180.0f, "Fov: %.2f");
- ImGui::SliderFloat(XorStr("##Smooth"), &config.aimbot.smooth, 1.0f, 100.0f, "Smooth: %.2f");
- }
- if (window.misc) {
- // Visuals column
- ImGui::Text(XorStr("Visuals - Others"));
- ImGui::Checkbox(XorStr("No hands"), &config.visuals.noHands);
- ImGui::Checkbox(XorStr("No sleeves"), &config.visuals.noSleeves);
- ImGui::Checkbox(XorStr("Thirdperson"), &config.visuals.thirdperson);
- hotkey(&config.visuals.thirdpersonKey);
- ImGui::SliderInt(XorStr("##Thirdperson distance"), &config.visuals.thirdpersonDistance, 0, 1000, "Thirdperson distance: %d");
- }
- if (window.misc) {
- // Trigger Bot column
- ImGui::Text(XorStr("TriggerBot - Others"));
- ImGui::Checkbox(XorStr("Enabled"), &config.triggerbot.enabled);
- ImGui::Checkbox(XorStr("On key"), &config.triggerbot.onKey);
- hotkey(&config.triggerbot.key);
- ImGui::SliderInt(XorStr("##Shot delay"), &config.triggerbot.shotDelay, 0, 250, "Shot delay: %d ms");
- }
- // NEXT!!!!!
- ImGui::NextColumn();
- if (window.misc) {
- // Extras column
- ImGui::Text(XorStr("Extras - Others"));
- ImGui::Checkbox("Bunny hop", &config.misc.bunnyHop);
- static std::vector<char> buffer(16);
- ImGui::InputText("##Clantag", buffer.data(), buffer.size());
- ImGui::SameLine();
- if (ImGui::Button("Set clantag"))
- Misc::clanTag(buffer.data());
- ImGui::Checkbox(XorStr("Disable post-processing"), &config.misc.disablePostProcessing);
- ImGui::SliderInt(XorStr("##Flash reduction"), &config.misc.flashReduction, 0, 100, "Flash reduction: %d%%");
- ImGui::Checkbox(XorStr("Inverse ragdoll gravity"), &config.misc.inverseRagdollGravity);
- ImGui::Checkbox(XorStr("Fast duck"), &config.misc.fastDuck);
- ImGui::Checkbox(XorStr("No smoke"), &config.misc.noSmoke);
- if (!config.misc.noSmoke)
- ImGui::Checkbox(XorStr("Wireframe smoke"), &config.misc.wireframeSmoke);
- ImGui::Combo(XorStr("Skybox"), &config.misc.skybox, "Default\0cs_baggage_skybox_\0cs_tibet\0embassy\0italy\0jungle\0nukeblank\0office\0sky_cs15_daylight01_hdr\0sky_cs15_daylight02_hdr\0sky_cs15_daylight03_hdr\0sky_cs15_daylight04_hdr\0sky_csgo_cloudy01\0sky_csgo_night_flat\0sky_csgo_night02\0sky_day02_05_hdr\0sky_day02_05\0sky_dust\0sky_l4d_rural02_ldr\0sky_venice\0vertigo_hdr\0vertigo\0vertigoblue_hdr\0vietnam");
- ImGui::SliderInt(XorStr("##Viewmodel FOV"), &config.misc.viewmodelFov, -60, 60, "Viewmodel FOV: %d");
- ImGui::ColorEdit3(XorStr("World color"), config.misc.worldColor, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoTooltip);
- ImGui::Checkbox(XorStr("Auto pistol"), &config.misc.autoPistol);
- }
- if (window.misc) {
- // Wallhack column
- ImGui::Text(XorStr("Wallhack - Others"));
- ImGui::Columns(2, nullptr, false);
- ImGui::SetColumnOffset(1, 170.0f);
- ImGui::Checkbox(XorStr("Enabled"), &config.glow.enabled);
- ImGui::SliderFloat(XorStr("##Thickness"), &config.glow.thickness, 0.0f, 1.0f, "Thickness: %.2f");
- ImGui::SliderFloat(XorStr("##Alpha"), &config.glow.alpha, 0.0f, 1.0f, "Alpha: %.2f");
- ImGui::SliderInt(XorStr("##Style"), &config.glow.style, 0, 3, "Style: %d");
- checkBoxAndColorPicker(XorStr("Allies"), &config.glow.allies, config.glow.alliesColor);
- checkBoxAndColorPicker(XorStr("Weapons"), &config.glow.weapons, config.glow.weaponsColor);
- checkBoxAndColorPicker(XorStr("C4"), &config.glow.C4, config.glow.C4Color);
- checkBoxAndColorPicker(XorStr("Planted C4"), &config.glow.plantedC4, config.glow.plantedC4Color);
- checkBoxAndColorPicker(XorStr("Chickens"), &config.glow.chickens, config.glow.chickensColor);
- checkBoxAndColorPicker(XorStr("Enemies"), &config.glow.enemies, config.glow.enemiesColor);
- }
- ImGui::End();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement