-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
148 lines (125 loc) · 3.39 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
<!DOCTYPE html>
<html>
<head>
<title>Escape Room Builder + UI NEEDS A LOT OF HELP</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
#properties div {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
#properties label {
margin-right: 10px;
}
#properties input {
flex-grow: 1;
}
#explorer button {
display: block;
width: 100%;
margin-bottom: 10px;
}
#menu-bar {
background-color: #f0f0f0;
padding: 10px;
display: flex;
}
#menu-bar button {
margin-right: 10px;
}
#left-panel, #right-panel {
background-color: #f5f0f0;
padding: 10px;
width: 20%;
}
#explorer, #properties {
margin-bottom: 10px;
padding: 10px;
height: 200px;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
float: right;
}
#canvas {
border: 1px solid #000;
}
</style>
</head>
<body>
<div id="menu-bar">
<button id="play">Play Test</button>
<button id="stop">Stop Test</button>
<!--<button id="undoid">Undo</button>
<button id="redoid">Redo</button> -->
<button id="newblockid">Create Block</button>
<button id="deleteblockid">Delete Block</button>
<button id="save">Save</button>
<input type="file" id="fileInput" accept=".json" style="display: none;">
<button id="loadButton">Load</button>
<!--<input type="file" id="import" /> -->
<!--
<button>Insert Image</button>
<button>Scale</button>
<button>Move</button>
<button>Rotate</button>
-->
</div>
<div id="left-panel">
<button>Add Click Detector</button>
</div>
<div id="right-panel">
<p>Explorer</p>
<div id="explorer" style="overflow-y: scroll;">
</div>
<p>Properties</p>
<div id="properties" style="overflow-y: scroll;">
</div>
</div>
<div class="container">
<canvas id="canvas" width="800" height="600"></canvas>
</div>
<div id="Editor">
<p>General Script</p>
<pre id = "textarea" contenteditable>
1. Type ur code in js
2. Choose sprite to save to
3. Choose sprite to load script from
</pre>
<button id="saveto">Save To</button>
<button id="loadfrom">Load From</button>
</div>
<div id="Editor">
<p>Forever Looped Script</p>
<pre id = "textareaforever" contenteditable>
1. Type ur code in js
2. Choose sprite to save to
3. Choose sprite to load script from
</pre>
<button id="savetoforever">Save To</button>
<button id="loadfromforever">Load From</button>
</div>
<div id="OnclickEditor">
<p>Onclick Do</p>
<pre id = "onclicktextarea" contenteditable>
1. Type ur code in js
2. Choose sprite to save to
3. Choose sprite to load script from
</pre>
<button id="savetoclick">Save To</button>
<button id="loadfromclick">Load From</button>
</div>
<script type="module" src="app.js"></script>
</body>
</html>