-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
198 lines (192 loc) · 8.56 KB
/
index.html
File metadata and controls
198 lines (192 loc) · 8.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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="en">
<head>
<title>Majora's Mask 3D Map and Item Tracker</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
<body>
<script src="scripts/checks.js"></script>
<script src="scripts/items.js"></script>
<script>
if (document.addEventListener) {
document.addEventListener('contextmenu', function(e) {
//Runs when you right click to bring up context menu
if(mouseOverItem == true){
//Want context menu in edit mode.
if(!editmode) {
//call method that handles right click
gridItemRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
e.preventDefault();
}
}
if(mouseOverMask == true){
//Want context menu in edit mode.
if(!editmode) {
//call method that handles right click
gridMaskRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
e.preventDefault();
}
}
if(mouseOverDungeon == true){
//Want context menu in edit mode.
if(!editmode) {
//call method that handles right click
gridDungeonRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
e.preventDefault();
}
}
if(mouseOverQuest == true){
//Want context menu in edit mode.
if(!editmode) {
//call method that handles right click
gridQuestRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
e.preventDefault();
}
}
}, false);
}
else {
document.attachEvent('oncontextmenu', function() {
if(mouseOverItem == true){
if(!editmode) {
gridItemRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
window.event.returnValue = false;
}
}
if(mouseOverMask == true){
if(!editmode) {
gridMaskRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
window.event.returnValue = false;
}
}
if(mouseOverDungeon == true){
if(!editmode) {
gridDungeonRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
window.event.returnValue = false;
}
}
if(mouseOverQuest == true){
if(!editmode) {
gridQuestRClick(mouseLastOverR, mouseLastOverC, mouseLastOverCor);
window.event.returnValue = false;
}
}
});
}
</script>
<script src="scripts/main.js"></script>
<div id='layoutdiv'>
<table id="itemtable" class="itemtable">
<tr>
<td>
<fieldset><legend>Items</legend><div id="itemdiv" oncontextmenu="gridItemRClick()" class="itemdiv"></div></fieldset>
</td>
<td>
<fieldset><legend>Masks</legend><div id="maskdiv" oncontextmenu="gridMaskRClick()" class="maskdiv"></div></fieldset>
</td>
</tr>
<tr>
<td>
<fieldset><legend>Dungeons</legend><div id="dungeondiv" oncontextmenu="gridDungeonRClick()" class="dungeondiv"></div></fieldset>
</td>
<td>
<fieldset><legend>Quest</legend><div id="questdiv" oncontextmenu="gridQuestRClick()" class="questdiv"></div></fieldset>
</td>
</tr>
</table>
<div id="mapdiv" class="mapdiv">
<div id="submapdiv" class="submapdiv">
<div class="areatitle"><span id='submaparea' style="font-size: 20px;" >Termina</span></div>
<hr style="margin-top: 4px; margin-bottom: 4px;">
<ul id="submaplist" style="margin-top: 4px; margin-bottom: 4px; overflow-y: auto; height: 232px;"></ul>
</div>
<div id="submapindex" class="submapindex">
<div class="indextitle"><span style="font-size: 20px;">Index</span></div>
<hr style="margin-top: 4px; margin-bottom: 4px;">
<div><div class="box red"></div> = Unavailable</div>
<br>
<div><div class="box green"></div> = Available</div>
<br>
<div><div class="box blurple"></div> = Not Randomized</div>
<br>
<div><div class="box gray"></div> = Completed</div>
<br>
</div>
</div>
</div>
<!-- Settings Panel-->
<button id="settingsbutton" type="button" onclick='showSettings(this)'>Options</button>
<fieldset id="settings" class="settings">
<legend>Options</legend>
<fieldset>
<legend>Item Tracker</legend>
<!--<button type="button" onclick="EditMode()">EditMode</button> -->
<button type="button" onclick="ResetLayout()">Reset Layout</button>
<button type="button" onclick="ResetTracker()">Reset Tracker</button>
<button type="button" onclick="ResetLogic()">Reset Logic</button>
<br>
Size<input type="range" name="itemtablesize" value="100" max="200" min="1" onchange="setZoom('itemtable', this)">
<span id="itemtablesize">100%</span><br>
</fieldset>
<fieldset>
<legend>Map Tracker</legend>
<input type="checkbox" name="showmap" checked onchange="showTracker('mapdiv', this)">Enabled<br>
Size<input type="range" name="mapdivsize" value="100" max="200" min="1" onchange="setZoom('mapdiv', this)">
<span id="mapdivsize">100%</span><br>
Position:
<input type="radio" id="mappositionside" name="mapposition" value="Side" onclick="setOrder(false)">Side
<input type="radio" id="mappositionbelow" name="mapposition" value="Below" onclick="setOrder(true)">Below<br>
<fieldset>
<legend>Item Settings</legend>
<input type="checkbox" id="ocarinalogictoggle" name="ocarinalogic" onclick="setOcarinaLogic()">Shuffle Ocarina
<input type="checkbox" id="transformmasklogictoggle" name="transformmasklogic" onclick="setTransLogic()">Shuffle Transformation Masks
<input type="checkbox" id="maskslogictoggle" name="maskslogic" onclick="setMaskLogic()">Shuffle Masks
<input type="checkbox" id="piecelogictoggle" name="piecelogic" onclick="setPieceLogic()">Shuffle Heart Pieces
<input type="checkbox" id="skullslogictoggle" name="skullslogic" onclick="setSkullsLogic()">Tokensanity
<input type="checkbox" id="scrubtradelogictoggle" name="scrubtradelogic" onclick="setScrubTradeLogic()">Shuffle Deku Trades
<input type="checkbox" id="anjulogictoggle" name="anjulogic" onclick="setAnjuLogic()">Shuffle Anju and Kafei Items
<input type="checkbox" id="greatfairylogictoggle" name="greatfairylogic" onclick="setGFLogic()">Shuffle Great Fairy Items
<input type="checkbox" id="tinglelogictoggle" name="tinglelogic" onclick="setTingleLogic()">Shuffle Tingle Maps
<input type="checkbox" id="notebooklogictoggle" name="notebooklogic" onclick="setNotebookLogic()">Shuffle Bomber's Notebook
<input type="checkbox" id="moonitemlogictoggle" name="moonitemlogic" onclick="setMoonItemLogic()">Shuffle Moon Items
<input type="checkbox" id="deitylogictoggle" name="deitylogic" onclick="setFDLogic()">Shuffle Fierce Deity Mask<br>
</fieldset>
<fieldset>
<legend>Dungeon Settings</legend>
<input type="checkbox" id="mapslogictoggle" name="mapslogic" onclick="setMapsLogic()">Maps and Compasses
<input type="checkbox" id="smallkeylogictoggle" name="smallkeylogic" onclick="setSmallKeyLogic()">Keysanity(Small)
<input type="checkbox" id="bigkeylogictoggle" name="bigkeylogic" onclick="setBigKeyLogic()">Keysanity(Boss)
<input type="checkbox" id="remainslogictoggle" name="remainslogic" onclick="setRemainsLogic()">Boss Remains
<input type="checkbox" id="containerlogictoggle" name="containerlogic" onclick="setContainerLogic()">
<div class="tooltip">Heart Containers
<span class="tooltiptext">Shuffle Heart Container Rewards</span>
</div>
<!--
<input type="checkbox" id="songslogictoggle" name="songslogic" onclick="setSongsLogic()">Songsanity
<input type="checkbox" id="eggslogictoggle" name="eggslogic" onclick="setEggsLogic()">Zora Egg Shuffle
-->
</fieldset>
<fieldset>
<legend>Custom Logic</legend>
<input type="checkbox" id="skipbomberstoggle" name="skipbombers" onclick="setSkipBombers()"><div class="tooltip">Skip Bombers Minigame
<span class="tooltiptext">Sets Bombers Code to 12345</span></div>
</fieldset>
</fieldset>
</fieldset>
<table id="itemconfig" class="itemconfig" style="display:none;"></table>
<table id="maskconfig" class="maskconfig" style="display: none;"></table>
<table id="dungeonconfig" class="dungeonconfig" style="display: none;"></table>
<table id="questconfig" class="questconfig" style="display: none;"></table>
<script>
init();
</script>
<footer style="bottom: 0; text-align: center; color: gray;">
Majora's Mask 3D Randomizer Item and Map Tracker v0.4
</footer>
</body>
</html>