2016-12-20 20:39:21 +00:00
|
|
|
#include "GUI.h"
|
|
|
|
|
|
|
|
|
|
void GUI::DrawFramerateCounter() {
|
|
|
|
|
ImGui::SetNextWindowPos(ImVec2(10, 10));
|
|
|
|
|
ImGui::Begin("FPS", nullptr, ImVec2(0, 0), 0.3f, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize);
|
|
|
|
|
ImGui::Text("FPS: %.2f", ImGui::GetIO().Framerate);
|
|
|
|
|
ImGui::End();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GUI::DrawConfigurationWindow() {
|
2016-12-21 15:23:43 +00:00
|
|
|
ImGui::Begin("Settings", nullptr);
|
|
|
|
|
ImGui::PushItemWidth(-1);
|
|
|
|
|
|
|
|
|
|
ImGui::Checkbox("Auto-bunnyhop", &GUI::BunnyHop::Enabled);
|
2023-12-08 19:10:12 -05:00
|
|
|
ImGui::Checkbox("Auto-strafe", &GUI::BunnyHop::StrafeEnabled);
|
2016-12-21 15:23:43 +00:00
|
|
|
ImGui::Spacing();
|
2016-12-21 16:05:36 +00:00
|
|
|
|
|
|
|
|
ImGui::Checkbox("No sky", &GUI::NoSky::Enabled);
|
|
|
|
|
ImGui::ColorEdit3("##No sky color", GUI::NoSky::Color);
|
|
|
|
|
ImGui::Spacing();
|
2016-12-21 16:24:35 +00:00
|
|
|
|
|
|
|
|
ImGui::Checkbox("ASUS walls", &GUI::ASUS::Enabled);
|
|
|
|
|
ImGui::ColorEdit4("##ASUS walls color", GUI::ASUS::Color, true);
|
|
|
|
|
ImGui::Spacing();
|
2016-12-21 15:23:43 +00:00
|
|
|
|
|
|
|
|
ImGui::PopItemWidth();
|
2016-12-20 20:39:21 +00:00
|
|
|
ImGui::End();
|
|
|
|
|
}
|