--- a/LuaLibraries.wiki Sun Dec 21 01:04:48 2014 +0000
+++ b/LuaLibraries.wiki Sun Dec 21 01:08:03 2014 +0000
@@ -12,6 +12,9 @@
<code language="lua">loadfile(GetDataPath() .. "Scripts/<Library Name>.lua")()</code>
This does not work with new Hedgewars versions anymore and causes the script to break. You have to replace it with `HedgewarsScriptLoad`. *Calls to `loadfile` are one of the most common reasons why old scripts do not work in recent Hedgewars versions.*
+= Table of Contents =
+
+<wiki:toc max_depth="2" />
= Locale =
This library allows you to translate string and should be used whenever a script has text. It loads the appropriate locale file and check automatically.