-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
118 lines (110 loc) · 4.97 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Harmony VPK Tool</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div id="topBar">
<span id="dirVPKName">No VPK file open</span>
<button id="openVPKButton" onclick="selectVPK()">Open VPK</button>
<button id="openSettingsButton" onclick="openSettingsPrompt()">Settings</button>
</div>
<div id="details">
<button id="detailsUnpackButton">Unpack</button>
<button id="detailsPreviewButton" class="hidden">Preview</button>
<h2 class="title">Details</h2>
<p class="path">Path:<span style="font-size: 12px;"></span></p>
<p class="fileType">File Type: <span></span></p>
<p class="totalFiles">Total files: <span></span></p>
<p class="totalCompressed">Packed size: <span></span></p>
<p class="totalUncompressed">Unpacked size: <span></span></p>
<br>
<p class="filePartsTitle" style="margin-bottom: 0;"><b>File Parts:</b></p>
<div class="fileParts">
<div class="filePart">
<p>Archive Index: <span></span></p>
<p>Packed Size: <span></span></p>
<p>Unpacked Size: <span></span></p>
<p>Load Flags: <span></span></p>
<p>Texture Flags: <span></span></p>
</div>
</div>
</div>
<div id="tree"></div>
<div id="context">
<span class="ctxType">Type</span>
<div class="ctxActions">
<span class="ctxAction disabled">No actions</span>
</div>
</div>
<div id="unpackOverlay">
<div id="unpackPrompt">
<span class="title">Unpacking...</span>
<div class="progressBar"><div class="progressDone"></div></div>
<span class="currentPath">cfg/gamepad_stick_layout_legacy_southpaw.cfg</span>
<span class="progress">2000/2000</span>
<br>
<button class="unpackPromptButton unpackCancelButton" onclick="cancelUnpack()">Cancel</button>
<button class="unpackPromptButton unpackOKButton" onclick="closeUnpackOverlay()">Close</button>
</div>
</div>
<div id="settingsOverlay" onclick="closeSettingsAndSave()">
<div id="settingsPrompt" onclick="event.stopPropagation()">
<span class="title">Settings</span>
<div class="setting">
<label for="setting_threadCount">Unpacking thread count:</label>
<input type="number" id="setting_threadCount">
</div>
<div class="setting">
<label for="setting_patchWavs">Patch WAV headers:</label>
<input type="checkbox" id="setting_patchWavs">
</div>
<button class="settingsPromptButton" onclick="closeSettingsAndSave()">OK</button>
</div>
</div>
<div id="previewOverlay" onclick="closePreview()">
<div id="previewPrompt" onclick="event.stopPropagation()">
<span class="title">File Preview</span>
<br>
<span class="filePath">directory/filename.extension</span>
<br>
<span id="loadingPreview">Loading preview</span>
<span id="unsupportedPreview">File type unsupported</span>
<pre id="textPreview"></pre>
<div id="miscPreview"></div>
<button class="previewPromptButton" onclick="closePreview()">Close</button>
<button class="previewPromptButton" onclick="browsePreviewFile()">Browse</button>
</div>
</div>
<button id="patchVPKButton" class="hidden" onclick="openVPKPatchPrompt()">Patch VPK</button>
<div id="patchVPKOverlay" onclick="closeVPKPatchPrompt()">
<div id="patchVPKPrompt" onclick="event.stopPropagation()">
<span class="title">Patch VPK</span>
<br><br>
<b>Replaced files:</b>
<div id="vpkPatchList">
<span>No files replaced</span>
</div>
<br>
<datalist id="vpkExistingPaths"></datalist>
<input id="patchVPKPathInput" list="vpkExistingPaths" placeholder="File path in VPK (e.g. models/error.mdl)" type="text" oninput="updatePatchReplacedFileButton()">
<button class="patchVPKSelectFile" disabled="true" onclick="addPatchReplacedFile()">Select File</button>
<br><br>
<button class="patchVPKCancel" onclick="closeVPKPatchPrompt()">Cancel</button>
<button class="patchVPKOK" onclick="patchVPK()">Patch</button>
</div>
</div>
<div id="patchVPKProgressOverlay">
<div id="patchVPKProgressPrompt">
<span class="title">Patching VPK...</span>
<div class="progressBar indeterminate"><div class="progressDone"></div></div>
<br>
<button class="patchVPKClose hidden" onclick="closeVPKPatch()">Close</button>
</div>
</div>
<script src="script/removeEventListeners.js"></script>
<script src="renderer.js"></script>
</body>
</html>