-
Notifications
You must be signed in to change notification settings - Fork 23
/
ship_builder.html
53 lines (48 loc) · 2.05 KB
/
ship_builder.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
---
---
<html lang="en-US">
<head><title>Endless Sky Ship Builder</title>
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/ship-builder.css' | absolute_url }}">
</head>
<body>
<!-- TODO: don't use a table to control layout -->
<table role="presentation">
<tr>
<td class="controls">
<p>
<label for="sprite-selector">Select a ship sprite:</label>
<input type="file" id="sprite-selector" name="file" title="Select a ship sprite" accept="image/png" />
</p>
<p>
<label for="swizzle-select">Swizzle:</label>
<select name="swizzle" id="swizzle-select">
<option value="0" selected>Republic (No swizzle)</option>
<option value="1">Unused (G ↔ B)</option>
<option value="2">Militia (R ↔ G)</option>
<option value="3">Unused (R → G → B → R)</option>
<option value="4">Syndicate (R → B → G → R)</option>
<option value="5">Merchant (R ↔ B)</option>
<option value="6">Pirate (G → R, B → G)</option>
</select>
#<input title="Swizzle Number" id="swizzle-value" type="text" disabled value="0">
</p>
<p>
<input type="checkbox" id="show-outline" />
<label for="show-outline">Show collision mask</label>
</p>
<p class="hardpoint-type">
<button type="button" disabled name="gun" title="Create a gun mount at the selected position">gun</button>
<button type="button" disabled name="turret" title="Create a turret mount at the selected position">turret</button>
<button type="button" disabled name="engine" title="Create a engine mount at the selected position">engine</button>
</p>
<p>Load an image (regular resolution or @2x), click on where each hardpoint should be, then click one of the buttons above to add the selected point to a list of points (which will be shown below). You can then copy that list into your ship definition.</p>
<pre id="points"></pre>
</td>
<td class="image-display">
<canvas id="canvas"></canvas>
</td>
</tr>
</table>
</body>
<script type="text/javascript" defer src="{{ 'assets/js/ship-builder.js' | absolute_url }}"></script>
</html>