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:
oskar.wiksten
2010-12-20 20:51:42 +00:00
parent c89d0b1d9e
commit 881bb30f7d
5 changed files with 144 additions and 2 deletions

View File

@@ -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">

View 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>

View File

@@ -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) {

View 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>

View 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>