fix save fields for visuals

This commit is contained in:
CallowBlack 2022-06-12 20:18:53 +03:00
parent f431853cbf
commit 9f75ce083e
6 changed files with 18 additions and 18 deletions

View File

@ -14,7 +14,7 @@ namespace cheat::feature
static std::string f_URL; static std::string f_URL;
Browser::Browser() : Feature(), Browser::Browser() : Feature(),
NF(f_Enabled, "Browser", "Visuals", false), NFEX(f_Enabled, "Browser", "Browser", "Visuals", false, false),
toBeUpdate(), nextUpdate(0) toBeUpdate(), nextUpdate(0)
{ {
events::GameUpdateEvent += MY_METHOD_HANDLER(Browser::OnGameUpdate); events::GameUpdateEvent += MY_METHOD_HANDLER(Browser::OnGameUpdate);

View File

@ -9,8 +9,8 @@ namespace cheat::feature
static void SCameraModuleInitialize_SetWarningLocateRatio_Hook(app::SCameraModuleInitialize* __this, double deltaTime, app::CameraShareData* data, MethodInfo* method); static void SCameraModuleInitialize_SetWarningLocateRatio_Hook(app::SCameraModuleInitialize* __this, double deltaTime, app::CameraShareData* data, MethodInfo* method);
CameraZoom::CameraZoom() : Feature(), CameraZoom::CameraZoom() : Feature(),
NFEX(f_Enabled, "Camera Zoom", "CameraZoom", "Visuals", false, false), NF(f_Enabled, "Camera Zoom", "Visuals::CameraZoom", false),
NF(f_Zoom, "Zoom", "CameraZoom", 200) NF(f_Zoom, "Zoom", "Visuals::CameraZoom", 200)
{ {
HookManager::install(app::MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, SCameraModuleInitialize_SetWarningLocateRatio_Hook); HookManager::install(app::MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, SCameraModuleInitialize_SetWarningLocateRatio_Hook);
} }

View File

@ -9,7 +9,7 @@ namespace cheat::feature
app::GameObject* ui_camera{}; app::GameObject* ui_camera{};
HideUI::HideUI() : Feature(), HideUI::HideUI() : Feature(),
NF(f_Enabled, "Hide UI", "Hide UI", false) NFEX(f_Enabled, "Hide UI", "HideUI", "Visuals", false, false)
{ {
events::GameUpdateEvent += MY_METHOD_HANDLER(HideUI::OnGameUpdate); events::GameUpdateEvent += MY_METHOD_HANDLER(HideUI::OnGameUpdate);
} }

View File

@ -12,7 +12,7 @@ namespace cheat::feature
} }
PaimonFollow::PaimonFollow() : Feature(), PaimonFollow::PaimonFollow() : Feature(),
NF(f_Enabled, "Paimon Follow", "Visuals", false), NFEX(f_Enabled, "Paimon Follow", "PaimonFollow", "Visuals", false, false),
toBeUpdate(), nextUpdate(0) toBeUpdate(), nextUpdate(0)
{ {
events::GameUpdateEvent += MY_METHOD_HANDLER(PaimonFollow::OnGameUpdate); events::GameUpdateEvent += MY_METHOD_HANDLER(PaimonFollow::OnGameUpdate);

View File

@ -31,18 +31,18 @@ namespace cheat::feature
static void ProfileEditPage(app::MonoFriendInformationDialog* __this, app::Sprite* value, MethodInfo* method); static void ProfileEditPage(app::MonoFriendInformationDialog* __this, app::Sprite* value, MethodInfo* method);
ProfileChanger::ProfileChanger() : Feature(), ProfileChanger::ProfileChanger() : Feature(),
NF(f_Enabled, "Custom Profile", "Visuals", false), NF(f_Enabled, "Custom Profile", "Visuals::ProfileChanger", false),
NF(f_UID, "UID", "Visuals", false), NF(f_UID, "UID", "Visuals::ProfileChanger", false),
NF(f_NickName, "NickName", "Visuals", false), NF(f_NickName, "NickName", "Visuals::ProfileChanger", false),
NF(f_Level, "Level", "Visuals", false), NF(f_Level, "Level", "Visuals::ProfileChanger", false),
NF(f_Exp, "Exp", "Visuals", false), NF(f_Exp, "Exp", "Visuals::ProfileChanger", false),
NF(f_CurExp, "CurExp", "Visuals", 1), NF(f_CurExp, "CurExp", "Visuals::ProfileChanger", 1),
NF(f_MaxExp, "MaxExp", "Visuals", 1), NF(f_MaxExp, "MaxExp", "Visuals::ProfileChanger", 1),
NF(f_ExpBar, "ExpBar", "Visuals", false), NF(f_ExpBar, "ExpBar", "Visuals::ProfileChanger", false),
NF(f_ExpBarValue, "ExpBarValue", "Visuals", 20.0f), NF(f_ExpBarValue, "ExpBarValue", "Visuals::ProfileChanger", 20.0f),
NF(f_WorldLevel, "WorldLevel", "Visuals", false), NF(f_WorldLevel, "WorldLevel", "Visuals::ProfileChanger", false),
NF(f_Avatar, "AvatarImage", "Visuals", false), NF(f_Avatar, "AvatarImage", "Visuals::ProfileChanger", false),
NF(f_Card, "CardImage", "Visuals", false), NF(f_Card, "CardImage", "Visuals::ProfileChanger", false),
toBeUpdate(), nextUpdate(0) toBeUpdate(), nextUpdate(0)
{ {
HookManager::install(app::ProfilePage, ProfilePage); HookManager::install(app::ProfilePage, ProfilePage);

View File

@ -9,7 +9,7 @@ namespace cheat::feature
static bool IndicatorPlugin_DoCheck(app::LCIndicatorPlugin* __this, MethodInfo* method); static bool IndicatorPlugin_DoCheck(app::LCIndicatorPlugin* __this, MethodInfo* method);
ChestIndicator::ChestIndicator() : Feature(), ChestIndicator::ChestIndicator() : Feature(),
NF(f_Enabled, "Show Chest Indicator", "ShowChest", false) NFEX(f_Enabled, "Show Chest Indicator", "ChestIndicator", "Visuals", false, false)
{ {
HookManager::install(app::MoleMole_LCIndicatorPlugin_DoCheck, IndicatorPlugin_DoCheck); HookManager::install(app::MoleMole_LCIndicatorPlugin_DoCheck, IndicatorPlugin_DoCheck);
} }