diff --git a/README.md b/README.md index 2f50b431..cd39e1b7 100644 --- a/README.md +++ b/README.md @@ -411,6 +411,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu | `throttling_status` | Show if GPU is throttling based on Power, current, temp or "other" (Only shows if throttling is currently happening). Currently disabled by default for Nvidia as it causes lag on 3000 series | | `throttling_status_graph` | Same as `throttling_status` but displays throttling in the frametime graph and only power and temp throttling | | `time`
`time_format=%T` | Display local time. See [std::put_time](https://en.cppreference.com/w/cpp/io/manip/put_time) for formatting help. NOTE: Sometimes apps may set `TZ` (timezone) environment variable to UTC/GMT | +| `time_no_label` | Remove the label before time | | `toggle_fps_limit` | Cycle between FPS limits (needs at least two values set with `fps_limit`). Defaults to `Shift_L+F1` | | `toggle_preset` | Cycle between Presets. Defaults to `Shift_R+F10` | | `toggle_hud=`
`toggle_logging=` | Modifiable toggle hotkeys. Default are `Shift_R+F12` and `Shift_L+F2`, respectively | diff --git a/data/MangoHud.conf b/data/MangoHud.conf index c081332e..8048819f 100644 --- a/data/MangoHud.conf +++ b/data/MangoHud.conf @@ -62,6 +62,8 @@ ### Display the current system time # time +## removes the time label +# time_no_label ### Time formatting examples ## %H:%M @@ -88,7 +90,7 @@ gpu_stats ## GPU fan in rpm on AMD, FAN in percent on NVIDIA # gpu_fan ## gpu_voltage only works on AMD GPUs -# gpu_voltage +# gpu_voltage ### Display the current CPU information cpu_stats diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index 17466754..d24b3607 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -161,7 +161,9 @@ static void ImGuiTableSetColumnIndex(int column) void HudElements::time(){ if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_time]){ - if (!HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_horizontal] && !HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_hud_compact]){ + if (!HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_horizontal] && + !HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_hud_compact] && + !HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_time_no_label]){ ImguiNextColumnFirstItem(); HUDElements.TextColored(HUDElements.colors.text, "Time"); ImguiNextColumnOrNewRow(); diff --git a/src/overlay_params.h b/src/overlay_params.h index a3d8774e..1a25edb1 100644 --- a/src/overlay_params.h +++ b/src/overlay_params.h @@ -111,6 +111,7 @@ typedef unsigned long KeySym; OVERLAY_PARAM_BOOL(frame_timing_detailed) \ OVERLAY_PARAM_BOOL(winesync) \ OVERLAY_PARAM_BOOL(present_mode) \ + OVERLAY_PARAM_BOOL(time_no_label) \ OVERLAY_PARAM_CUSTOM(fps_sampling_period) \ OVERLAY_PARAM_CUSTOM(output_folder) \ OVERLAY_PARAM_CUSTOM(output_file) \