mirror of
https://github.com/godotengine/godot-website-cover-generator.git
synced 2026-01-03 18:11:19 +03:00
Remove unused debug options
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 887 KiB |
@@ -36,14 +36,6 @@
|
||||
<div class="toolbar-item">
|
||||
<button id="download-image">Download</button>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Debug options</h3>
|
||||
|
||||
<div class="toolbar-item toolbar-item--oneline">
|
||||
<label for="show-vercel">Show Vercel output</label>
|
||||
<input type="checkbox" id="show-vercel" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="canvas-container">
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const generator = new PreviewGenerator();
|
||||
generator.init();
|
||||
|
||||
generator.testVercel();
|
||||
});
|
||||
|
||||
class PreviewGenerator {
|
||||
@@ -40,10 +38,6 @@ class PreviewGenerator {
|
||||
this.coverImage = null;
|
||||
this.titleText = "";
|
||||
this.superText = "";
|
||||
|
||||
// TODO: Remove when matched and tested.
|
||||
this.vercelOutput = null;
|
||||
this.showVercel = false;
|
||||
}
|
||||
|
||||
init() {
|
||||
@@ -108,24 +102,10 @@ class PreviewGenerator {
|
||||
this._saveRender();
|
||||
});
|
||||
|
||||
// TODO: REMOVE
|
||||
const showVercel_toggle = document.getElementById("show-vercel");
|
||||
showVercel_toggle.addEventListener("change", () => {
|
||||
this.showVercel = showVercel_toggle.checked;
|
||||
this.render();
|
||||
});
|
||||
|
||||
// Do the first render.
|
||||
this.render();
|
||||
}
|
||||
|
||||
testVercel() {
|
||||
this._loadImage("assets/output-vercel.png", (image) => {
|
||||
this.vercelOutput = image;
|
||||
this.render();
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
if (!this.previewCanvas || !this.ctx) {
|
||||
return;
|
||||
@@ -198,11 +178,6 @@ class PreviewGenerator {
|
||||
|
||||
this.ctx.drawImage(this.godotLogo, this.previewWidth - paddingSize - logoWidth, paddingSize, logoWidth, logoHeight);
|
||||
}
|
||||
|
||||
// TODO: REMOVE
|
||||
if (this.showVercel && this.vercelOutput) {
|
||||
this.ctx.drawImage(this.vercelOutput, 0, 0, this.previewWidth, this.previewHeight);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user