diff --git a/plugins.json b/plugins.json
index 4d912e0a..ad96ff04 100644
--- a/plugins.json
+++ b/plugins.json
@@ -302,7 +302,7 @@
"author": "Ewan Howell",
"description": "Create Minecraft-styled title models!",
"tags": ["Minecraft", "Title", "Logo"],
- "version": "1.4.0",
+ "version": "1.4.1",
"min_version": "4.8.0",
"variant": "both",
"creation_date": "2023-06-10",
diff --git a/plugins/minecraft_title_generator/minecraft_title_generator.js b/plugins/minecraft_title_generator/minecraft_title_generator.js
index d26d7d6d..73c69e50 100644
--- a/plugins/minecraft_title_generator/minecraft_title_generator.js
+++ b/plugins/minecraft_title_generator/minecraft_title_generator.js
@@ -96,7 +96,7 @@
author: "Ewan Howell",
description,
tags: ["Minecraft", "Title", "Logo"],
- version: "1.4.0",
+ version: "1.4.1",
min_version: "4.8.0",
variant: "both",
creation_date: "2023-06-10",
@@ -334,11 +334,8 @@
},
format_page: {
component: {
- methods: {
- async create() {
- if (!await MinecraftEULA.promptUser(id)) return
- format.new()
- }
+ methods: {
+ create: () => format.new()
},
template: `
@@ -2378,6 +2375,11 @@
title: "Failed to load textures and fonts",
message: `Minecraft Title Generator was unable to load the textures and fonts. You will only be able to use the built-in texture and font.\n\nPlease make sure you are connected to the internet, and can access this
fonts.json file.\n\nIf you are unable to access the fonts.json file, it may be blocked by your computer or your internet service provider. If it is not your computer blocking it, you may be able to use a VPN to bypass the block. One good example is
Cloudflare WARP, which is a free program that commonly resolves this issue.`
})
+ },
+ tabChange(tab) {
+ this.tab = tab
+ document.querySelector("#new_minecraft_title_text .dialog_content").scrollTop = 0
+ if (!tab) setTimeout(() => this.$el.querySelector("#minecraft-title-text-input").focus(), 0)
}
},
computed: {
@@ -2423,11 +2425,11 @@
-
Text
-
Texture
-
Overlay
-
Style
-
Settings
+
Text
+
Texture
+
Overlay
+
Style
+
Settings
@@ -2827,17 +2829,20 @@
`
},
onOpen() {
- this.content_vue.tab = 0
- this.content_vue.$el.querySelector("#minecraft-title-text-input").focus()
+ setTimeout(async () => {
+ this.content_vue.tab = 0
+ this.content_vue.$el.querySelector("#minecraft-title-text-input").focus()
+ if (!await MinecraftEULA.promptUser(id)) return dialog.close()
+ }, 0)
},
onConfirm() {
const text = this.content_vue.text.replace(/A/g, "😳").replace(/(\s|^)'/g, "$1😩").replace(/(\s|^)"/g, "$1😩😩").replace(/"/g, "''").toLowerCase().trim()