Skip to content

Commit 5da5a1d

Browse files
Add way to access texture icons from addons
1 parent 163f806 commit 5da5a1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nova/src/main/kotlin/xyz/xenondevs/nova/data/resources/builder/task/font/TextureIconContent.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,11 @@ class TextureIconContent internal constructor(
5959
ResourceLookups.TEXTURE_ICON_LOOKUP.set(fontCharLookup)
6060
}
6161

62+
companion object {
63+
64+
fun getIcon(id: ResourcePath): FontChar? =
65+
ResourceLookups.TEXTURE_ICON_LOOKUP[id]
66+
67+
}
68+
6269
}

0 commit comments

Comments
 (0)