-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeighborContinetsInputForm.html~
More file actions
71 lines (56 loc) · 2.56 KB
/
NeighborContinetsInputForm.html~
File metadata and controls
71 lines (56 loc) · 2.56 KB
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
<html>
<head>
<title>Wargear Map XML Editor</title>
<script type="text/javascript" src="/js/jquery-1.7.2.js/"></script>
<script type="text/javascript">
function showHordesBonusExplanation()
{
alert("The number of units a player will get for controlling this continent");
}
function showHordesContSuffixExplanation()
{
alert("This is added to the base territory name to get the continent name")
}
function showBaseRegexExplanation()
{
alert("Only territorires that match this regex will have continents added. Usually this is just a substring that is in all continents you want to include. See the thread on the wargear forums for more details and examples.")
}
function showNeighborRegexExplanation()
{
alert("Only neighbors that match this regex will be members of the new continents. Usually this is just a substring that is in all continents you want to include. See the thread on the wargear forums for more details and examples.")
}
function passHordesString(form) {
var hordesCmdString = "hordify ";
hordesCmdString += form.hordesBonus.value;
hordesCmdString +=" ";
hordesCmdString += form.hordesContinentSuffix.value;
hordesCmdString +=" ";
hordesCmdString += form.baseRegex.value;
hordesCmdString +=" ";
hordesCmdString += form.neighborRegex.value;
//alert(hordesCmdString);
if (form.hordesBonus.value != "0" && form.hordesBonus.value != "")
window.opener.addToCmdString(hordesCmdString);
}
</script>
<link rel="stylesheet" type="text/css" href="WGMapEditorStyles.css" />
</head>
<body>
<p>
<form action="#">
<h3>Hordify</h3>
<dl class="WGForm">
<dt><label for="hordesBonus">hordesBonus:</label><span align=right style="color:red;cursor:help" onClick="showHordesBonusExplanation()">?</span></dt>
<dd><input type="text" name="hordesBonus" value="0" /></dd>
<dt><label for="hordesContinentSuffix">hordesContinentSuffix:</label><span align=right style="color:red;cursor:help" onClick="showHordesContSuffixExplanation()">?</span></dt>
<dd><input type="text" name="hordesContinentSuffix" value="" /></dd>
<dt><label for="baseRegex">baseRegex:</label><span align=right style="color:red;cursor:help" onClick="showBaseRegexExplanation()">?</span></dt>
<dd><input type="text" name="baseRegex" value=".*" /></dd>
<dt><label for="neighborRegex">neighborRegex:</label><span align=right style="color:red;cursor:help" onClick="showNeighborRegexExplanation()">?</span></dt>
<dd><input type="text" name="neighborRegex" value=".*" /></dd>
</dl>
<hr>
<p><input type=button onClick="passHordesString(this.form)" value="Add Hordes!" /></p>
</form>
</body>
</html>