This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhubWindow.html
428 lines (414 loc) · 23.1 KB
/
hubWindow.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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<!DOCTYPE html>
<html lang="en">
<head>
<!--Font Inclusion-->
<link href="fonts/gotham/style.css" rel="stylesheet">
<link href="fonts/proximaNova/style.css" rel="stylesheet">
<!-- General Hub CSS -->
<link href="HubCSS/hubPalette.css" rel="stylesheet">
<link href="HubCSS/titlebarPalette.css" rel="stylesheet">
<link href="HubCSS/leftSidebarPalette.css" rel="stylesheet">
<link href="HubCSS/rightSidebarPalette.css" rel="stylesheet">
<link href="HubCSS/bottombarPalette.css" rel="stylesheet">
<!-- CSS Sheets for specific panels only -->
<link href="HubCSS/homePanelPalette.css" rel="stylesheet">
<link href="HubCSS/stagePanelPalette.css" rel="stylesheet">
<link href="HubCSS/assetPanelPalette.css" rel="stylesheet">
<link href="HubCSS/groupPanelPalette.css" rel="stylesheet">
<link href="HubCSS/commandPanelPalette.css" rel="stylesheet">
<!--Hub JS Scripts that must be included-->
<script src="hubRemote.js"></script>
<!--The title used by the apps-->
<title>Liquid Pixel Hub</title>
</head>
<body onload="onWindowLoad()">
<!--The globally positioned notifications-->
<div id="notificationCenter">
<!--where the notifications sit to be seen-->
</div>
<!--The top part of the app-->
<div id="topbar">
<!--This is the custom TitleBar and will be transparent-->
<div id="titleitem">
<!--The icon and the name of the app, maybe a build version later on-->
<img id="icon" src="./SvgIcons/CustomBarIcon.png">
<div id="titleTopbar">LpcHub</div>
</div>
<div class="titlebar">
<!--Minimize, Maximize, Close-->
<button class="titlebutton" onclick="minimizeWindow()">0</button>
<button id="maxbutton" class="titlebutton" onclick="maximizeWindow()">1</button>
<button id="closebutton" class="titlebutton" onclick="closeWindow()">r</button>
</div>
</div>
<!--The actaul main content-->
<div id="maincontentwrapper">
<!--This is a wrapper for the middle contents-->
<div id="sidebarleft">
<!--This is the main sidebar that will navigate a filetree layout of functions and windows-->
<div id="sectionHeader">
<input type="radio" id="HomeTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('HomeContentPanel')" checked="true" />
<label id="HomeTabLabel" for="HomeTabCheckbox" class="sectionbutton">
<svg id="HomeSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/home.svg#home"></use>
</svg>
<b id="HomeSectionText" class="sectionbuttontext">Home View</b>
</label>
<input type="radio" id="StageTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('StageContentPanel')" />
<label id="StageTabLabel" for="StageTabCheckbox" class="sectionbutton">
<svg id="StageSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/theater-audience.svg#theater"></use>
</svg>
<b id="StageSectionText" class="sectionbuttontext">Stage View</b>
</label>
<input type="radio" id="AssetTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('AssetContentPanel')" />
<label id="AssetTabLabel" for="AssetTabCheckbox" class="sectionbutton">
<svg id="AssetSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/arduino.svg#arduino"></use>
</svg>
<b id="AssetSectionText" class="sectionbuttontext">Asset Cluster</b>
</label>
<input type="radio" id="GroupTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('GroupContentPanel')" />
<label id="GroupTabLabel" for="GroupTabCheckbox" class="sectionbutton">
<svg id="GroupSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/folder.svg#folder"></use>
</svg>
<b id="GroupSectionText" class="sectionbuttontext">Group Cluster</b>
</label>
<input type="radio" id="CommandTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('CommandContentPanel')" />
<label id="CommandTabLabel" for="CommandTabCheckbox" class="sectionbutton">
<svg id="CommandSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/left-text-alignment-option.svg#lines"></use>
</svg>
<b id="CommandSectionText" class="sectionbuttontext">Commands</b>
</label>
<input type="radio" id="ModeTabCheckbox" class="sectionbuttoncheck"
onchange="onTabChanged('ModeContentPanel')" />
<label id="ModeTabLabel" for="ModeTabCheckbox" class="sectionbutton">
<svg id="ModeSectionIcon" class="sectionimage">
<use class="sectionimage" xlink:href="SvgIcons/contract.svg#mode"></use>
</svg>
<b id="ModeSectionText" class="sectionbuttontext">Mode Creator</b>
</label>
</div>
<!--The Dynamic part of the sidebar-->
<div class="leftSidebarWrapper">
<!--This is a basic command panel in the asset panel so that test commands can be sent-->
<div class="sidePanelCommandConstruction">
<!--Select the specific type of command-->
<select class="sidePanelCommandConstructionTypeSelect" name="typeDropdown" onchange="generateLocalCommand()">
<option value="0">Single Color RGB</option>
<option value="1">Dual Color RGB</option>
</select>
<!--The color pane that allows multiple colors>-->
<div class="sidePanelCommandConstructionColorPane">
<!--The colors for the command-->
<label class="sidePanelCommandConstructionColor" name="colorPicker" onchange="generateLocalCommand()">
<input type="color" style="display: none;"
onchange="this.parentElement.style.backgroundColor = this.value; this.parentElement.style.color = this.value;" />
No Color
</label>
</div>
<!--The mode dropdown-->
<select class="sidePanelCommandConstructionModeSelect" name="modeDropdown" onchange="generateLocalCommand()">
<option value="0">Select Mode</option>
</select>
<!--The delay of the command-->
<input class="sidePanelCommandConstructionDelay" type="text" name="delay"
placeholder="Set Delay (ms)" onchange="generateLocalCommand()">
<!--The generated string-->
<input class="sidePanelCommandConstructionGeneratedString" type="text" name="generated_string"
value="Generated String" readonly="readonly">
</div>
<!--The Command Viewer and searcher-->
<div class="leftSidebarCommandViewer hoverPanelContent">
<div class="leftSidebarCommandViewerCollapse">
Command Playlist
<button class="leftSidebarCommandViewerCollapseButton" onclick="hideOrShow()">
Close
</button>
</div>
<div id="leftSidebarCommandViewerCollapsible">
<!--Where the mircocommands are held-->
</div>
<div class="leftSidebarCommandViewerController">
<div class="leftSidebarCommandViewerControllerProgressHolder">
<div class="leftSidebarCommandViewerControllerOutsideProgress">
<div id="leftSidebarCommandViewerControllerInsideProgress"></div>
</div>
</div>
<button class="leftSidebarCommandViewerControllerOutsideButton"
style="border-bottom-left-radius: 15px; border-top-left-radius: 0px;"
onclick="jumpBackwardInPlaylist()" title="Rewind">
<svg class="leftSidebarCommandViewerControllerOutsideButtonIcon" transform="scale(-1,1)">
<use xlink:href="SvgIcons/fastforward.svg#fast_forward_smaller"></use>
</svg>
</button>
<button class="leftSidebarCommandViewerControllerInsideButton"
onclick="startCommandPlaylistAsync()" title="Start Playlist">
<svg class="leftSidebarCommandViewerControllerInsideButtonIcon">
<use xlink:href="SvgIcons/play.svg#play_smaller"></use>
</svg>
</button>
<button class="leftSidebarCommandViewerControllerOutsideButton"
style="border-bottom-right-radius: 15px; border-top-right-radius: 0px;"
onclick="jumpForwardInPlaylist()" title="Fast Forward">
<svg class="leftSidebarCommandViewerControllerOutsideButtonIcon">
<use xlink:href="SvgIcons/fastforward.svg#fast_forward_smaller"></use>
</svg>
</button>
</div>
</div>
</div>
</div>
<!--The dynamic part of the app-->
<div id="middlecontent">
<div id="writeOnly" class="cautionBar">
<div><b>Warning, this build is experimental!</b></div>
</div>
<!--Dynamic pane to allow for multiple mini panes for summaries and other content that makes sense to show when you open the app-->
<div id="HomeContentPanel" class="middlecontentpanel">
<div id="HomeContentPanelHolder">
<!--The Project tab-->
<div id="GeneralTopBarHome" class="hoverPanelContent grid-project">
<div id="GeneralTopBarHomeProject">
<span id="GeneralTopBarHomeText" style="user-select: none;">No Projects Opened</span>
<button id="projectCreateButton" class="GeneralTopBarHomeProjectButton"
onclick="createProject()">
Create
<br>
Project
</button>
<button id="projectSetButton" class="GeneralTopBarHomeProjectButton" onclick="setProject()">
Set
<br>
Project
</button>
</div>
</div>
<!--The home page update panel-->
<div id="ChangelogHome" class="hoverPanelContent grid-log">
<svg id="ChangelogIcon">
<defs>
<linearGradient id="linear" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#33CA9D" />
<stop offset="100%" stop-color="#638CF8" />
</linearGradient>
</defs>
<use xlink:href="SvgIcons/dragon-fruit.svg#fruit" transform="scale(-1, 1)" x="-115px"
y="15px" height="100px" width="100px"></use>
<text x="60" y="32" transform="scale(2, 2)">The dragon<tspan fill="url(#linear)">FRUIT
</tspan>
<tspan x="70" y="45">update</tspan>
</text>
</svg>
<div id="ChangelogTextWrapper">
<div id="ChangelogText">
</div>
</div>
</div>
<!--Home panel for showing all of the settings in the settings .json, from keybinds to filepaths etc-->
<div class="homeSettings hoverPanelContent grid-settings">
<!--title of the sumamry-->
<div class="homeSettingsTitle">
App Settings:
</div>
<!--the content-->
<div class="homeSettingsContentWrapper">
<div class="homeSettingsContent">
<div class="homeSettingsHeader">
GENERAL
</div>
Save <kbd>Ctrl + S</kbd>
<p class="homeSettingsBreak"></p>
Next tab up <kbd>Shift + Up</kbd>
<p class="homeSettingsBreak"></p>
Next tab down <kbd>Shift + Down</kbd>
<p class="homeSettingsBreak"></p>
Search objects <kbd>Shift + Space</kbd>
<p class="homeSettingsBreak"></p>
Force reload window <kbd>Ctrl + Shift + R</kbd>
<p class="homeSettingsBreak"></p>
Toggle kiosk mode <kbd>F11</kbd>
<div class="homeSettingsHeader">
OBJECT CREATION / MANIPULATION
</div>
Open existing asset <kbd>Shift + A</kbd>
<p class="homeSettingsBreak"></p>
Create new asset <kbd>Shift + Alt + A</kbd>
<p class="homeSettingsBreak"></p>
Open existing group <kbd>Shift + G</kbd>
<p class="homeSettingsBreak"></p>
Create new group <kbd>Shift + Alt + G</kbd>
<p class="homeSettingsBreak"></p>
Open existing command <kbd>Shift + C</kbd>
<p class="homeSettingsBreak"></p>
Create new command <kbd>Shift + Alt + C</kbd>
</div>
</div>
</div>
<!--Home panel for showing small asset summaries-->
<div class="homeAssetSummary hoverPanelContent grid-asset">
<!--title of the sumamry-->
<div class="homeAssetSummaryTitle">
Opened Assets:
</div>
<!-- summary content holder-->
<div id="HomeAssetSummary">
</div>
</div>
<!--Home panel for showing small group summaries-->
<div class="homeGroupSummary hoverPanelContent grid-group">
<!--title of the sumamry-->
<div class="homeGroupSummaryTitle">
Opened Groups:
</div>
<!-- summary content holder-->
<div id="HomeGroupSummary">
</div>
</div>
<!--Home panel for showing small command summaries-->
<div class="homeCommandSummary hoverPanelContent grid-command">
<!--title of the sumamry-->
<div class="homeCommandSummaryTitle">
Opened Commands:
</div>
<!-- summary content holder-->
<div id="HomeCommandSummary">
</div>
</div>
</div>
</div>
<!-- A dedicated Stage panel for the showtime-->
<div id="StageContentPanel" class="middlecontentpanel">
<!-- A stage abstraction-->
<div class="stageTheaterAbstractionContainer">
<div class="hoverPanelContent stageTheaterAbstraction">
<div class="hoverPanelContent stageTheaterAbstractionSection">
</div>
<div class="hoverPanelContent stageTheaterAbstractionSection">
</div>
<div class="hoverPanelContent stageTheaterAbstractionSection">
</div>
</div>
</div>
<!-- The searchbar that allows you to search commands-->
<div class="stageSearchPane hoverPanelContent">
<input class="stageSearchPaneInput" type="text"
oninput="searchOnChange(this.value,'stageSearchPaneResults')" placeholder="Search...">
<div id="stageSearchPaneResults"></div>
</div>
</div>
<!--The Dedicated Asset panel meant for only assets and the add/ remove asset buttons-->
<div id="AssetContentPanel" class="middlecontentpanel">
<div id="GeneralTopBarAsset" class="hoverPanelContent">
<button type="button" id="StickyBarAssetButton" onclick="createAssetDialog()">
Create Asset
</button>
<button type="button" id="StickyBarAssetButton" onclick="openAssetDialog()">
Open Asset
</button>
</div>
<!--A flexbox that hold all of the assets-->
<div id="assetPanelAssetHolder">
<!--The data of the assets-->
</div>
</div>
<!--The Dedicated Group panel meant for only groups and the add/ remove groups buttons-->
<div id="GroupContentPanel" class="middlecontentpanel">
<!--The header of the group tab- meant for overall commands-->
<div id="GeneralTopBarGroup" class="hoverPanelContent">
<button type="button" id="StickyBarGroupButton" onclick="createGroupDialog()">
Create Group
</button>
<button type="button" id="StickyBarGroupButton" onclick="openGroupDialog()">
Open Group
</button>
</div>
<!--A flexbox designed to hold all groups-->
<div id="groupPanelGroupHolder">
<!--The data of the groups-->
</div>
</div>
<!--The Panel where all commands made will be stored, there will also be an autosaved file-->
<div id="CommandContentPanel" class="middlecontentpanel">
<div class="hoverPanelContent commandTopStickyBar">
<div class="commandTopBarCurrentCommand">
#NULL
</div>
<button type="button" class="StickyBarCommandButtonPlaylist" onclick="jumpBackwardInPlaylist()"
title="Rewind">
<svg class="StickyBarCommandButtonIcon" transform="scale(-1,1)">
<use xlink:href="SvgIcons/fastforward.svg#fast_forward"></use>
</svg>
</button>
<button type="button" class="StickyBarCommandButtonPlaylist" onclick="startCommandPlaylistAsync()"
title="Start Playlist">
<svg id="viewableCommandControlPaneSendIcon">
<use xlink:href="SvgIcons/play.svg#play"></use>
</svg>
</button>
<button type="button" class="StickyBarCommandButtonPlaylist" onclick="jumpForwardInPlaylist()"
title="Fast Forward">
<svg class="StickyBarCommandButtonIcon">
<use xlink:href="SvgIcons/fastforward.svg#fast_forward"></use>
</svg>
</button>
<button type="button" class="StickyBarCommandButton" onclick="openCommandDialog()">
Open
<br>
Command
</button>
<button type="button" class="StickyBarCommandButton" onclick="createCommandDialog()">
Create
<br>
Command
</button>
</div>
<!--The command data shown-->
</div>
<!-- This tab for will be for creating shader like modes that can act on certain properties-->
<div id="ModeContentPanel" class="middlecontentpanel">
MODE TEXT YES
</div>
</div>
<!--The sidebar that shows all of the assets-->
<div id="sidebarright">
<!--This is for temp testing and maybe other customizable information-->
<div id="RightPanelAssetHolder" class="rightpanelbuttonholder">
<p class="RightPanelSectionHeader">-ALL ASSETS-</p>
</div>
<div id="RightPanelGroupHolder" class="rightpanelbuttonholder">
<p class="RightPanelSectionHeader">-ALL GROUPS-</p>
</div>
<div id="RightPanelCommandHolder" class="rightpanelbuttonholder">
<p class="RightPanelSectionHeader">-ALL COMMANDS-</p>
</div>
</div>
</div>
<!--The bottom part of the app-->
<div id="bottombar">
<!--This is the bottom bar that will be used for notifications and quickaccess-->
<button class="bottomBarButton rightBottomBarButton">
notifications
</button>
<button class="bottomBarButton rightBottomBarButton" id="updateEntireAppButton" onclick="quitAndUpdate()">
updates disabled
</button>
<button class="bottomBarButton leftBottomBarButton" onclick="regeneratePanels()">
refresh
</button>
<button class="bottomBarButton leftBottomBarButton" onclick="purgeAllObjects()">
purge
</button>
<button class="bottomBarButton leftBottomBarButton" id="saveEntireAppButton" onclick="globalSave()">
save
</button>
</div>
</body>
</html>