From 0b2696be5102acb7277420c3374cf87bd8b31e05 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Thu, 28 Jan 2021 18:43:17 +0100 Subject: [PATCH] Fixed Mod Config menu compatibility --- mod_config_menu.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod_config_menu.lua b/mod_config_menu.lua index 7fad3d85..287741cf 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -9,7 +9,11 @@ local colorNameArray = {} function EID:renderMCMDummyDescription() if MCMLoaded then - EID:addTextPosModifier("MCM_HudOffset", Vector(MCM.Config.HudOffset*2,MCM.Config.HudOffset)) + local mcmHudOffset = ModConfigMenu.Config["General"].HudOffset + if mcmHudOffset == nil and ScreenHelper then + mcmHudOffset = ScreenHelper.GetOffset() + end + EID:addTextPosModifier("MCM_HudOffset", Vector(mcmHudOffset * 2, mcmHudOffset)) if MCM.IsVisible and EID.permanentDisplayTextObj == nil and EID.MCMCompat_isDisplayingEIDTab then MCMCompat_oldPermanentObj = EID.permanentDisplayTextObj local demoDescObj = EID:getDescriptionObj(5, 100, 33)