Skip to content

Commit

Permalink
removal of using image links
Browse files Browse the repository at this point in the history
  • Loading branch information
skuqre committed Nov 25, 2023
1 parent bbdcd74 commit 57ddf9b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 48 deletions.
26 changes: 0 additions & 26 deletions src/components/DialogueInput.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@
<th colspan="3">
Character
</th>
<tr>
<td>
<input
type="text"
id="lcr"
autocomplete="off"
placeholder='Image Link for the Character...'
/>
</td>
<td colspan="2">
<button id="rlc">Reload Char</button>
</td>
</tr>
<tr>
<td colspan="3" class="wholerow">
<label class="whole-row" for="char-img-up">
Expand All @@ -74,19 +61,6 @@
<th colspan="3">
Background
</th>
<tr>
<td>
<input
type="text"
id="lbg"
autocomplete="off"
placeholder='Image Link for the Background...'
/>
</td>
<td colspan="2">
<button id="rlbg">Reload BG</button>
</td>
</tr>
<tr>
<td colspan="3" class="wholerow">
<label class="whole-row" for="bg-img-up">
Expand Down
22 changes: 0 additions & 22 deletions src/pages/dialogue.astro
Original file line number Diff line number Diff line change
Expand Up @@ -207,28 +207,6 @@ import SizingTool from '../components/SizingTool.astro';
generateText(text, subtext);
});

document.querySelectorAll('#rlbg')[0].addEventListener('click', () => {
if (document.getElementById('lbg').value.trim() <= 0) return;
bg.src = document.getElementById('lbg').value;
bg.onload = function(e) {
if (bg.width > bg.height) {
bgpos = [(canvassize[0] - 1080 * (bg.width / bg.height)) / 2, 0];
} else {
bgpos = [0, 0];
}
generateText(text2, subtext2);
}
});

document.querySelectorAll('#rlc')[0].addEventListener('click', () => {
if (document.getElementById('lcr').value.trim() <= 0) return;
char.src = document.getElementById('lcr').value;
char.onload = function(e) {
chpos = [(canvassize[0] - char.width) / 2, char.height > canvassize[1] ? 0 : canvassize[1] - char.height];
generateText(text2, subtext2);
}
});

document.querySelectorAll('#clear-char')[0].addEventListener('click', () => {
char.src = '/nikke-font-generator/images/transparent.png';
char.onload = function(e) {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/update-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ title: Update Log

- fixed newlines not working properly
- fixed font size not changing line spacing
- removed usage of links in backgrounds
- **REASON FOR REMOVAL**: this would break half the time, plus no one really uses it

<br>

Expand Down

0 comments on commit 57ddf9b

Please sign in to comment.