mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Version 0.6.7 . Merged from local r76 .
git-svn-id: https://andors-trail.googlecode.com/svn/trunk@22 08aca716-68be-ccc6-4d58-36f5abd142ac
This commit is contained in:
@@ -1 +1 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
46
AndorsTrailEdit/editdroplists.html
Normal file
46
AndorsTrailEdit/editdroplists.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
|
||||
<link href="styles.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="editor.js"></script>
|
||||
<title>Droplist Editor</title>
|
||||
<script type="text/javascript">
|
||||
var imagepath = "../AndorsTrail/res/drawable/";
|
||||
var tileimages = [];
|
||||
var fields = [
|
||||
{ name: "Droplist", type: "text" }
|
||||
, { name: "ItemTag", type: "text" }
|
||||
, { name: "Frequency", type: "select", values: [ "Always:100", "Often:70", "Animalpart:30", "Seldom:25", "VerySeldom:5", "Unique:1" ]}
|
||||
, { name: "Quantity", type: "range" }
|
||||
];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="editarea">
|
||||
Items:<br />
|
||||
<div id="inputarea">
|
||||
<table id="datatable" cellspacing="0">
|
||||
<thead>
|
||||
<tr id="headerrow"> </tr>
|
||||
</thead>
|
||||
<tbody id="datarows">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="buttons"> </div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="output">
|
||||
<textarea id="result" cols="80" rows="10">serialized output goes here</textarea>
|
||||
</div>
|
||||
<div id="invisible"></div>
|
||||
<div id="selecticon_dialog" title="Select image">
|
||||
<div id="selecticon_dialog_tileset"> </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -36,7 +36,9 @@ function parseLine(_, line) {
|
||||
return;
|
||||
}
|
||||
for (var i = 0; i < match.length; i++) {
|
||||
fields[parse_fieldDef[i]].value = match[i].replace(/\|/, '');
|
||||
if (parse_fieldDef[i] >= 0) {
|
||||
fields[parse_fieldDef[i]].value = match[i].replace(/\|/, '');
|
||||
}
|
||||
}
|
||||
addRow();
|
||||
}
|
||||
@@ -47,6 +49,7 @@ function parseFieldDef(str) {
|
||||
if (fielddef && fielddef.length >= 1) {
|
||||
fielddef = fielddef[0].match(/(.*?)\|/gm);
|
||||
for (var i = 0; i < fielddef.length; i++) {
|
||||
parse_fieldDef[i] = -1;
|
||||
var fieldname = fielddef[i].replace(/[\[\]\|]/g, '');
|
||||
for (var j = 0; j < fields.length; j++) {
|
||||
if (fields[j].name == fieldname) {
|
||||
|
||||
47
AndorsTrailEdit/editquestlogs.html
Normal file
47
AndorsTrailEdit/editquestlogs.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
|
||||
<link href="styles.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="editor.js"></script>
|
||||
<title>Quest Log Editor</title>
|
||||
<script type="text/javascript">
|
||||
var imagepath = "../AndorsTrail/res/drawable/";
|
||||
var tileimages = [];
|
||||
var fields = [
|
||||
{ name: "QuestID", type: "longtext" }
|
||||
, { name: "Progress", type: "int" }
|
||||
, { name: "LogText", type: "multiline" }
|
||||
, { name: "RewardExp", type: "int" }
|
||||
, { name: "ResolvesQuest", type: "select", values: [ "No:0", "Yes:1" ]}
|
||||
];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="editarea">
|
||||
Items:<br />
|
||||
<div id="inputarea">
|
||||
<table id="datatable" cellspacing="0">
|
||||
<thead>
|
||||
<tr id="headerrow"> </tr>
|
||||
</thead>
|
||||
<tbody id="datarows">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="buttons"> </div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="output">
|
||||
<textarea id="result" cols="80" rows="10">serialized output goes here</textarea>
|
||||
</div>
|
||||
<div id="invisible"></div>
|
||||
<div id="selecticon_dialog" title="Select image">
|
||||
<div id="selecticon_dialog_tileset"> </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
46
AndorsTrailEdit/editquests.html
Normal file
46
AndorsTrailEdit/editquests.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
|
||||
<link href="styles.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="editor.js"></script>
|
||||
<title>Quest Editor</title>
|
||||
<script type="text/javascript">
|
||||
var imagepath = "../AndorsTrail/res/drawable/";
|
||||
var tileimages = [];
|
||||
var fields = [
|
||||
{ name: "ID", type: "text" }
|
||||
, { name: "Name", type: "longtext" }
|
||||
, { name: "DisplayText", type: "multiline" }
|
||||
, { name: "ShowInLog", type: "select", values: [ "Yes:1", "No:0" ]}
|
||||
];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="editarea">
|
||||
Items:<br />
|
||||
<div id="inputarea">
|
||||
<table id="datatable" cellspacing="0">
|
||||
<thead>
|
||||
<tr id="headerrow"> </tr>
|
||||
</thead>
|
||||
<tbody id="datarows">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="buttons"> </div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="output">
|
||||
<textarea id="result" cols="80" rows="10">serialized output goes here</textarea>
|
||||
</div>
|
||||
<div id="invisible"></div>
|
||||
<div id="selecticon_dialog" title="Select image">
|
||||
<div id="selecticon_dialog_tileset"> </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user