Small code improvements

This commit is contained in:
Wofsauge committed 2022-01-15 23:22:06 +01:00
1 parent 071cd9ce5e
commit 99140db692
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ end
-- returns the current text position
function EID:getTextPosition()
local posVector = Vector(EID.UsedPosition.X, EID.UsedPosition.Y)
for a,modifier in pairs(EID.PositionModifiers) do
for _, modifier in pairs(EID.PositionModifiers) do
posVector = posVector + modifier
end
return posVector
+6
View File
@@ -15,6 +15,12 @@ EID.ButtonToIconMap = {
[ButtonAction.ACTION_PAUSE] = "{{ButtonMenu}}",
}
-- List of Effect variants that should be handled for descriptions
EID.effectList = {
["76"] = true,
}
-- List of HUD elements, their position and usage
EID.HUDElements = {
["Active1"] = {x = 20,y = 5, width = 65, height = 65, anchors={"TOP","LEFT"}, descriptionObj = function()
local id = EID.player:GetActiveItem(ActiveSlot.SLOT_PRIMARY)
-1
View File
@@ -26,7 +26,6 @@ EID.lastDescriptionEntity = nil
EID.lineHeight = 11
EID.sacrificeCounter = {}
EID.itemConfig = Isaac.GetItemConfig()
EID.effectList = {["76"] = true}
EID.itemUnlockStates = {}
EID.CraneItemType = {}