diff --git a/eid_api.lua b/eid_api.lua index cc92eb9f..184c1c8c 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -215,8 +215,8 @@ end -- returns the current text position function EID:getTextPosition() - local posVector = EID.UsedPosition - for _,modifier in pairs(EID.PositionModifiers) do + local posVector = Vector(EID.UsedPosition.X,EID.UsedPosition.Y) + for a,modifier in pairs(EID.PositionModifiers) do posVector = posVector + modifier end return posVector diff --git a/main.lua b/main.lua index a85321c4..1c295667 100644 --- a/main.lua +++ b/main.lua @@ -302,6 +302,8 @@ local function onRender(t) local player = Isaac.GetPlayer(0) if player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then EID:addTextPosModifier("Schoolbag", Vector(0,30)) + else + EID:removeTextPosModifier("Schoolbag") end if EID.isDisplayingPermanent and EID.permanentDisplayTextObj ~= nil then diff --git a/metadata.xml b/metadata.xml index 97279c92..2f2f0a30 100644 --- a/metadata.xml +++ b/metadata.xml @@ -1,6 +1,6 @@ - !External item descriptions + !!External item descriptions external item descriptions 836319872 This mod displays detailed information about all items, trinkets, cards, runes and pills DIRECTLY onto your screen. Say goodbye to your browsertab with platinumgod open ;) @@ -34,7 +34,7 @@ [tr] [td]by Wofsauge[/td] [td]by Arroyo Purroy[/td] - [td]by hell2Pay & fly_6 & TrJ-VoRon[/td] + [td]by hell2Pay, fly_6 and TrJ-VoRon[/td] [td]by Nicolas Delvaux[/td] [td]by Marcelino Cruz[/td] [td]by Gothika_47[/td] @@ -49,11 +49,11 @@ [h1][b]------------------CONFIGURATION------------------[/b][/h1] -[h1]You can use [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1603631350]"Mod config Menu"[/url] to customize this mod![/h1] +[h1]You can use [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1603631350]'Mod config Menu'[/url] to customize this mod![/h1] or [b]Windows[/b] 1. Go to ..\Documents\My Games\Binding of Isaac Afterbirth+ Mods\External item descriptions\ -2. Open "config.lua" with any texteditor +2. Open 'config.lua' with any texteditor 3. Edit the Config 4. Save the file 5. Play the game @@ -76,7 +76,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions - [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities [img]https://i.imgur.com/P6a8043.png[/img] [url=https://github.com/wofsauge/External-Item-Descriptions]Any Problems? Visit this project on GitHub[/url] - 1.67 + 3.4 Public