-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtex.html
55 lines (42 loc) · 1.84 KB
/
tex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<title>The Mast | Textures</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
</head>
<body>
<script>
async function getImageData() {
let texturesStandard = await fetch("/assets/tm3d/compressed_textures_full.txt").then(
(response) => {if (response.ok) {
return response.text();
}
alert("Failed to get data!")
throw new Error("Error");
}
);
let dataLength = (texturesStandard.length/1000000).toFixed(2);
await navigator.clipboard.writeText(texturesStandard);
alert("Copied texture to clipboard! (" + dataLength + " MB in size)");
}
</script>
<div class="navbar">
<div>
<a href="/" class="navbtn"><div class="navbtnlink">Home</div></a>
<a href="/articles" class="navbtn"><div class="navbtnlink">Articles</div></a>
<a href="/projects" class="navbtn"><div class="navbtnlink">Projects</div></a>
<a href="/utils" class="navbtn"><div class="navbtnlink">Utilities</div></a>
</div>
</div>
<div class="content">
<h1>The Mast Textures</h1>
<hr>
<h2>Click the button below to copy the texture data to your clipboard.</h2>
<button onclick="getImageData()" style="padding: 1em;">Copy textures to clipboard</button>
<p>Then, go back to the project and paste them in to the input box that should've popped up. It will lag the game so hit enter as soon as you paste it, you don't need to wait to see the pasted text appear. Please note that there is a chance that this does not work fully. If your clipboard has a text length limitation, the entire texture might not've been copied. I don't have a solution for this.</p>
</div>
</body>
</html>