Added function to add custom Entity Icons

This commit is contained in:
Wofsauge committed 2022-04-03 23:56:49 +02:00
1 parent 034b9e453d
commit 8678c6beab
2 files changed
+12

No files matched your search

+1
View File
@@ -125,6 +125,7 @@ local dummySprite2 = Sprite()
dummySprite2:Load("gfx/eid_inline_icons.anm2", true)
-- add animated icon using api function (Make sure to create new Sprite Obj when using animated icons. Reuse objects when only using static icons)
EID:addIcon("TestIcon", "hearts", -1, 9, 9, -1, 0, dummySprite2)
EID:AddIconToObject(5, 100, 1, "TestIcon")
-- add icon directly