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
|
||||
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user