-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.php
293 lines (272 loc) · 13.8 KB
/
settings.php
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<?php
if ($_SERVER['REQUEST_METHOD'] != "GET") {
header('HTTP/1.0 400 Invalid Request');
die();
}
$root = $_SERVER['DOCUMENT_ROOT'];
require_once $root . '/include.php';
global $dbcon;
?>
<!DOCTYPE html>
<html>
<head>
<?php
include "header.shtml";
$pagetitle = "Settings";
$pagedesc = "KTDash Settings";
$pagekeywords = "Settings";
$pageurl = "https://ktdash.app/settings.php";
include "og.php";
?>
<style>
<?php include "css/styles.css"; ?>
</style>
</head>
<body ng-app="kt" ng-controller="ktCtrl" ng-init="init();">
<?php
include "topnav.shtml";
include "templates/dialogs.shtml";
?>
<script type="text/javascript">
//te("settings", "view");
</script>
<h1 class="orange cinzel"><span class="fas fa-cogs fa-fw"></span> Settings</h1>
<!-- Settings -->
<div class="container">
<h2>Display</h2>
<div class="m-2 row m-0 p-0">
<div class="col-12 col-md-6 m-0 p-0">
<h5>Editions</h5>
Select which editions to show.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('edition', '');" ng-class="settings['edition'] == '' || settings['edition'] == null ? 'btn-primary': 'btn-secondary'">
<h5>Both</h5>
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('edition', 'kt24');" ng-class="settings['edition'] == 'kt24' ? 'btn-primary': 'btn-secondary'">
<h5>KT24</h5>
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('edition', 'kt21');" ng-class="settings['edition'] == 'kt21' ? 'btn-primary': 'btn-secondary'">
<h5>KT21</h5>
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Portraits</h5>
Displays the portraits for operatives and rosters if enabled.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('display', 'card');" ng-class="settings['display'] == 'card' || settings['display'] == null ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'card' || settings['display'] == null"></i -->
<i class="pointer far fa-id-card fa-fw"></i><br/>
Show
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('display', 'list');" ng-class="settings['display'] == 'list' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'list'"></i -->
<i class="pointer fas fa-list fa-fw"></i><br/>
Hide
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Operative Name/Type</h5>
Show Operative Name or Type first on cards.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('opnamefirst', 'y');" ng-class="settings['opnamefirst'] == 'y' || settings['opnamefirst'] == null ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'card' || settings['display'] == null"></i -->
<i class="pointer far fa-id-card fa-fw"></i><br/>
Show Name First
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('opnamefirst', 'n');" ng-class="settings['opnamefirst'] == 'n' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'list'"></i -->
<i class="pointer fas fa-list fa-fw"></i><br/>
Show Type First
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Auto-Generate Operative Names</h5>
Auto-generates operative names if enabled. If disabled, uses the operative type as its name.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('useoptypeasname', 'n');" ng-class="settings['useoptypeasname'] == 'n' || settings['useoptypeasname'] == null ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'card' || settings['display'] == null"></i -->
<i class="pointer fas fa-check fa-fw"></i><br/>
Auto-Generate
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('useoptypeasname', 'y');" ng-class="settings['useoptypeasname'] == 'y' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'list'"></i -->
<i class="pointer fas fa-times fa-fw"></i><br/>
Use OpType
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Operative Numbers</h5>
Displays operative numbers in the roster and dashboard if enabled.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showopseq', 'y');" ng-class="settings['showopseq'] == 'y' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['showopseq'] == 'y'"></i -->
<i class="pointer fas fa-list-ol fa-fw"></i><br/>
Show
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showopseq', 'n');" ng-class="settings['showopseq'] == 'n' || settings['showopseq'] == null ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['showopseq'] == 'n' || settings['showopseq'] == null"></i -->
<i class="pointer fas fa-bars fa-fw"></i><br/>
Hide
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Operative IDs</h5>
Displays operative IDs (e.g. "[HGNR]" for Heavy Gunner) in the roster and dashboard if enabled.<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showopid', 'y');" ng-class="settings['showopid'] == 'y' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['showopseq'] == 'y'"></i -->
<i class="pointer fas fa-list-ol fa-fw"></i><br/>
Show
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showopid', 'n');" ng-class="settings['showopid'] == 'n' || settings['showopid'] == null ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['showopseq'] == 'n' || settings['showopseq'] == null"></i -->
<i class="pointer fas fa-bars fa-fw"></i><br/>
Hide
</button>
<br/><br/>
</div>
</div>
<h2 class="line-top-light">Game Options</h2>
<div class="m-2 row">
<div class="col-12 col-md-6 m-0 p-0">
<h5>Show Roster equipment on Operatives</h5>
Shows all roster equipment selections on operative cards (KT24 only)
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showrostereqsonops', 'y');" ng-class="settings['showrostereqsonops'] == 'y' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'list'"></i -->
<i class="pointer fas fa-check fa-fw"></i><br/>
Show
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('showrostereqsonops', 'n');" ng-class="settings['showrostereqsonops'] == 'n' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'card' || settings['display'] == null"></i -->
<i class="pointer fas fa-times fa-fw"></i><br/>
Hide
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Auto-Apply Equipment Modifiers</h5>
Automatically applies equipment and option modifiers to operatives and weapons if enabled (e.g. Chapter Tactics, Marks of Chaos, etc.).
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('applyeqmods', 'y');" ng-class="settings['applyeqmods'] == 'y' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'list'"></i -->
<i class="pointer fas fa-magic fa-fw"></i><br/>
Enable
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('applyeqmods', 'n');" ng-class="settings['applyeqmods'] == 'n' ? 'btn-primary': 'btn-secondary'">
<!-- i class="fas fa-check fa-fw" style="top: 2px; left: 2px;" ng-if="settings['display'] == 'card' || settings['display'] == null"></i -->
<i class="pointer fas fa-bars fa-fw"></i><br/>
Disable
</button>
<br/><br/>
</div>
<!-- div class="col-12 col-md-6 m-0 p-0" ng-if="settings['applyeqmods'] == 'y'">
<h5>Hide Auto-Applied Equipments</h5>
Hides equipments from the "Equipment" list if they were auto-applied to Abilities, Actions, or Operative/Weapon stats
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('hideappliedeqmods', 'y');" ng-class="settings['hideappliedeqmods'] == 'y' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-times fa-fw"></i><br/>
Hide
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('hideappliedeqmods', 'n');" ng-class="settings['hideappliedeqmods'] == 'n' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-check fa-fw"></i><br/>
Show
</button>
<br/><br/>
</div -->
<div class="col-12 col-md-6 m-0 p-0">
<h5>Narrative Info</h5>
Shows or hides narrative play information (Battle Honours, Rare Equipment, XP) - KT21 Only
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('shownarrative', 'y');" ng-class="settings['shownarrative'] == 'y' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-check fa-fw"></i><br/>
Show
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('shownarrative', 'n');" ng-class="settings['shownarrative'] == 'n' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-times fa-fw"></i><br/>
Hide
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Close Quarters</h5>
Automatically adds Lethal 5+ to Weapons with the Blast x, Splash x and/or Torrent x rules.
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('closequarters', 'y');" ng-class="settings['closequarters'] == 'y' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-check fa-fw"></i><br/>
Enable
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('closequarters', 'n');" ng-class="settings['closequarters'] == 'n' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-times fa-fw"></i><br/>
Disable
</button>
<br/><br/>
</div>
</div>
<h2 class="line-top-light">Dashboard Defaults</h2>
<div class="m-2 row">
<div class="col-12 col-md-6 m-0 p-0">
<div class="row">
<h4 class="d-inline col-6">Starting VP</h5>
<select class="col-2" name="startvp" ng-model="settings['startvp']" ng-change="setSetting('startvp', settings['startvp']);">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
How many Victory Points your roster should start with when deployed or reset
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<div class="row">
<h4 class="d-inline col-6">Starting CP</h5>
<select class="col-2" name="startcp" ng-model="settings['startcp']" ng-change="setSetting('startcp', settings['startcp']);">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</div>
How many Command Points your roster should start with when deployed or reset
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Auto-Increment CP</h5>
Automatically increases Command Points when moving to the next Turning Point if enabled.
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('autoinccp', 'y');" ng-class="settings['autoinccp'] == 'y' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-check fa-fw"></i><br/>
Yes
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('autoinccp', 'n');" ng-class="settings['autoinccp'] == 'n' ? 'btn-primary': 'btn-secondary'">
<i class="pointer fas fa-times fa-fw"></i><br/>
No
</button>
<br/><br/>
</div>
<div class="col-12 col-md-6 m-0 p-0">
<h5>Default Operative Order</h5>
The default order to give your operatives when resetting the dashboard.
<br/>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('defaultoporder', 'engage');" ng-class="settings['defaultoporder'] == 'engage' ? 'btn-primary': 'btn-secondary'">
<img src="/img/icons/EngageWhite.png" width="30" /><br/>
Engage
</button>
<button class="btn h3" style="width: 120px;" ng-click="setSetting('defaultoporder', 'conceal');" ng-class="settings['defaultoporder'] == 'conceal' ? 'btn-primary': 'btn-secondary'">
<img src="/img/icons/ConcealWhite.png" width="30" /><br/>
Conceal
</button>
<br/><br/>
</div>
</div>
<!--
<h2 class="line-top-light">Install</h2>
<div class="m-2">
Click <a href="#" onclick="$('#installmodal').modal('show');">here</a> to install this app on your phone.
<br/><br/>
</div>
-->
</div>
<?php include "footer.shtml" ?>
</body>
</html>