-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui.cpp
More file actions
56 lines (49 loc) · 2.05 KB
/
gui.cpp
File metadata and controls
56 lines (49 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "gui.h"
#include "hooks.h"
#include "vars.h"
#ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include <imgui.h>
void DrawNeverhookMenu() {
ImGui::SetNextWindowSize({ 450, 300 }, ImGuiCond_FirstUseEver);
if (ImGui::Begin("Neverhook", nullptr, ImGuiWindowFlags_NoCollapse)) {
ImGui::Text("Build: v1.0.5-development");
ImGui::Separator();
if (ImGui::BeginChild("Hacks", ImVec2(0, 0), true)) {
if (ImGui::CollapsingHeader("Player", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::Checkbox("Noclip", &Vars::noclip);
ImGui::Checkbox("No Death Effect", &Vars::noDeathEffect);
ImGui::Checkbox("No Respawn Flash", &Vars::noRespawnFlash);
}
if (ImGui::CollapsingHeader("Bypass")) {
ImGui::Checkbox("Practice Music", &Vars::practiceMusic);
ImGui::Checkbox("Icon Bypass", &Vars::iconBypass);
}
if (ImGui::CollapsingHeader("Global")) {
ImGui::Checkbox("Speedhack", &Vars::speedhack);
if (Vars::speedhack) {
ImGui::SliderFloat("Speed", &Vars::speedhackValue, 0.1f, 5.0f, "%.2fx");
}
ImGui::Separator();
if (ImGui::Checkbox("FPS Bypass", &Vars::fpsUnlock)) {
ApplyFPS();
}
if (Vars::fpsUnlock) {
if (ImGui::SliderFloat("##fpsslider", &Vars::fpsValue, 30.0f, 360.0f, "%.0f FPS")) {
ApplyFPS();
}
ImGui::SameLine();
ImGui::SetNextItemWidth(80);
if (ImGui::InputFloat("##fpsinput", &Vars::fpsValue, 0.0f, 0.0f, "%.0f")) {
if (Vars::fpsValue < 1.0f) Vars::fpsValue = 1.0f;
if (Vars::fpsValue > 1000.0f) Vars::fpsValue = 1000.0f;
ApplyFPS();
}
}
}
}
ImGui::EndChild();
}
ImGui::End();
}