-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (145 loc) · 6.12 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta charset="utf-8"/>
<title>Untold Stories Mission Editor</title>
<meta name="description" content="Web frontend for making The Secret World missions for the Untold Stories mod."/>
<meta name="google-site-verification" content="Wo3u_Vh9YUkuRSC4JpkZfp1vR7VVk3JzJlRx3eOlCYQ" />
<link type="text/css" rel="stylesheet" href="lib/select2/select2.min.css"/>
<link type="text/css" rel="stylesheet" href="lib/materialize/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="lib/bootstrap/bootstrap-custom.css"/>
<link type="text/css" rel="stylesheet" href="lib/bootstrap/bootstrap-contextmenu.css"/>
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script type="text/javascript" src="lib/jquery/jquery-1.12.1.min.js"></script>
<script type="text/javascript" src="lib/jquery/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="lib/knockout/knockout-3.4.0.min.js"></script>
<script type="text/javascript" src="lib/knockout/knockout-custom.js"></script>
<script type="text/javascript" src="lib/bootstrap/bootstrap-contextmenu.js"></script>
<script type="text/javascript" src="lib/select2/select2.min.js"></script>
<script type="text/javascript" src="lib/materialize/materialize.min.js"></script>
<script type="text/javascript" src="lib/marknote/marknote.js"></script>
<script type="text/javascript" src="lib/filesaver/blob.js"></script>
<script type="text/javascript" src="lib/filesaver/filesaver.min.js"></script>
<script type="text/javascript" src="js/playfields.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/init.js"></script>
</head>
<body>
<noscript>
<style type="text/css">
#page-container { display: none; }
</style>
<h1 class="center-align">You don't have javascript enabled!</h1>
<h3 class="center-align">This site is built entirely in javascript. You must enable it to use this site.</h3>
</noscript>
<div id="page-container" class="container">
<div class="card-panel z-depth-3">
<!-- HEADER -->
<div class="row">
<div id="project_title" class="col m5">
<div class="card-panel teal lighten-1 z-depth-2">
<span class="white-text">Untold Stories Mission Editor<sup>v1.4</sup></span>
</div>
</div>
<div class="input-field col m7">
<label for="missionTitle">Mission Title</label>
<input id="missionTitle" type="text" data-bind="textInput: missionTitle"></input>
<div class="hint">The title of the mission (mandatory).</div>
</div>
</div>
<div class="row">
<div class="col m2">
<div class="switch">
<label>
<input id="debugMode" type="checkbox" data-bind="checked: debugMode">
<span class="lever"></span>
<span class="nowrap">Debug Mode</span>
</label>
</div>
</div>
<div id="debugTier" class="col m3">
<label>Debug Tier:</label>
<select data-bind="
options: userTiers,
optionsValue: 'index',
optionsText: function(item) { return item.index() + '. ' + item.text; },
value: debugTier">
<option value=""></option>
</select>
</div>
<div class="col m7">
<input id="fileBrowser" type="file" style="display: none;" data-bind="event: { change: readFileContents }" />
<button type="button" class="btn waves-effect waves-light" data-bind="
click: function() { $('#fileBrowser').click(); }">
Import
</button>
<button type="button" class="btn waves-effect waves-light" style="margin-left: 10px;" data-bind="click: exportToFile">Export</button>
</div>
</div>
<hr class="soften" />
<!-- /HEADER -->
<!-- TIERS -->
<div class="row">
<div class="col m10">
<!-- ko ifnot: userTiers().length -->
<p class="teal-text lighten-1">Add tiers...</p>
<!-- /ko -->
<ul id="tiersList" class="nav nav-pills">
<!-- ko foreach: userTiers -->
<li role="presentation" class="context-menu"
data-bind="event: { contextmenu: $root.contextMenuShown }, click: $root.changeTier">
<a href="#" data-bind="text: index() + '. ' + text"></a>
</li>
<!-- /ko -->
</ul>
</div>
<div class="col m2">
<a class="btn dropdown-button" data-activates="tiers-dropdown" data-beloworigin="true">
<i class="mdi-navigation-arrow-drop-down right"></i>Add Tier
</a>
<ul id="tiers-dropdown" class="dropdown-content">
<!-- ko foreach: tiers -->
<li><a href="#" data-bind="text: $data, click: $root.addTier"></a></li>
<!-- /ko -->
</ul>
</div>
</div>
<hr class="soften" />
<!-- /TIERS -->
<!-- TIER CONTENT -->
<!-- ko if: selectedTier -->
<div id="tierContent" data-bind="template:
{
name: selectedTier().text.toLowerCase().replace(' ', '_') + '_template',
data: selectedTier().tierData,
afterRender: function() {
$('input[type=text]').change();
$('select').material_select();
$('.select2').select2({placeholder: '', allowClear: true});
}
}">
</div>
<!-- /ko -->
<!-- /TIER CONTENT -->
</div>
<!-- FOOTER -->
<span class="pull-left text-muted small">Mission Editor by Solon.</span>
<span class="pull-right text-muted small">Big thanks to Super Jenius for the Untold Stories mod.</span>
<!-- /FOOTER -->
</div>
<!-- CONTEXT MENU -->
<div id="context-menu">
<ul class="dropdown-menu" role="menu">
<li id="moveLeft"><a href="#" tabindex="-1"><i class="mdi-navigation-arrow-back"></i> Move Left</a></li>
<li id="moveRight"><a href="#" tabindex="-1"><i class="mdi-navigation-arrow-forward"></i> Move Right</a></li>
<li id="deleteTier"><a href="#" tabindex="-1"><i class="material-icons red-text" style="font-size: 14px;">delete_forever</i> Delete</a></li>
</ul>
</div>
<!-- /CONTEXT MENU -->
<!-- TEMPLATES CONTAINER -->
<div id="templates-container"></div>
<!-- /TEMPLATES CONTAINER -->
</body>
</html>