diff --git a/includes/OSDManager.h b/includes/OSDManager.h index 018878c..76a595a 100644 --- a/includes/OSDManager.h +++ b/includes/OSDManager.h @@ -19,6 +19,10 @@ extern reshade::api::effect_uniform_variable u_IgnoreHits_show; extern reshade::api::effect_uniform_variable u_IgnoreHits_enabled; extern reshade::api::effect_uniform_variable u_Stealth_show; extern reshade::api::effect_uniform_variable u_Stealth_enabled; +extern reshade::api::effect_uniform_variable u_Stamina_show; +extern reshade::api::effect_uniform_variable u_Stamina_enabled; +extern reshade::api::effect_uniform_variable u_Mana_show; +extern reshade::api::effect_uniform_variable u_Mana_enabled; extern void SetFixesEnabled(GameFixes fix, bool value); extern void SaveSettings(); diff --git a/libs/OSDManager.cpp b/libs/OSDManager.cpp index 908f96f..9681a89 100644 --- a/libs/OSDManager.cpp +++ b/libs/OSDManager.cpp @@ -5,16 +5,20 @@ static OSDUpdateFn g_onUpdate; static OSDEndFn g_onEnd; // Reshade shader uniform variables -reshade::api::effect_uniform_variable u_td_show = {}; +reshade::api::effect_uniform_variable u_td_show = {}; // Time dilation reshade::api::effect_uniform_variable u_td_enabled = {}; -reshade::api::effect_uniform_variable u_td_world = {}; -reshade::api::effect_uniform_variable u_td_AI = {}; +reshade::api::effect_uniform_variable u_td_world = {}; // Time dilation world +reshade::api::effect_uniform_variable u_td_AI = {}; // Time dilation AI reshade::api::effect_uniform_variable u_GodMode_show = {}; reshade::api::effect_uniform_variable u_GodMode_enabled = {}; reshade::api::effect_uniform_variable u_IgnoreHits_show = {}; reshade::api::effect_uniform_variable u_IgnoreHits_enabled = {}; reshade::api::effect_uniform_variable u_Stealth_show = {}; reshade::api::effect_uniform_variable u_Stealth_enabled = {}; +reshade::api::effect_uniform_variable u_Stamina_show = {}; +reshade::api::effect_uniform_variable u_Stamina_enabled = {}; +reshade::api::effect_uniform_variable u_Mana_show = {}; +reshade::api::effect_uniform_variable u_Mana_enabled = {}; void ShowOSD(float duration, OSDUpdateFn onUpdate, OSDEndFn onEnd) { g_timer = duration; @@ -48,6 +52,10 @@ void FindAllUniformVariables(reshade::api::effect_runtime* runtime, const char* u_IgnoreHits_enabled = runtime->find_uniform_variable(OSD_SHADER_NAME, "IgnoreHits_Enabled"); u_Stealth_show = runtime->find_uniform_variable(OSD_SHADER_NAME, "OSD_ShowStealth"); u_Stealth_enabled = runtime->find_uniform_variable(OSD_SHADER_NAME, "Stealth_Enabled"); + u_Stamina_show = runtime->find_uniform_variable(OSD_SHADER_NAME, "OSD_ShowStamina"); + u_Stamina_enabled = runtime->find_uniform_variable(OSD_SHADER_NAME, "Stamina_Enabled"); + u_Mana_show = runtime->find_uniform_variable(OSD_SHADER_NAME, "OSD_ShowMana"); + u_Mana_enabled = runtime->find_uniform_variable(OSD_SHADER_NAME, "Mana_Enabled"); } void ResetAllUniformVariables(reshade::api::effect_runtime* runtime, const char* effect_name) {