-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditorTroop.html
More file actions
153 lines (126 loc) · 8.76 KB
/
Copy patheditorTroop.html
File metadata and controls
153 lines (126 loc) · 8.76 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PseudoRandom - Troop Editor </title>
<!-- p5
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script> -->
<!-- local p5 -->
<script language="javascript" type="text/javascript" src="local dependencies/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="local dependencies/p5.dom.min.js"></script>
<!-- FONTS -- IRRELEVANT IN LOCAL-->
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">
<!-- Pure CSS
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">-->
<!-- Local Pure CSS-->
<link rel="stylesheet" href="local dependencies/purecss.css">
<link href="./style/main.css" rel="stylesheet" />
<link href="./style/editorTroop.css" rel="stylesheet" />
</head>
<body>
<header>
<h4 class="headerItem" onclick="window.location.href = `${SERVER}index.html`" >PseudoRandom</h4>
<p class="headerItem" onclick="window.location.href = `${SERVER}editorEncounter.html`">Encounter Editor</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}editorTroop.html`">Troop Editor</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}game.html`">Game</p>
<p class="headerItem" onclick="window.location.href = `${SERVER}campaignStart.html`">Campaign</p>
</header>
<div id="page_content" >
<div id="troopCreationMenu">
<input type="submit" value="Troop Tab" id="troopTabToggle" onclick="toggleTroopTab(this.id)" style="text-decoration: underline;" /> <br/>
<input type="submit" value="Actions Tab" id="actionsTabToggle" onclick="toggleTroopTab(this.id)"/> <br/>
<input value="Save Troop" type="submit" onclick="sendData();" style="background-color: rgb(250,180,60); margin-top:2rem; color:rgb(50,50,50)" />
</div>
<div id="troopCreation">
<p id="explanations" style="grid-column: 1/-1; padding-left:2rem;"><b style="font-size:1.3rem; text-decoration: underline;">Troop Creation</b></p>
<p> Clone existing Troop </p><select id="edit" onchange="writeTroop(this.value)"> <option value="none">None</option></select>
<p style="grid-column: 3/-1;"> <br/> </p><!-- Empty -->
<p> Name : </p> <input type="text" id="name" placeHolder="Troop Name..." />
<p> Source : </p> <input type="text" id="source" value="Default" />
<p style="grid-row : 4/5; grid-column:1/-1; padding-left:3rem;"> <br/> <b style="font-size:1.2rem;;"> Fluff Data : </b></p>
<p> Map Size (centimeter radius) : </p> <input type="number" id="radius" value="50"/>
<p> Fluff Size : </p> <select id="size"><option value="Tiny">Tiny </option><option value="Small">Small </option><option value="Medium">Medium </option><option value="Large">Large </option><option value="Huge">Huge </option><option value="Gargantuan">Gargantuan </option></select>
<p> Troop Type : </p> <input type="text" id="type" value="humanoïd"/>
<p style="grid-column:3/-1; grid-row:6/8;"> </p><!-- Empty -->
<p style="grid-row : 7/8; grid-column:1/-1;"></p> <!-- Empty -->
<p style="grid-row : 8/9; grid-column:1/-1; padding-left:3rem;"><b style="font-size:1.2rem;"> Game Data : </b> <br/></p>
<p> Hit Points : </p> <p style="margin:0; padding-top:0.5rem; padding-left:0;"> <input type="number" style="width:20%;margin:0;" id="hpamount" value="1"/> d <select id="hptype" style="width:20%;margin:0;"><option value="6"> 6 </option><option value="1"> 1 </option><option value="4"> 4 </option><option value="6"> 6 </option><option value="8"> 8 </option><option value="10"> 10 </option><option value="12"> 12 </option></select> + <input style="width:20%;margin:0;" id="hpBonus" type="number" value="0" /> </p>
<p style="grid-row : 9/10; grid-column:3/-1;"></p><!-- Empty -->
<p> Armor Class : </p> <input type="number" id="armorClass" value="10" />
<p> Movement Speed (m. / turn): </p> <input type="number" id="speed" value="9" />
<!-- Empty -->
<p style="grid-row : 11/12; grid-column:1/-1;"> </p>
<p> Actions Per Turn : </p> <input id="actionsPerTurn" type="number" value="1"/>
<p> Turns Per Round : </p> <input id="turnsAmount" type="number" value="1"/>
<!-- Empty -->
<p style="grid-column:1/-1;"></p>
<p style="grid-column:1/-1;"></p>
<p style="grid-column:1/-1;"></p>
<p style="grid-column:1/-1;"></p>
<p style="grid-column:1/-1;"></p>
<table style=" border-bottom : 1px solid rgb(250,180,60); margin-bottom : 2rem;">
<tr style="height: 4rem; border-top:1px solid rgb(250,180,60);">
<th><b>Ability</b></th>
<th>Strength</th>
<th>Dexterity</th>
<th>Constitution</th>
<th>Intelligence</th>
<th>Wisdom</th>
<th>Charisma</th>
</tr>
<tr>
<th> Score </th>
<th> <input type="number" id="StrengthScore" value="10" class="asinput" onchange="writeAbilityScore();" /> </th>
<th> <input type="number" id="DexterityScore" value="10" class="asinput" onchange="writeAbilityScore();" /> </th>
<th> <input type="number" id="ConstitutionScore" value="10" class="asinput" onchange="writeAbilityScore();" /> </th>
<th> <input type="number" id="IntelligenceScore" value="10" class="asinput" onchange="writeAbilityScore();" /> </th>
<th> <input type="number" id="WisdomScore" value="10" class="asinput" onchange="writeAbilityScore();" /> </th>
<th> <input type="number" id="CharismaScore" value="10" class="asinput" onchange="writeAbilityScore();" /></th>
</tr>
<tr>
<th> Bonus </th>
<th> <input type="number" id="StrengthBonus" value="0" class="asinput" disabled /></th>
<th> <input type="number" id="DexterityBonus" value="0" class="asinput" disabled/></th>
<th> <input type="number" id="ConstitutionBonus" value="0" class="asinput" disabled/></th>
<th> <input type="number" id="IntelligenceBonus" value="0" class="asinput" disabled/></th>
<th> <input type="number" id="WisdomBonus" value="0" class="asinput" disabled/></th>
<th> <input type="number" id="CharismaBonus" value="0" class="asinput" disabled/></th>
</tr>
</table>
</div>
<div id="actionEdit" style="display:none;">
<h3> Pools of Actions</h3>
<table id="poolsTable">
<tr style="border : 1px solid rgb(250,180,60);">
<th ><input type="submit" class="tableButton" id="newAction" value="Add Pool" style="width:100%; margin:0;" onclick="addNewPool()"/></th>
<th>Name</th>
<th>Points</th>
</tr>
</table>
<h3>Traits </h3>
<div id="traitsHolder">
</div>
<table id="traitsTable">
<tr style="border : 1px solid rgb(250,180,60);">
<th ><input type="submit" class="tableButton" id="newAction" value="Add Trait" style="width:100%; margin:0;" onclick="addNewTrait()"/></th>
<th>Name</th>
<th>Damage</th>
<th>Resist' / Vuln' / Imm' </th>
<th>Additional</th>
</tr>
</table>
<h3> Actions </h3>
<div id="actionsHolder">
</div>
</div>
</div>
<div id="scripts">
<script src="scripts/Troop.js"></script>
<script src="scripts/util.js"></script>
<script src="scripts/DOM/editorTroopDOM.js"></script>
</div>
</body>
</html>