File: content.xml.in

package info (click to toggle)
openclonk 8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 169,520 kB
  • sloc: cpp: 180,479; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 145; sh: 101; javascript: 34
file content (216 lines) | stat: -rw-r--r-- 6,997 bytes parent folder | download | duplicates (5)
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- <!DOCTYPE doc SYSTEM "../clonk.dtd"> -->
<?xml-stylesheet type="text/xsl" href="../clonk.xsl"?>
<toc>
<title>Contents</title>
<script>
<![CDATA[
	// Javascript aus mwForum, www.mwforum.org
	function tb(listId) {
		var toggle = document.getElementById('tgl' + listId);
		var branch = toggle.parentNode;
		if (!branch || !toggle) return;
		if (branch.className != 'invisi') {
			branch.className = 'invisi';
			toggle.src = '../images/bullet_folder.png';
			toggle.title = 'Zweig expandieren';
			toggle.alt = '+';
		} else {
			branch.className = '';
			toggle.src = '../images/bullet_folder_open.png';
			toggle.title = 'Zweig zusammenklappen';
			toggle.alt = '-';
		}
		return true;
	}

	function ta(listId) {
		var branch = document.getElementById('tgl' + listId).parentNode;
		var cls = '', img = 'bullet_folder_open.png', alt = '-';
		if (branch.className != 'invisi') {
			cls = 'invisi';
			img = 'bullet_folder.png';
			alt = '+';
		}
		var divs = document.getElementsByTagName('ul');
		for (var i=0; i < divs.length; i++) {
			divs[i].parentNode.className = cls;
		}
		var imgs = document.getElementsByTagName('img');
		for (var i=0; i < imgs.length; i++) {
			if (imgs[i].id.indexOf('tgl') == 0) {
				imgs[i].src = '../images/' + img;
				imgs[i].alt = alt;
			}
		}
		return true;
	}
	
	// Alle als anfaenglich geschlossen markierten Listitems unsichtbar machen
	// Beim Laden sind sie sichtbar, damit die Seite ohne Javascript benutzbar ist
	document.body.className = 'toggleinvisi';
]]>
</script>
<h>Contents</h>
<part>
<ul class="contents">
	<li><emlink href="index.html">Developer Mode</emlink>
	<ul>
		<li><emlink href="console.html">Engine</emlink></li>
		<li><emlink href="cmdline.html">Command Line Parameters</emlink></li>
	</ul>
	</li>
	<li><emlink href="files.html">Game content</emlink>
	<ul>
		<li><emlink href="definition/index.html">Object Definitions</emlink>
		<ul>
			<li><emlink href="definition/defcore.html">DefCore</emlink>
			<ul>
				<li><emlink href="definition/category.html">Category</emlink></li>
				<li><emlink href="definition/ocf.html">OCF</emlink></li>
				<li><emlink href="definition/vertices.html">Vertices</emlink></li>
				<li><emlink href="definition/cnat.html">CNAT - Contact Attachment</emlink></li>
			</ul>
			</li>
			<li><emlink href="definition/actmap.html">ActMap</emlink>
			<ul>
				<li><emlink href="definition/procedures.html">Procedures</emlink></li>
			</ul>
			</li>
			<li><emlink href="definition/script.html">Scripts</emlink></li>
			<li><emlink href="definition/properties.html">Properties</emlink></li>
			<li><emlink href="particle/index.html">Particles</emlink></li>
		</ul>
		</li>
		<li><emlink href="scenario/index.html">Scenarios</emlink>
		<ul>
			<li><emlink href="scenario/scenario.html">Scenario</emlink></li>
			<li><emlink href="scenario/Teams.html">Multiplayer</emlink></li>
			<li><emlink href="scenario/MapCreatorS2.html">Map Generator</emlink></li>
			<li><emlink href="script/MapScript.html">Map Scripts</emlink></li>
			<li><emlink href="scenario/script.html">Scripts</emlink></li>
		</ul>
		</li>
		<li><emlink href="material/index.html">Materials</emlink>
		<ul>
			<li><emlink href="material/ocm.html">Definitions</emlink></li>
		</ul>
		</li>
		<li><emlink href="lang.html">Internationalization</emlink></li>
		<li><emlink href="playercontrols.html">Controls</emlink></li>
	</ul>
	</li>
	<li><emlink href="script/index.html">Script</emlink>
	<ul>
		<li><emlink href="script/Funcs.html">Functions</emlink></li>
		<li><emlink href="script/FuncCall.html">Function Call</emlink></li>
		<li><emlink href="script/Typechecks.html">Data Types</emlink></li>
		<li><emlink href="script/NamedVar.html">Variables</emlink></li>
		<li><emlink href="script/operatoren.html">Operators</emlink></li>
		<li><emlink href="script/for.html">for</emlink></li>
		<li><emlink href="script/BreakContinue.html">Loop Control</emlink></li>
		<li><emlink href="script/AppendTo.html">#appendto</emlink></li>
		<li><emlink href="script/Effects.html">Effects</emlink></li>
		<li><emlink href="script/GUI.html">Script GUIs</emlink></li>
		<li><emlink href="script/GetXXVal.html">Querying Game Data</emlink></li>
		<li><emlink href="script/ScriptPlayers.html">Script Players</emlink></li>
		<li><emlink href="script/SoundModifiers.html">Sound Modifiers</emlink></li>
		<li>Libraries
			<ul>
				<li><emlink href="script/Shape.html">Shape</emlink></li>
				<li><emlink href="script/FuzzyLogic.html">Fuzzy Logic</emlink></li>
			</ul>
		</li>
