Skip to content

Commit

Permalink
Vue.js fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanhowell5195 committed Jun 2, 2024
1 parent 03211d5 commit 34edd69
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
6 changes: 3 additions & 3 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
"author": "Ewan Howell",
"description": "Load template Java Edition entity models for use with OptiFine CEM. Also includes an animation editor, so that you can create custom entity animations.",
"tags": ["Minecraft: Java Edition", "OptiFine", "Templates"],
"version": "7.8.0",
"min_version": "4.8.0",
"version": "8.0.1",
"min_version": "4.10.0",
"variant": "both",
"creation_date": "2020-02-02",
"has_changelog": true,
Expand Down Expand Up @@ -310,7 +310,7 @@
"author": "Ewan Howell",
"description": "Create Minecraft-styled title models!",
"tags": ["Minecraft", "Title", "Logo"],
"version": "1.5.0",
"version": "1.5.1",
"min_version": "4.8.0",
"variant": "both",
"creation_date": "2023-06-10",
Expand Down
7 changes: 2 additions & 5 deletions plugins/cem_template_loader/cem_template_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
author: "Ewan Howell",
description: description + " Also includes an animation editor, so that you can create custom entity animations.",
tags: ["Minecraft: Java Edition", "OptiFine", "Templates"],
version: "8.0.0",
version: "8.0.1",
min_version: "4.10.0",
variant: "both",
creation_date: "2020-02-02",
Expand Down Expand Up @@ -188,9 +188,6 @@
onStart: () => openLoader,
format_page: {
component: {
data: {
connection
},
methods: {
openLoader
},
Expand Down Expand Up @@ -1490,7 +1487,7 @@
template: `
<div id="cem_animation_content">
<div class="cem_animation_bar" style="margin-bottom:8px">
<p id="cem_animation_title" class="panel_toolbar_label">Editing animations for part: <span id="cem_animation_part_name" style="font-weight:600"></p>
<p id="cem_animation_title" class="panel_toolbar_label">Editing animations for part: <span id="cem_animation_part_name" style="font-weight:600"></span></p>
<span class="spacer"></span>
<span id="cem_animation_doc_button" @click="showDoc()" title="Animation documentation">
<p>Documentation</p>
Expand Down
16 changes: 15 additions & 1 deletion plugins/cem_template_loader/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,8 @@
"The CEM Animation Editor can now be extended by other plugins",
"The CEM Animation Documentation can now be extended by other plugins",
"Added CDN url fallback system",
"The external model JSON file's version number will now be separated from the plugin's version number. I have reset that version number to 2.0.0 and it will increase separately from the plugin's version number from now on"
"The external model JSON file's version number will now be separated from the plugin's version number. I have reset that version number to 2.0.0 and it will increase separately from the plugin's version number from now on",
"Added a class to the format page so it can be easily targetted by themes"
]
},
{
Expand All @@ -844,5 +845,18 @@
]
}
]
},
"8.0.1": {
"title": "8.0.1",
"date": "2024-06-02",
"author": "Ewan Howell",
"categories": [
{
"title": "Bug Fixes",
"list": [
"Fixed Vue.js warnings"
]
}
]
}
}
19 changes: 19 additions & 0 deletions plugins/minecraft_title_generator/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,24 @@
]
}
]
},
"1.5.1": {
"title": "1.5.1",
"date": "2024-06-02",
"author": "Ewan Howell",
"categories": [
{
"title": "Technical Changes",
"list": [
"Added a class to the format page so it can be easily targetted by themes"
]
},
{
"title": "Bug Fixes",
"list": [
"Fixed Vue.js warnings"
]
}
]
}
}
11 changes: 8 additions & 3 deletions plugins/minecraft_title_generator/minecraft_title_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
author: "Ewan Howell",
description,
tags: ["Minecraft", "Title", "Logo"],
version: "1.5.0",
version: "1.5.1",
min_version: "4.8.0",
variant: "both",
creation_date: "2023-06-10",
Expand Down Expand Up @@ -265,7 +265,7 @@
create: () => format.new()
},
template: `
<div style="display:flex;flex-direction:column;height:100%">
<div class="ewan-format-page" style="display:flex;flex-direction:column;height:100%">
<p class="format_description">${description}</p>
<p class="format_target"><b>Target</b> : <span>Logos</span> <span>Renders</span> <span>Thumbnails</span></p>
<content>
Expand Down Expand Up @@ -767,6 +767,11 @@
this.update(this.tabToUpdate)
this.tabToUpdate = false
}
},
checkResolution() {
if (this.resolution > 2048) {
this.resolution = 2048
}
}
},
template: `
Expand Down Expand Up @@ -1132,7 +1137,7 @@
</div>
</div>
<div style="margin-right:-20px">Antialiasing:</div>
<input type="checkbox" :checked="antialias" v-model="antialias" @input="if (resolution > 2048) resolution = 2048">
<input type="checkbox" :checked="antialias" v-model="antialias" @input="resolution = Math.min(resolution, 2048)">
</div>
</div>
`
Expand Down

0 comments on commit 34edd69

Please sign in to comment.