forked from virtual-world-framework/mars-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.vwf.html
85 lines (75 loc) · 3.21 KB
/
editor.vwf.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
<!--
Copyright 2014 Lockheed Martin Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Scripts -->
<script type="text/javascript" src="editor/view/vwfCommunication.js"></script>
<script type="text/javascript" src="editor/view/editorUI.js"></script>
<script type="text/javascript" src="editor/view/tilemapTool.js"></script>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="editor/view/editorUI.css"></link>
<!-- HTML -->
<!-- Menu Strip -->
<div id="menu" class="menuStrip">
<div id="file" class="dropWrapper">
<div id="fileButton" class="button">File</div>
<div id="fileMenu" class="dropMenu">
<div id="newButton" class="button">New</div>
<div id="saveButton" class="button">Save</div>
<div id="loadButton" class="button">Load</div>
</div>
</div>
<div id="edit" class="dropWrapper">
<div id="editButton" class="button">Edit</div>
<div id="editMenu" class="dropMenu">
<div id="objectButton" class="button">Add Object</div>
<div id="timeButton" class="button">Set Time of Day</div>
</div>
</div>
<div id="tools" class="dropWrapper">
<div id="toolsButton" class="button">Tools</div>
<div id="toolsMenu" class="dropMenu">
<div id="scenarioButton" class="button">Scenario</div>
<div id="heightmapButton" class="button">Heightmap</div>
<div id="tilemapButton" class="button">Tilemap</div>
</div>
</div>
</div>
<!-- Tilemap UI -->
<div id="tilemapWrapper">
<div id="tilemapInput">
<div class="titleBar">Tilemap Editor</div>
<div id="tilemapCloseButton" class="button">×</div>
<div id="tilemapInputBody">
<div id="tilemapSizeSelector">
<div class="label">Tilemap Size: </div>
<select id="tilemapSize" class="inline">
<option value="64">64 x 64</option>
<option value="128">128 x 128</option>
<option value="256">256 x 256</option>
</select>
</div>
<div id="tilemapOriginInput">
<div class="label">Origin X: </div>
<input id="tilemapOriginX" type="text" maxlength="4" class="inline"></input>
<div class="label">Y: </div>
<input id="tilemapOriginY" type="text" maxlength="4" class="inline"></input>
</div>
<div id="tilemapUpdateButton" class="button">Update</div>
</div>
</div>
<div id="tilemapPreview">
<div id="tilemapPreviewTitle" class="titleBar">Tilemap Preview</div>
<div id="tilemapCanvasWrapper">
<canvas id="tilemapCanvas"></canvas>
</div>
</div>
</div>