From f0177703eab61fbb35020b9672593896eff416f6 Mon Sep 17 00:00:00 2001 From: jackun Date: Wed, 4 May 2022 07:14:46 +0300 Subject: [PATCH] Rename to `frame_count` for consistency --- README.md | 2 +- bin/MangoHud.conf | 2 +- src/hud_elements.cpp | 8 ++++---- src/hud_elements.h | 2 +- src/overlay_params.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6c0236f8..6f459021 100644 --- a/README.md +++ b/README.md @@ -339,7 +339,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu | `core_load_change` | Changes the colors of cpu core loads, uses the same data from `cpu_load_value` and `cpu_load_change` | | `cellpadding_y` | Set the vertical cellpadding, default is `-0.085` | | `frametime` | Display frametime next to fps text | -| `framecount` | Display frame count | +| `frame_count` | Display frame count | | `table_columns` | Set the number of table columns for ImGui, defaults to 3 | | `blacklist` | Add a program to the blacklist. e.g `blacklist=vkcube,WatchDogs2.exe` | | `resolution` | Display the current resolution | diff --git a/bin/MangoHud.conf b/bin/MangoHud.conf index b1509216..24943c95 100644 --- a/bin/MangoHud.conf +++ b/bin/MangoHud.conf @@ -87,7 +87,7 @@ fps # fps_value=30,60 # fps_color=B22222,FDFD09,39F900 frametime -# framecount +# frame_count ### Display miscellaneous information # engine_version diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index 3bc73a18..ef5753fd 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -902,8 +902,8 @@ void HudElements::gamepad_battery() #endif } -void HudElements::framecount(){ - if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_framecount]){ +void HudElements::frame_count(){ + if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_frame_count]){ ImGui::TableNextRow(); ImGui::TableNextColumn(); ImGui::PushFont(HUDElements.sw_stats->font1); @@ -1100,7 +1100,7 @@ void HudElements::sort_elements(const std::pair& optio if (param == "fsr") { ordered_functions.push_back({gamescope_fsr, value}); } if (param == "debug") { ordered_functions.push_back({gamescope_frame_timing, value}); } if (param == "gamepad_battery") { ordered_functions.push_back({gamepad_battery, value}); } - if (param == "framecount") { ordered_functions.push_back({framecount, value}); } + if (param == "frame_count") { ordered_functions.push_back({frame_count, value}); } if (param == "fan") { ordered_functions.push_back({fan, value}); } if (param == "throttling_status") { ordered_functions.push_back({throttling_status, value}); } if (param == "graphs"){ @@ -1148,7 +1148,7 @@ void HudElements::legacy_elements(){ ordered_functions.push_back({wine, value}); #endif ordered_functions.push_back({frame_timing, value}); - ordered_functions.push_back({framecount, value}); + ordered_functions.push_back({frame_count, value}); ordered_functions.push_back({gamescope_frame_timing, value}); #ifndef MANGOAPP ordered_functions.push_back({gamemode, value}); diff --git a/src/hud_elements.h b/src/hud_elements.h index 5bae8ebf..4d58d0d6 100644 --- a/src/hud_elements.h +++ b/src/hud_elements.h @@ -62,7 +62,7 @@ class HudElements{ static void gamescope_fsr(); static void gamescope_frame_timing(); static void gamepad_battery(); - static void framecount(); + static void frame_count(); static void fan(); static void throttling_status(); diff --git a/src/overlay_params.h b/src/overlay_params.h index 4daabb93..c070e277 100644 --- a/src/overlay_params.h +++ b/src/overlay_params.h @@ -63,7 +63,7 @@ typedef unsigned long KeySym; OVERLAY_PARAM_BOOL(legacy_layout) \ OVERLAY_PARAM_BOOL(cpu_mhz) \ OVERLAY_PARAM_BOOL(frametime) \ - OVERLAY_PARAM_BOOL(framecount) \ + OVERLAY_PARAM_BOOL(frame_count) \ OVERLAY_PARAM_BOOL(resolution) \ OVERLAY_PARAM_BOOL(show_fps_limit) \ OVERLAY_PARAM_BOOL(fps_color_change) \