Fixed Mod Config menu compatibility

This commit is contained in:
Wofsauge committed 2021-01-28 18:43:17 +01:00
1 parent 5d3bc9c905
commit 0b2696be51
1 file changed
+5 -1
+5 -1
View File
@@ -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)