42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#include "ESP.h"
|
|
|
|
#include "helpers.h"
|
|
|
|
ESPModule::ESPModule()
|
|
: BaseModule("ESPModule", "ESP Features", ModuleCategory::ESP) {
|
|
}
|
|
|
|
void ESPModule::RegisterTab() {
|
|
}
|
|
|
|
void ESPModule::Render() {
|
|
if (!ImGui::CollapsingHeader(Tr("ESP Features"), ImGuiTreeNodeFlags_DefaultOpen)) {
|
|
return;
|
|
}
|
|
|
|
bool enabled = Enabled();
|
|
if (ImGui::Checkbox(Tr("ON / OFF"), &enabled)) {
|
|
SetEnabled(enabled);
|
|
}
|
|
|
|
ImGui::Separator();
|
|
ImGui::TextUnformatted("Display Types");
|
|
ImGui::Checkbox(Tr("Show Monsters"), &show_monsters_);
|
|
ImGui::Checkbox(Tr("Show NPC"), &show_npc_);
|
|
ImGui::Checkbox(Tr("Show Friendly"), &show_friendly_);
|
|
ImGui::Checkbox(Tr("Show Puzzles"), &show_puzzles_);
|
|
|
|
ImGui::Separator();
|
|
ImGui::TextUnformatted("Display Info");
|
|
ImGui::Checkbox(Tr("Show Distance"), &show_distance_);
|
|
ImGui::Checkbox(Tr("Show Name"), &show_name_);
|
|
ImGui::Checkbox(Tr("Show Type"), &show_type_);
|
|
}
|
|
|
|
void ESPModule::Update() {
|
|
if (!Enabled()) {
|
|
return;
|
|
}
|
|
// Runtime drawing in target process would happen from Present hook path.
|
|
}
|