HUD offset only needed if Options doesn't exist

This commit is contained in:
Buurazu authored and GitHub committed 2022-02-07 03:42:23 -05:00
1 parent 2e2cd19fbf
commit 49d4f37856
1 file changed
+2 -4
+2 -4
View File
@@ -76,15 +76,13 @@ end
function EID:renderMCMDummyDescription() function EID:renderMCMDummyDescription()
if MCMLoaded then if MCMLoaded then
if not Options then
local hudOffset = ModConfigMenu.Config["General"].HudOffset local hudOffset = ModConfigMenu.Config["General"].HudOffset
if hudOffset == nil and ScreenHelper then if hudOffset == nil and ScreenHelper then
hudOffset = ScreenHelper.GetOffset() hudOffset = ScreenHelper.GetOffset()
end end
if REPENTANCE and Options then
hudOffset = (Options.HUDOffset * 10)
end
EID.Config["HUDOffset"] = hudOffset EID.Config["HUDOffset"] = hudOffset
EID:addTextPosModifier("HudOffset", Vector((hudOffset * 2) - 20, hudOffset - 10)) end
if MCM.IsVisible and EID.MCMCompat_isDisplayingEIDTab ~= "" then if MCM.IsVisible and EID.MCMCompat_isDisplayingEIDTab ~= "" then
if EID.MCMCompat_isDisplayingEIDTab == "Mouse" and EID.Config["EnableMouseControls"] then if EID.MCMCompat_isDisplayingEIDTab == "Mouse" and EID.Config["EnableMouseControls"] then
clearRenderDummyDesc() clearRenderDummyDesc()