From 9ce611e97df18e5e0605b1db8d0e63e3e99330e8 Mon Sep 17 00:00:00 2001 From: MemesPwr <47759467+MemesPwr@users.noreply.github.com> Date: Wed, 29 Jun 2022 03:08:24 +0300 Subject: [PATCH] Added checkbox for "UID" in water-mark --- cheat-library/src/user/cheat/visuals/ProfileChanger.cpp | 4 +++- cheat-library/src/user/cheat/visuals/ProfileChanger.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cheat-library/src/user/cheat/visuals/ProfileChanger.cpp b/cheat-library/src/user/cheat/visuals/ProfileChanger.cpp index 3c03c31..3292b04 100644 --- a/cheat-library/src/user/cheat/visuals/ProfileChanger.cpp +++ b/cheat-library/src/user/cheat/visuals/ProfileChanger.cpp @@ -33,6 +33,7 @@ namespace cheat::feature ProfileChanger::ProfileChanger() : Feature(), NF(f_Enabled, "Custom Profile", "Visuals::ProfileChanger", false), NF(f_UID, "UID", "Visuals::ProfileChanger", false), + NF(f_UIDWaterMarkPrefix, "UIDWaterMarkPrefix", "Visuals::ProfileChanger", false), NF(f_NickName, "NickName", "Visuals::ProfileChanger", false), NF(f_Level, "Level", "Visuals::ProfileChanger", false), NF(f_Exp, "Exp", "Visuals::ProfileChanger", false), @@ -60,6 +61,7 @@ namespace cheat::feature { ConfigWidget(f_Enabled, "Custom Profile."); ConfigWidget(f_UID, "Changes the uid visually."); + ConfigWidget("Append \"UID:\" prefix on the water-mark", f_UIDWaterMarkPrefix); ConfigWidget(f_NickName, "Changes the nickname visually."); ConfigWidget(f_Level, "Changes the level visually."); ConfigWidget(f_Exp, "Changes the exp visually."); @@ -113,7 +115,7 @@ namespace cheat::feature Components::WaterMark = app::GameObject_GetComponentByName(GameObject::WaterMark, string_to_il2cppi("Text"), nullptr); if (Components::WaterMark != nullptr) - app::Text_set_text(reinterpret_cast(Components::WaterMark), string_to_il2cppi(f_UID.value().value.empty() ? "" : std::string("UID: " + f_UID.value().value)), nullptr); + app::Text_set_text(reinterpret_cast(Components::WaterMark), string_to_il2cppi(f_UID.value().value.empty() ? "" : std::string((f_UIDWaterMarkPrefix ? "UID: " : "") + f_UID.value().value)), nullptr); } nextUpdate = currentTime + (int)f_DelayUpdate; diff --git a/cheat-library/src/user/cheat/visuals/ProfileChanger.h b/cheat-library/src/user/cheat/visuals/ProfileChanger.h index b649af6..facd1f4 100644 --- a/cheat-library/src/user/cheat/visuals/ProfileChanger.h +++ b/cheat-library/src/user/cheat/visuals/ProfileChanger.h @@ -10,6 +10,7 @@ namespace cheat::feature public: config::Field> f_Enabled; config::Field> f_UID; + config::Field f_UIDWaterMarkPrefix; config::Field> f_NickName; config::Field> f_Level; config::Field> f_Exp;