diff --git a/dll/dll/settings.h b/dll/dll/settings.h index f817513f..d13f66dd 100644 --- a/dll/dll/settings.h +++ b/dll/dll/settings.h @@ -343,6 +343,10 @@ public: bool auto_accept_any_overlay_invites = false; // list of user steam IDs to auto-accept invites from std::set auto_accept_overlay_invites_friends{}; + bool overlay_always_show_fps = false; + bool overlay_always_show_frametime = false; + bool overlay_always_show_playtime = false; + bool overlay_always_show_user_info = false; #ifdef LOBBY_CONNECT diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index d6ed04fa..f3eb74af 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -1416,6 +1416,18 @@ static void parse_overlay_general_config(class Settings *settings_client, class settings_client->overlay_upload_achs_icons_to_gpu = ini.GetBoolValue("overlay::general", "upload_achievements_icons_to_gpu", settings_client->overlay_upload_achs_icons_to_gpu); settings_server->overlay_upload_achs_icons_to_gpu = ini.GetBoolValue("overlay::general", "upload_achievements_icons_to_gpu", settings_server->overlay_upload_achs_icons_to_gpu); + settings_client->overlay_always_show_user_info = ini.GetBoolValue("overlay::general", "overlay_always_show_user_info", settings_client->overlay_always_show_user_info); + settings_server->overlay_always_show_user_info = ini.GetBoolValue("overlay::general", "overlay_always_show_user_info", settings_server->overlay_always_show_user_info); + + settings_client->overlay_always_show_fps = ini.GetBoolValue("overlay::general", "overlay_always_show_fps", settings_client->overlay_always_show_fps); + settings_server->overlay_always_show_fps = ini.GetBoolValue("overlay::general", "overlay_always_show_fps", settings_server->overlay_always_show_fps); + + settings_client->overlay_always_show_frametime = ini.GetBoolValue("overlay::general", "overlay_always_show_frametime", settings_client->overlay_always_show_frametime); + settings_server->overlay_always_show_frametime = ini.GetBoolValue("overlay::general", "overlay_always_show_frametime", settings_server->overlay_always_show_frametime); + + settings_client->overlay_always_show_playtime = ini.GetBoolValue("overlay::general", "overlay_always_show_playtime", settings_client->overlay_always_show_playtime); + settings_server->overlay_always_show_playtime = ini.GetBoolValue("overlay::general", "overlay_always_show_playtime", settings_server->overlay_always_show_playtime); + { auto val = ini.GetLongValue("overlay::general", "fps_averaging_window", settings_client->overlay_fps_avg_window); if (val > 0) { diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 39de38c1..0f8a99e0 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -138,6 +138,8 @@ Steam_Overlay::Steam_Overlay(Settings* settings, Local_Storage *local_storage, S current_language = 0; const char *language = settings->get_language(); + show_user_info = settings->overlay_always_show_user_info; + int i = 0; for (auto &lang : valid_languages) { if (common_helpers::str_cmp_insensitive(lang, language)) { diff --git a/overlay_experimental/steam_overlay_stats.cpp b/overlay_experimental/steam_overlay_stats.cpp index 9c7ceac3..f69a3dbf 100644 --- a/overlay_experimental/steam_overlay_stats.cpp +++ b/overlay_experimental/steam_overlay_stats.cpp @@ -7,7 +7,9 @@ Steam_Overlay_Stats::Steam_Overlay_Stats(class Settings* settings): settings(settings) { - + show_fps = settings->overlay_always_show_fps; + show_frametime = settings->overlay_always_show_frametime; + show_playtime = settings->overlay_always_show_playtime; } bool Steam_Overlay_Stats::show_any_stats() const diff --git a/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini b/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini index 2bce7db6..4831793c 100644 --- a/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini +++ b/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini @@ -50,6 +50,18 @@ upload_achievements_icons_to_gpu=1 # minimum allowed value = 1 # default=10 fps_averaging_window=10 +# 1=always show user info in the overlay +# default=0 +overlay_always_show_user_info=0 +# 1=always show fps in the overlay +# default=0 +overlay_always_show_fps=0 +# 1=always show frametime in the overlay +# default=0 +overlay_always_show_frametime=0 +# 1=always show playtime in the overlay +# default=0 +overlay_always_show_playtime=0 [overlay::appearance] # load custom TrueType font from a path, it could be absolute, or relative