Use official HUD Offset support in Rep
This commit is contained in:
1 parent
005422eb39
commit
07ab088892
4 files changed
+12
-2
No files matched your search
@@ -682,4 +682,4 @@ EID.descriptions["pt_br"].CraftingResults = "(Rolar: Segurar {{CONFIG_BoC_Toggle
|
|||||||
EID.descriptions["pt_br"].CraftingBagModError = "!!! {{ColorRed}}ERROR:#{{ColorRed}}O \"Crafting result calculation\" atualmente não é suportado quando mods são instalados!#{{ColorRed}}Por favor desinstale os mods ou desative a descrição do Bag of Crafting nas configurações"
|
EID.descriptions["pt_br"].CraftingBagModError = "!!! {{ColorRed}}ERROR:#{{ColorRed}}O \"Crafting result calculation\" atualmente não é suportado quando mods são instalados!#{{ColorRed}}Por favor desinstale os mods ou desative a descrição do Bag of Crafting nas configurações"
|
||||||
|
|
||||||
EID.descriptions["pt_br"].AchievementWarningTitle = "{{ColorYellow}}!!! ALERTA !!!"
|
EID.descriptions["pt_br"].AchievementWarningTitle = "{{ColorYellow}}!!! ALERTA !!!"
|
||||||
EID.descriptions["pt_br"].AchievementWarningText = "Conquista estão desabilitadas!#Para possibilitar a progressão e as conquistas, é preciso primeiro matar a Mãe (Depths II) sem nenhum mods habilitado".
|
EID.descriptions["pt_br"].AchievementWarningText = "Conquista estão desabilitadas!#Para possibilitar a progressão e as conquistas, é preciso primeiro matar a Mãe (Depths II) sem nenhum mods habilitado."
|
||||||
@@ -868,6 +868,9 @@ function EID:handleHUDElement(hudElement)
|
|||||||
end
|
end
|
||||||
local screenSize = EID:getScreenSize()
|
local screenSize = EID:getScreenSize()
|
||||||
local hudOffset = EID.Config["HUDOffset"]
|
local hudOffset = EID.Config["HUDOffset"]
|
||||||
|
if REPENTANCE then
|
||||||
|
hudOffset = (Options.HUDOffset * 10)
|
||||||
|
end
|
||||||
for _,v in ipairs(hudElement.anchors) do
|
for _,v in ipairs(hudElement.anchors) do
|
||||||
if v == "TOP" then
|
if v == "TOP" then
|
||||||
alteredHudElement.y = hudElement.y + hudOffset * 2
|
alteredHudElement.y = hudElement.y + hudOffset * 2
|
||||||
|
|||||||
@@ -837,7 +837,11 @@ if EID.MCMLoaded or REPENTANCE then
|
|||||||
EID.isHidden = EID.Config["InitiallyHidden"]
|
EID.isHidden = EID.Config["InitiallyHidden"]
|
||||||
EID.UsedPosition = Vector(EID.Config["XPosition"], EID.Config["YPosition"])
|
EID.UsedPosition = Vector(EID.Config["XPosition"], EID.Config["YPosition"])
|
||||||
EID:loadFont(EID.modPath .. "resources/font/eid_"..EID.Config["FontType"]..".fnt")
|
EID:loadFont(EID.modPath .. "resources/font/eid_"..EID.Config["FontType"]..".fnt")
|
||||||
EID:addTextPosModifier("HudOffset", Vector((EID.Config["HUDOffset"] * 2) - 20, EID.Config["HUDOffset"] - 10))
|
if REPENTANCE then
|
||||||
|
EID:addTextPosModifier("HudOffset", Vector(((Options.HUDOffset * 10) * 2) - 20, (Options.HUDOffset * 10) - 10))
|
||||||
|
else
|
||||||
|
EID:addTextPosModifier("HudOffset", Vector((EID.Config["HUDOffset"] * 2) - 20, EID.Config["HUDOffset"] - 10))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ function EID:renderMCMDummyDescription()
|
|||||||
if hudOffset == nil and ScreenHelper then
|
if hudOffset == nil and ScreenHelper then
|
||||||
hudOffset = ScreenHelper.GetOffset()
|
hudOffset = ScreenHelper.GetOffset()
|
||||||
end
|
end
|
||||||
|
if REPENTANCE then
|
||||||
|
hudOffset = (Options.HUDOffset * 10)
|
||||||
|
end
|
||||||
EID.Config["HUDOffset"] = hudOffset
|
EID.Config["HUDOffset"] = hudOffset
|
||||||
EID:addTextPosModifier("HudOffset", Vector((hudOffset * 2) - 20, hudOffset - 10))
|
EID:addTextPosModifier("HudOffset", Vector((hudOffset * 2) - 20, hudOffset - 10))
|
||||||
if MCM.IsVisible and EID.MCMCompat_isDisplayingEIDTab ~= "" then
|
if MCM.IsVisible and EID.MCMCompat_isDisplayingEIDTab ~= "" then
|
||||||
|
|||||||
Reference in new issue
Block a user