-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeighborContinentsInputForm.html
More file actions
71 lines (51 loc) · 2.28 KB
/
NeighborContinentsInputForm.html
File metadata and controls
71 lines (51 loc) · 2.28 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" src="/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="WGAME.js"></script>
<script type="text/javascript">
function passString(form) {
var CmdString = "ContinentsByNeighbors;";
CmdString += cmdStringFromTerritorySetForm("Base");
CmdString += cmdStringFromTerritorySetForm("Neighbor");
CmdString += cmdStringFromNewContinentForm("New");
CmdString += form.neighborDistance.value;
CmdString +=";";
CmdString += form.factoryTarget.value;
CmdString +=";";
CmdString += cmdStringDCFromTerritorySetForm("Base");
CmdString += cmdStringDCFromTerritorySetForm("Neighbor");
//alert(CmdString);
window.opener.addToCmdString(CmdString);
}
</script>
<link rel="stylesheet" type="text/css" href="WGMapEditorStyles.css" />
</head>
<body style="width:450px">
<h1>Add Contents by Neighbors</h1>
<h3><a href="https://sites.google.com/a/prestopnik.com/wgame/documentation/add-continents-based-on-neighbors">ONLINE DOCUMENTATION FOR THIS FORM</a></h3>
<h1>How To Use</h1>
<p>
Define two sets of territories below: "Base" territories & "Neighbor" territories. For every "Base" territory a continent will be created. The members of the continent will be the "Base" territory, as well as any other territories in the "Neighbors" set that are within range.
</p>
<form action="#" style="width: 450px;">
<div class="TerritoriesSetInput" id="Base"></div>
<div class="WGFormElementSeperator"></div>
<div class="TerritoriesSetInput" id="Neighbor"></div>
<div class="NewContinentInput" id="New"></div>
<div style="height: 20px;" ></div>
<div style="font-size:130%;">Max Distance for Neighbors:<input type="text" name="neighborDistance" value="1" /></div>
<div style="height:15px;" ></div>
<div style="font-size:75%" class="alert">
Leave empty for a non-factory continent.<br />
Enter "base" to use continent base territory for the factory.<br />
Enter a number to use a territoryID for the factory.<br />
</div>
<div style="font-size:130%;">Factory Target:<input type="text" name="factoryTarget" value="" /></div>
<br />
<hr>
<p><input type=button onClick="passString(this.form)" value="Add Continents!" /></p>
</form>
</body>
</html>