-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
229 lines (204 loc) · 10.4 KB
/
index.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Stellaris Galaxy Tool</title>
</head>
<body>
<!-- Map Import Modal -->
<div class="modal fade" id="import-modal" tabindex="-1" role="dialog" aria-labelledby="import-modal-label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="import-modal-label">Map Import</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="import-map-file-input">Map File</label>
<input type="file" class="form-control-file" id="import-map-file-input" accept=".txt">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Dismiss</button>
<button type="button" class="btn btn-primary" id="import-map-btn" data-dismiss="modal">Import</button>
</div>
</div>
</div>
</div>
<!-- Scenario Settings Modal -->
<div class="modal fade" id="settings-modal" tabindex="-1" role="dialog" aria-labelledby="settings-modal-label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="settings-modal-label">Scenario Settings</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-row">
<div class="form-group col-8">
<label for="settings-name-input">name</label>
<input type="text" class="form-control" id="settings-name-input" placeholder="Map Name">
</div>
<div class="form-group col-4">
<label for="settings-priority-input">priority</label>
<input type="number" class="form-control" id="settings-priority-input" placeholder="Priority">
</div>
</div>
<div class="form-row">
<div class="form-group col-4">
<label for="settings-empire-min-input">num_empires.min</label>
<input type="number" class="form-control" id="settings-empire-min-input" min="0" step="1" placeholder="Min">
</div>
<div class="form-group col-4">
<label for="settings-empire-max-input">num_empires.max</label>
<input type="number" class="form-control" id="settings-empire-max-input" min="0" step="1" placeholder="Max">
</div>
<div class="form-group col-4">
<label for="settings-empire-default-input">num_empire_default</label>
<input type="number" class="form-control" id="settings-empire-default-input" min="0" step="1" placeholder="Default">
</div>
</div>
<div class="form-row">
<div class="form-group col-4">
<label for="settings-fallen-default-input">fallen_empire_default</label>
<input type="number" class="form-control" id="settings-fallen-default-input" min="0" step="1" placeholder="Default">
</div>
<div class="form-group col-4">
<label for="settings-fallen-max-input">fallen_empire_max</label>
<input type="number" class="form-control" id="settings-fallen-max-input" min="0" step="1" placeholder="Max">
</div>
<div class="form-group col-4">
<label for="settings-advanced-default-input">advanced_empire_default</label>
<input type="number" class="form-control" id="settings-advanced-default-input" min="0" step="1" placeholder="Default">
</div>
</div>
<div class="form-row">
<div class="form-group col-4">
<label for="settings-fallen-default-input">colonizable_planet_odds</label>
<input type="number" class="form-control" id="settings-colonizable-odds-input" min="0" max="1" step="0.01" placeholder="Odds">
</div>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="settings-default-check">
<label class="custom-control-label" for="settings-default-check">default</label>
</div>
<div class="custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="settings-random-hyperlanes-check">
<label class="custom-control-label" for="settings-random-hyperlanes-check">random_hyperlanes</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Dismiss</button>
<button type="button" class="btn btn-primary" id="save-settings-btn" data-dismiss="modal">Save</button>
</div>
</div>
</div>
</div>
<main class="container-fluid">
<div class="row">
<!-- Canvas UI -->
<div id="map" class="col-10">
<canvas class="map-layer" id="text-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="active-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="locked-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="system-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="hyperlane-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="nebula-layer" width="4000" height="4000"></canvas>
<canvas class="map-layer" id="background-layer" width="4000" height="4000"></canvas>
</div>
<!-- Controls Sidebar UI -->
<div id="hud" class="col-2">
<form>
<div class="form-row">
<div class="form-group col-4">
<label for="system-id-display">System ID</label>
<input type="text" class="form-control" id="system-id-display" readonly>
</div>
<div class="form-group col-8">
<label for="system-name-display">System Name</label>
<input type="text" class="form-control" id="system-name-display" readonly>
</div>
</div>
<div class="form-group">
<label for="system-init-display">System Initializer</label>
<input type="text" class="form-control" id="system-init-display" readonly>
</div>
<div class="form-row">
<div class="form-group col-3">
<label for="system-spawn-base-display">S. Base</label>
<input type="text" class="form-control" id="system-spawn-base-display" readonly>
</div>
<div class="form-group col-3">
<label for="system-spawn-add-display">S. Add</label>
<input type="text" class="form-control" id="system-spawn-add-display" readonly>
</div>
<div class="form-group col-6">
<label for="system-country-flag-displa">Flag</label>
<input type="text" class="form-control" id="system-country-flag-display" readonly>
</div>
</div>
<div class="form-group">
<label for="linked-systems-display">Linked Systems</label>
<textarea class="form-control" id="linked-systems-display" rows="10" readonly></textarea>
<small class="form-text text-muted">Linked systems may not be in sorted order..</small>
</div>
<div class="form-group">
<label for="toggle-system-lock-btn">System Lock</label>
<div class="input-group">
<div class="input-group-prepend">
<button class="btn btn-info" id="toggle-system-lock-btn" type="button">Toggle</button>
</div>
<input type="text" id="system-lock-display" class="form-control" readonly>
</div>
<small class="form-text text-muted">Lock prevents edits to incoming/outing lanes.</small>
</div>
<div class="form-group">
<label for="link-radius-input">Radial Lane Generation</label>
<div class="input-group">
<div class="input-group-prepend">
<button class="btn btn-primary" id="add-nearby-lanes-btn" type="button">Add</button>
</div>
<input type="number" class="form-control" id="link-radius-input" min="0" max="1000" step="1" value="50" placeholder="Radius">
<div class="input-group-append">
<button id="remove-nearby-lanes-btn" class="btn btn-danger" type="button">Remove</button>
</div>
</div>
<small class="form-text text-muted">Search area is centered on active system.</small>
</div>
<div class="form-group">
<label for="download-map-btn">Export Static Galaxy Scenario</label>
<div class="input-group">
<input type="text" class="form-control" id="map-name-input" placeholder="File Name">
<div class="input-group-append">
<button id="download-map-btn" class="btn btn-success" type="button">Save</button>
</div>
</div>
<small class="form-text text-muted">Saves map as a <code>.txt</code> file.</small>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary btn-block" id="open-settings-btn" data-toggle="modal" data-target="#settings-modal">Open Settings...</button>
</div>
<div class="form-group">
<button type="button" class="btn btn-primary btn-block" data-toggle="modal" data-target="#import-modal">Import Map...</button>
</div>
<div class="form-group">
<button type="button" class="btn btn-danger btn-block" id="reset-btn">Reset</button>
</div>
</form>
</div>
</div>
</main>
<script src="./dist/app.js"></script>
</body>
</html>