Archive eaglerforge-builder (tool, 1.8.8, clean)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
PRIMITIVES["icon"] = {
|
||||
name: "Icon",
|
||||
uses: [],
|
||||
type: "icon",
|
||||
tags: {
|
||||
Icon: VALUE_ENUMS.IMG,
|
||||
},
|
||||
getDependencies: function () {
|
||||
return [];
|
||||
},
|
||||
asJavaScript: function () {
|
||||
if (!this.tags.Icon || this.tags.Icon === VALUE_ENUMS.IMG) {
|
||||
return "";
|
||||
}
|
||||
return `
|
||||
(function IconDatablock() {
|
||||
ModAPI.meta.icon("${this.tags.Icon}");
|
||||
})();`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user