Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Menu.hpp"
- #define NOMINMAX
- #include <Windows.h>
- #include <chrono>
- #include "csgostructs.hpp"
- #include "input.hpp"
- #include "options.hpp"
- #include "droid.hpp"
- #include "Skins.h"
- #define IMGUI_DEFINE_MATH_OPERATORS
- #include "imgui/imgui_internal.h"
- #include "imgui/directx9/imgui_impl_dx9.h"
- void Menu::Initialize()
- {
- _visible = false;
- CreateStyle();
- }
- void Menu::OnDeviceLost()
- {
- ImGui_ImplDX9_InvalidateDeviceObjects();
- }
- void Menu::OnDeviceReset()
- {
- ImGui_ImplDX9_CreateDeviceObjects();
- }
- void Menu::Render()
- {
- ImGui::GetIO().MouseDrawCursor = _visible;
- if(!_visible)
- return;
- ImGui::SetNextWindowPosCenter(ImGuiCond_Once);
- ImGui::SetNextWindowSize(ImVec2{ 180, 160 }, ImGuiSetCond_Once); //szer wys
- if (ImGui::Begin(" Boruqhook", &_visible, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize))
- {
- ImGui::Checkbox("Boxes", &g_Options.esp_player_boxes);
- ImGui::SameLine();
- ImGui::Checkbox("Names", &g_Options.esp_player_names);
- ImGui::Checkbox("Weapons", &g_Options.esp_player_weapons);
- ImGui::SameLine();
- ImGui::Checkbox("Chams", &g_Options.chams_player_enabled);
- ImGui::Checkbox("Backtrack", &g_Options.misc_backtrack);
- ImGui::SameLine();
- ImGui::Checkbox("Bhop", &g_Options.misc_bhop);
- ImGui::Checkbox("Team check", &g_Options.misc_checkteam);
- ImGui::SameLine();
- if (ImGui::Button(("update")))
- {
- Skinchanger::Get().ForceFull();
- }
- }
- ImGui::End();
- }
- void Menu::Show()
- {
- _visible = true;
- }
- void Menu::Hide()
- {
- _visible = false;
- }
- void Menu::Toggle()
- {
- _visible = !_visible;
- }
- void Menu::CreateStyle()
- {
- ImGuiStyle& style = ImGui::GetStyle();
- style.WindowPadding = ImVec2(10, 10);
- style.WindowRounding = 0.0f;
- style.FramePadding = ImVec2(5, 5);
- style.FrameRounding = 0.0f;
- style.ItemSpacing = ImVec2(5, 5);
- style.ItemInnerSpacing = ImVec2(8, 6);
- style.IndentSpacing = 25.0f;
- style.ScrollbarSize = 15.0f;
- style.ScrollbarRounding = 9.0f;
- style.GrabMinSize = 5.0f;
- style.GrabRounding = 3.0f;
- style.Colors[ImGuiCol_Text] = ImVec4(0.80f, 0.80f, 0.83f, 1.00f);
- style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_PopupBg] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
- style.Colors[ImGuiCol_Border] = ImVec4(0.80f, 0.80f, 0.83f, 0.88f);
- style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.92f, 0.91f, 0.88f, 0.00f);
- style.Colors[ImGuiCol_FrameBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_TitleBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 0.98f, 0.95f, 0.75f);
- style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.07f, 0.07f, 0.09f, 1.00f);
- style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
- style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_CheckMark] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
- style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.80f, 0.80f, 0.83f, 0.31f);
- style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_Button] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_Header] = ImVec4(0.10f, 0.09f, 0.12f, 1.00f);
- style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_Column] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.24f, 0.23f, 0.29f, 1.00f);
- style.Colors[ImGuiCol_ColumnActive] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
- style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.56f, 0.56f, 0.58f, 1.00f);
- style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.06f, 0.05f, 0.07f, 1.00f);
- style.Colors[ImGuiCol_PlotLines] = ImVec4(0.40f, 0.39f, 0.38f, 0.63f);
- style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.25f, 1.00f, 0.00f, 1.00f);
- style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.40f, 0.39f, 0.38f, 0.63f);
- style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.25f, 1.00f, 0.00f, 1.00f);
- style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.25f, 1.00f, 0.00f, 0.43f);
- style.Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(1.00f, 0.98f, 0.95f, 0.73f);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement