Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool esp = false;
- bool misc = false;
- auto& style = ImGui::GetStyle();
- if (style.Alpha > 1.f)
- style.Alpha = 1.f;
- else if (style.Alpha != 1.f)
- style.Alpha += 0.01f;
- style.Colors[ImGuiCol_Border] = ImVec4(0.0f, 0.0f, .0f, 0.00f);
- style.WindowMinSize = ImVec2(0, 0);
- int w;
- int h;
- ImVec2 mainWindowPos;
- Source::m_pEngine->GetScreenSize(w, h);
- ImGuiWindowFlags flagswindow = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize;
- if (ImGui::BeginMainMenuBar())
- {
- if (ImGui::BeginMenu("...."))
- {
- ImGui::MenuItem(XorStr("ESP"), " ", &esp);
- ImGui::MenuItem(XorStr("Misc"), " ", &misc);
- ImGui::EndMenu();
- }
- ImGui::EndMainMenuBar();
- }
- if(esp)
- {
- ImGui::Begin(XorStr("ESP"), nullptr, flagswindow);
- {
- //Чекбоксы и т.д тута
- }
- ImGui::End();
- }
- if(misc)
- {
- ImGui::Begin(XorStr("Misc"), nullptr, flagswindow);
- {
- //ну тут чекбоксы и т.д
- }
- ImGui::End();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement