summaryrefslogtreecommitdiff
path: root/src/port/ui/ImguiUI.cpp
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2024-09-11 00:35:46 +0200
committerGitHub <noreply@github.com>2024-09-10 16:35:46 -0600
commitabde6714be6d8d2cd552907b897589d6438d222c (patch)
tree93d766523f8d7874801572e9d7d015e409f0ad1a /src/port/ui/ImguiUI.cpp
parentb7bc19cf9d53550e7280eb476afe5f16a5b10c9d (diff)
[Cheat] custom cc (#71)
* custom cc * Update ImguiUI.cpp --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/port/ui/ImguiUI.cpp')
-rw-r--r--src/port/ui/ImguiUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp
index a6c65259e..13beba93b 100644
--- a/src/port/ui/ImguiUI.cpp
+++ b/src/port/ui/ImguiUI.cpp
@@ -501,7 +501,8 @@ void DrawEnhancementsMenu() {
void DrawCheatsMenu() {
if (UIWidgets::BeginMenu("Cheats")) {
- UIWidgets::CVarCheckbox("Infinite Health", "gInfiniteHealth");
+ UIWidgets::CVarCheckbox("Enable Custom CC", "gEnableCustomCC");
+ UIWidgets::CVarSliderFloat("Custom CC", "gCustomCC", 0.0, 1000.0, 150.0, { .step = 10.0 });
UIWidgets::CVarCheckbox("Disable Wall Collision", "gNoWallColision", { .tooltip = "Disable wall collision." });
UIWidgets::CVarSliderFloat(
"Min Height", "gMinHeight", -50.0f, 50.0f, 0.0f,