Small code improvements
This commit is contained in:
1 parent
071cd9ce5e
commit
99140db692
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -264,7 +264,7 @@ end
|
|||||||
-- returns the current text position
|
-- returns the current text position
|
||||||
function EID:getTextPosition()
|
function EID:getTextPosition()
|
||||||
local posVector = Vector(EID.UsedPosition.X, EID.UsedPosition.Y)
|
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
|
posVector = posVector + modifier
|
||||||
end
|
end
|
||||||
return posVector
|
return posVector
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ EID.ButtonToIconMap = {
|
|||||||
[ButtonAction.ACTION_PAUSE] = "{{ButtonMenu}}",
|
[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 = {
|
EID.HUDElements = {
|
||||||
["Active1"] = {x = 20,y = 5, width = 65, height = 65, anchors={"TOP","LEFT"}, descriptionObj = function()
|
["Active1"] = {x = 20,y = 5, width = 65, height = 65, anchors={"TOP","LEFT"}, descriptionObj = function()
|
||||||
local id = EID.player:GetActiveItem(ActiveSlot.SLOT_PRIMARY)
|
local id = EID.player:GetActiveItem(ActiveSlot.SLOT_PRIMARY)
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ EID.lastDescriptionEntity = nil
|
|||||||
EID.lineHeight = 11
|
EID.lineHeight = 11
|
||||||
EID.sacrificeCounter = {}
|
EID.sacrificeCounter = {}
|
||||||
EID.itemConfig = Isaac.GetItemConfig()
|
EID.itemConfig = Isaac.GetItemConfig()
|
||||||
EID.effectList = {["76"] = true}
|
|
||||||
EID.itemUnlockStates = {}
|
EID.itemUnlockStates = {}
|
||||||
EID.CraneItemType = {}
|
EID.CraneItemType = {}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user