Added toggle to the key ESP, fixed demon ESP, and resolved ESP crashes

This commit is contained in:
KnucklesB
2024-07-18 17:18:17 -03:00
parent 61d331d38f
commit 739f15aeb2
7 changed files with 81 additions and 29 deletions

View File

@@ -115,6 +115,18 @@ void DrawVisualsTab() {
ImGui::EndPopup();
}
ImGui::Checkbox("Keys ESP", &settings::key_esp);
ImGui::SameLine();
bool open_kcolor_popup = ImGui::ColorButton("kespcolor", ImVec4(settings::key_esp_color[0], settings::key_esp_color[1], settings::key_esp_color[2], settings::key_esp_color[3]));
if (open_kcolor_popup)
{
ImGui::OpenPopup("kesppop");
}
if (ImGui::BeginPopup("kesppop")) {
ImGui::ColorPicker4("Key ESP color", (float*)&settings::key_esp_color);
ImGui::EndPopup();
}
ImGui::Checkbox("Demon ESP", &settings::demon_esp);
ImGui::SameLine();
bool open_dcolor_popup = ImGui::ColorButton("despcolor", ImVec4(settings::demon_esp_color[0], settings::demon_esp_color[1], settings::demon_esp_color[2], settings::demon_esp_color[3]));