<!-- Insert Functions here -->
	</ul>
	</li>
<!-- Insert Index here -->
</ul>
</part>
<script>
<![CDATA[
(function() {
	function navigate(url) {
		var urlsplit = url.split("#");
		var xhr = new XMLHttpRequest();
		xhr.open('GET', urlsplit[0]);
		xhr.onreadystatechange = function (e) {
			if (xhr.readyState === 4) {
				var d = parent.document;
				var r = xhr.responseText;
				d.getElementById("content").innerHTML = r.split('<div id="content">')[1];
				d.title = r.slice(r.indexOf("<title>")+7, r.indexOf("</title>"));
				if (urlsplit.length > 1) {
					var scrolltarget = d.getElementById(urlsplit[1]);
					if (scrolltarget) {
						scrolltarget.scrollIntoView();
					}
				}
			}
		};
		xhr.send();
	}
	function onclick(e) {
		if (e.target.tagName != "A") return;
		if (e.target.host != parent.location.host) return;
		if (e.target.port != parent.location.port) return;
		if (e.target.protocol != parent.location.protocol) return;
		var url = e.target.href;
		if (parent.history.pushState && window.XMLHttpRequest) {
			navigate(url);
			parent.history.pushState(url, "", url);
			e.preventDefault();
		}
	}
	if (parent == window) return;
	parent.onpopstate = function(e) {
		navigate(e.state);
	}
	parent.document.getElementById("content").onclick = onclick;
	window.onclick = onclick;
	if (parent.history.replaceState)
		parent.history.replaceState(parent.location.href, "", parent.location.href);
	var l = parent.location.href;
	// recognize index file as such
	if(l.charAt(l.length-1) == "/") l += "index";

	var as = document.getElementsByTagName("a");
	var i = 0, a;
	var firsta;
	while (a = as[i++]) {
		if (a.href.indexOf(l) != -1) {
			if (!firsta) {
				firsta = a;
			}
			if (a.parentNode.tagName == "LI") {
				if (a.parentNode.className == 'invisi') tb(a.parentNode.firstElementChild.id.slice(3));
			}
			var p = a.parentNode.parentNode;
			while (p.tagName == "UL") {
				if (p.parentNode.className == 'invisi') tb(p.parentNode.firstElementChild.id.slice(3));
				p = p.parentNode.parentNode;
			}
		}
	}
	if (!firsta) return;
	var el = firsta.parentNode.parentNode.parentNode;
	var y0 = 0;
	while (el) {
		y0 += el.offsetTop;
		el = el.offsetParent;
	}
	var y1 = 0;
	el = firsta;
	while (el) {
		y1 += el.offsetTop;
		el = el.offsetParent;
	}
	if (y0 < y1 - innerHeight + firsta.offsetHeight * 2) {
		window.scrollTo(0, y1 - innerHeight / 2);
	} else {
		window.scrollTo(0, y0);
	}
})();
]]>
</script>
</toc>