-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
201 lines (165 loc) · 6.45 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Easy Peasy Brownie Oven v.00000000001 pre-alpha</title>
<meta charset="utf-8">
<link rel="stylesheet" href="assets/flaticon.css">
<link rel="stylesheet" href="assets/style.css">
</head>
<body class="hbox">
<div class="vbox" style="height: 100%; width: 43px; background-color: #222;">
<ul id="fileMenu" class="fileMenu vbox">
<li><i class="newBrownieIcon flaticon-add26"></i></li>
<li><i class="openBrownieIcon flaticon-folder63"></i></li>
<li><i class="configureBrownieIcon flaticon-tools3"></i></li>
</ul>
<div class="hr"></div>
<ul class="fileMenu vbox">
<li><i class="undoIcon disabled flaticon-undo12"></i></li>
<li><i class="redoIcon disabled flaticon-redo11"></i></li>
</ul>
<div class="hr"></div>
<ul class="fileMenu vbox">
<li><i class="workspaceToggleIcon" style="font-style: normal;">!!!</i></li>
</ul>
<div class="hr"></div>
<div id="toolbox" class="toolbox vbox">
<!-- tools are inserted here -->
</div>
</div>
<div class="hbox" style="width: calc(100% - 43px); height: 100%;">
<div id="toolProperties" class="toolProperties"></div>
<div id="workspace" class="hbox workspace" style=""></div>
</div>
<!-- TEMPLATES -->
<script type="text/template" id="simpleLayoutTemplate" class="panel">
<div id="sliceEditor" class="sliceEditor" style="width: 50%;"></div>
<div id="brownieViewer" class="brownieViewer panel" style="width: 50%;"></div>
</script>
<script type="text/template" id="scriptLayoutTemplate">
<div style="width: 50%; height: 100%;" class="panel">
<div class="titleBar" style="justify-content: flex-end;">
<span class="title">Script Editor</span>
<button id="clearRender" class="btn" style="display: inline-block;">Clear and Render</button>
<button id="render" class="btn" style="display: inline-block;">Render</button>
</div>
<div id="scriptEditor" style="width: 100%; height: 100%;"></div>
</div>
<div id="brownieViewer" class="brownieViewer panel" style="width: 50%;"></div>
</script>
<script type="text/template" id="brushToolTemplate">
<!--
<label>Size</label>
<input type="number" min="1" max="5" value="1">
<br>
<label>Shape</label>
<select>
<option value="square">Block</option>
<option value="round">Round</option>
</select>
<br>-->
<label>Palette</label>
<select>
<option value="NESBasic">NES Basic</option>
<option value="simple">Simple</option>
</select>
<br>
<div class="hr"></div>
<div id="currentColor" class="currentColor" style="background-color: {{model.currColor}};"></div>
<div id="colorPalette" class="colorPalette hbox">{{model.colorPaletteHTML}}</div>
</script>
<script type="text/template" id="newBrownieTemplate">
<div class="formSectionLabel">Name Your Brownie</div>
<input class="name" type="text">
<br>
<div class="formSectionLabel">Configure Your Brownie</div>
<div class="hbox">
<div style="margin-right: 16px; flex-grow: 1;">
<label>Width</label>
<input class='width size' type='number' min='1' max='50' value='24'>
</div>
<div style="margin-right: 16px; flex-grow: 1;">
<label>Height</label>
<input class='height size' type='number' min='1' max='50' value='24'>
</div>
<div style="flex-grow: 1;">
<label>Depth</label>
<input class='depth size' type='number' min='1' max='50' value='24'>
</div>
</div>
</script>
<script type="text/template" id="loadBrownieTemplate">
<style>
.brownieList li {
padding: 8px;
cursor: pointer;
border-bottom: dotted 1px #CCC;
}
.brownieList li:hover {
background-color: #CCC;
}
.brownieList li.selected {
background-color: #4CE806;
}
</style>
<div class="formSectionLabel">Load a Brownie</div>
<ul class="brownieList">{{getLocalBrownies}}</ul>
<br>
<div class="formSectionLabel">Import a Brownie</div>
<textarea class="import" placeholder="Paste that baby right here"></textarea>
</script>
<script type="text/template" id="configureBrownieTemplate">
<div class="formSectionLabel">Rename Your Brownie</div>
<input class="name" type="text" value="{{getBrownieName}}">
<br>
<div class="formSectionLabel">Brownie Export Data</div>
<textarea disabled>{{getBrownieData}}</textarea>
</script>
<script type="text/template" id="brownieViewerControlsTemplate">
<div class="statusBar">
<input type="checkbox" class="showSlice" {{shouldShowSlice}}> <label class="label">Highlight Slice</label>
<label>Rotate:</label>
<input type="checkbox" class="rotateX" {{shouldRotateX}}> <label class="label">X</label>
<input type="checkbox" class="rotateY" {{shouldRotateY}}> <label class="label">Y</label>
<input type="checkbox" class="rotateZ" {{shouldRotateZ}}> <label class="label">Z</label>
<a href="#" class="resetRotation">reset</a>
<div style="float:right">
<label>Material</label>
<select class="materialSelect">
{{generateMaterialOptions}}
</select>
</div>
</div>
</script>
<script type="text/template" id="sliceEditorControlsTemplate">
<div class="statusBar">
<span class="label">slice: </span><span>{{model._slice}}</span>
<label class="label">onion skin:</label>
<select class="onionSkinSelect">
{{generateOnionOptions}}
</select>
</div>
</script>
<script src="lib/three.js"></script>
<script src="lib/brownie.js"></script>
<script src="lib/ace.js"></script>
<script src="lib/mode-javascript.js"></script>
<script src="lib/worker-javascript.js"></script>
<script src="lib/theme-monokai.js"></script>
<script src="lib/Object.observe.poly.js"></script>
<script src="js/eventEmitterMixin.js"></script>
<script src="js/ViewModel.js"></script>
<script src="js/Modal.js"></script>
<script src="js/UndoQueue.js"></script>
<script src="js/BrownieModel.js"></script>
<script src="js/BrownieViewer.js"></script>
<script src="js/Toolbox.js"></script>
<script src="js/BrushTool.js"></script>
<script src="js/PanTool.js"></script>
<script src="js/ZoomTool.js"></script>
<script src="js/EraserTool.js"></script>
<script src="js/SliceEditor.js"></script>
<script src="js/BrownieOven.js"></script>
<script src="js/app.js"></script>
</body>
</html>