scaleY = ImGui::GetWindowWidth() / 320;
ImGui::SetWindowFontScale(scaleY);
if (ImGui::Button("Legit", ImVec2((ImGui::GetWindowWidth() / 3) - 6.5, 25 * scaleY))) {
tabIndex = 0;
}
ImGui::SameLine(0.f, 2.f);
if (ImGui::Button("Visuals", ImVec2((ImGui::GetWindowWidth() / 3) - 6.5, 25 * scaleY))) {
tabIndex = 1;
}
ImGui::SameLine(0.f, 2.f);
if (ImGui::Button("Misc", ImVec2((ImGui::GetWindowWidth() / 3) - 6.5, 25 * scaleY))) {
tabIndex = 2;
}
ImGui::PushItemWidth(-90 * scaleY);
if (tabIndex == 0)
{
ImGui::Checkbox("Triggerbot", &Config::Legit::TRIGGER_BOT);
if (Config::Legit::TRIGGER_BOT)
{
ImGui::SliderInt("Max velocity", &Config::Legit::TRIGGER_MAX_VELOCITY, 0, 250);
ImGui::SliderInt("Delay", &Config::Legit::TRIGGER_DELAY, 0, 2000);
ImGui::Checkbox("Randomize delay", &Config::Legit::TRIGGER_RANDOMIZE_DELAY);
}
}
else if (tabIndex == 1)
{
ImGui::Checkbox("Glow ESP", &Config::Visuals::GLOW_ESP);
if (Config::Visuals::GLOW_ESP)
{
ImGui::Checkbox("Health-based", &Config::Visuals::GLOW_HEALTHBASED);
if (!Config::Visuals::GLOW_HEALTHBASED) {
ImGui::ColorEdit3("Glow color", Config::Visuals::GLOW_COLOR, ImGuiColorEditFlags_NoInputs);
}
}
ImGui::Checkbox("Engine radar", &Config::Visuals::ENGINE_RADAR);
}
else if (tabIndex == 2)
{
ImGui::Checkbox("Bunnyhop", &Config::Misc::BUNNY_HOP);
ImGui::SliderInt("Update delay", &Config::Misc::UPDATE_DELAY, 1, 100);
if (ImGui::Button("Save config", ImVec2(ImGui::GetWindowWidth() - 15, 25 * scaleY))) {
Config::SaveConfig();
}
if (ImGui::Button("Load config", ImVec2(ImGui::GetWindowWidth() - 15, 25 * scaleY))) {
Config::LoadConfig();
}
}