-
Notifications
You must be signed in to change notification settings - Fork 11
/
editor.html
118 lines (106 loc) · 4.74 KB
/
editor.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 lang='en'>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Krisztián Nagy"/>
<title>Interstellar Armada editor</title>
<link href="css/editor.css" rel="stylesheet" type="text/css"/>
<link href="assets/images/favicon.ico" type="image/x-icon" rel="shortcut icon"/>
</head>
<body>
<div id="items" class="window">
<div class="windowTitle">Items</div>
<div class="windowToolbar">
<button type="button" id="backButton" class="toolbarButton" disabled><</button>
<button type="button" id="forwardButton" class="toolbarButton" disabled>></button>
<button type="button" id="newItemButton" class="toolbarButton">New</button>
<button type="button" id="exportButton" class="toolbarButton">Export</button>
<button type="button" id="importButton" class="toolbarButton">Import</button>
</div>
<div class="windowContent">
<div class="windowLabel">loading...</div>
</div>
</div>
<div id="preview" class="window">
<div class="windowTitle">Preview</div>
<div class="windowContent">
<div id="previewOptions" hidden></div>
<div id="previewDiv" hidden>
<canvas id="previewCanvas" hidden>
</canvas>
<div id="previewTooltip" hidden></div>
</div>
<div id="previewInfo" hidden></div>
<div class="windowLabel">loading...</div>
</div>
</div>
<div id="properties" class="window">
<div class="windowTitle">Properties</div>
<div class="windowContent">
<div class="windowLabel">loading...</div>
</div>
</div>
<div id="newItemDialog" class="dialog" hidden>
<div class="dialogEntry">
<span class="dialogLabel">Item type:</span>
<select id="newItemType"></select>
</div>
<div id="newItemCategoryContainer" class="dialogEntry">
<span class="dialogLabel">Category:</span>
<select id="newItemCategory"></select>
</div>
<div class="dialogEntry">
<span class="dialogLabel">Copy from:</span>
<select id="newItemBase"></select>
</div>
<div class="dialogEntry">
<span class="dialogLabel">Name:</span>
<input type="text" id="newItemName" value=""/>
</div>
<div id="newItemDialogFiller" class="dialogEntry">
<span class="dialogLabel"> </span>
</div>
<div class="dialogButtonRow">
<button type="button" id="newItemCreate">Create</button>
<button type="button" id="newItemCancel">Cancel</button>
</div>
</div>
<div id="exportDialog" class="dialog" hidden>
<div class="dialogEntry">
<span class="dialogLabel">Item type:</span>
<select id="exportType"></select>
</div>
<div class="dialogEntry" id="exportNameContainer">
<span class="dialogLabel">Name:</span>
<input type="text" id="exportName" value="classes"/>
</div>
<div class="dialogEntry" id="exportItemContainer">
<span class="dialogLabel">Item:</span>
<select id="exportItem"></select>
</div>
<div class="dialogEntry">
<span class="dialogLabel">Author:</span>
<input type="text" id="exportAuthor" value="Krisztián Nagy"/>
</div>
<div class="dialogButtonRow">
<button type="button" id="exportExport">Export</button>
<button type="button" id="exportCancel">Cancel</button>
</div>
</div>
<div id="importDialog" class="dialog" hidden>
<div class="dialogEntry">
<span class="dialogLabel">Item type:</span>
<select id="importType"></select>
</div>
<div class="dialogEntry">
<span class="dialogLabel">File:</span>
<input type="file" id="importFile" accept="application/json"/>
</div>
<div class="dialogButtonRow">
<button type="button" id="importImport">Import</button>
<button type="button" id="importCancel">Cancel</button>
</div>
</div>
<script data-main="js/editor-main.js" src="assets/libs/require.js"></script>
</body>
</html>