Add more explicit tooltips. Add player stats in cheat tab

This commit is contained in:
2026-02-20 10:42:05 +01:00
parent c1f25fb21d
commit a9cdeb1724

View File

@@ -78,10 +78,10 @@ static FixToggle individualFixes[] = {
};
static FixToggle cheatFixes[] = {
{ "Time dilation", &Time_Dilation_fix_enabled, GameFixes::TimeDilation, "ALT + 1 (top keyboard row) to toggle" },
{ "God Mode",&GodMode_fix_enabled, GameFixes::GodMode, "ALT + 2 (top keyboard row) to toggle" },
{ "Stamina",&Stamina_fix_enabled, GameFixes::Stamina, "ALT + 3 (top keyboard row) to toggle" },
{ "Mana",&Mana_fix_enabled, GameFixes::Mana, "ALT + 4 (top keyboard row) to toggle" }
{ "Time dilation", &Time_Dilation_fix_enabled, GameFixes::TimeDilation, "ALT + 1 (top keyboard row) to toggle." },
{ "God Mode",&GodMode_fix_enabled, GameFixes::GodMode, "ALT + 2 (top keyboard row) to toggle.\nHP will always be restored to max." },
{ "Stamina",&Stamina_fix_enabled, GameFixes::Stamina, "ALT + 3 (top keyboard row) to toggle.\nStamina will always be restored to max." },
{ "Mana",&Mana_fix_enabled, GameFixes::Mana, "ALT + 4 (top keyboard row) to toggle\nMana will always be restored to max." }
};
// Prepare array of sliders for ImGui
static SliderFix2 sliders[6];
@@ -315,6 +315,13 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime) {
}
ImGui::PopStyleVar();
ImGui::EndTabItem();
if (ImGui::CollapsingHeader("Cheat informations", ImGuiTreeNodeFlags_DefaultOpen)) {
if (GetGameInfos) {
GameInfos infos{};
GetGameInfos(&infos);
ImGui::TextColored(ImColor(48, 179, 25), "Wukong health: %.1f - Stamina: %.1f - Mana: %.1f", infos.Health, infos.Stamina, infos.Mana);
}
}
}
ImGui::EndTabBar();