mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-26 15:29:26 -09:00
Increase character limits
This commit is contained in:
parent
266eda5797
commit
1f32472c01
@ -3,9 +3,9 @@ ModAPI.meta contains the API for registering metadata on mods easily.
|
|||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
- `ModAPI.meta.title(title: String)`
|
- `ModAPI.meta.title(title: String)`
|
||||||
- Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 14.
|
- Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 16.
|
||||||
- `ModAPI.meta.credits(credits: String)`
|
- `ModAPI.meta.credits(credits: String)`
|
||||||
- Sets the credits of the mod. Character limit of 16.
|
- Sets the credits of the mod. Character limit of 24.
|
||||||
- `ModAPI.meta.description(desc: String)`
|
- `ModAPI.meta.description(desc: String)`
|
||||||
- Sets the description of the mod. Character limit of 64.
|
- Sets the description of the mod. Character limit of 64.
|
||||||
- `ModAPI.meta.icon(iconURL: String)`
|
- `ModAPI.meta.icon(iconURL: String)`
|
||||||
|
@ -33,7 +33,7 @@ globalThis.modapi_postinit = `(() => {
|
|||||||
if (!document.currentScript.hasAttribute("data-hash")) {
|
if (!document.currentScript.hasAttribute("data-hash")) {
|
||||||
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
||||||
}
|
}
|
||||||
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14);
|
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16);
|
||||||
}
|
}
|
||||||
ModAPI.meta.icon = function (iconSrc) {
|
ModAPI.meta.icon = function (iconSrc) {
|
||||||
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
||||||
@ -51,7 +51,7 @@ globalThis.modapi_postinit = `(() => {
|
|||||||
if (!document.currentScript.hasAttribute("data-hash")) {
|
if (!document.currentScript.hasAttribute("data-hash")) {
|
||||||
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
||||||
}
|
}
|
||||||
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16);
|
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24);
|
||||||
}
|
}
|
||||||
ModAPI.meta.description = function (desc) {
|
ModAPI.meta.description = function (desc) {
|
||||||
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
if (!document.currentScript.hasAttribute("data-hash")) {
|
if (!document.currentScript.hasAttribute("data-hash")) {
|
||||||
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
||||||
}
|
}
|
||||||
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14);
|
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16);
|
||||||
}
|
}
|
||||||
ModAPI.meta.icon = function (iconSrc) {
|
ModAPI.meta.icon = function (iconSrc) {
|
||||||
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
||||||
@ -51,7 +51,7 @@
|
|||||||
if (!document.currentScript.hasAttribute("data-hash")) {
|
if (!document.currentScript.hasAttribute("data-hash")) {
|
||||||
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
return console.log("[ModAPIMeta] Script does not have a hashcode.");
|
||||||
}
|
}
|
||||||
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16);
|
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24);
|
||||||
}
|
}
|
||||||
ModAPI.meta.description = function (desc) {
|
ModAPI.meta.description = function (desc) {
|
||||||
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user