mirror of
https://github.com/celisej567/wiki.git
synced 2026-09-21 20:08:53 +03:00
fix $_SMALL ... _$
This commit is contained in:
@@ -400,7 +400,7 @@ th, td
|
||||
|
||||
<p>Let's say that you have made a file called "MyLib.lua" inside a mod called "MyMod". These are the contents of it:</p>
|
||||
|
||||
<p>$_MyMod/MyLib.lua_$</p>
|
||||
<p><small style="position:relative; top:8px;">MyMod/MyLib.lua</small></p>
|
||||
|
||||
<div class="codehilite">
|
||||
<pre><span></span><code><span class="kr">function</span> <span class="nf">add</span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="n">b</span><span class="p">)</span>
|
||||
|
||||
@@ -400,7 +400,7 @@ th, td
|
||||
|
||||
<p>Let's say that you have a library called "MyLib.nut" inside a mod called "MyMod". This is what it contains:</p>
|
||||
|
||||
<p>$_MyMod/MyLib.nut_$</p>
|
||||
<p><small style="position:relative; top:8px;">MyMod/MyLib.nut _$</p>
|
||||
|
||||
<pre><code>class AdditionClass
|
||||
{
|
||||
@@ -415,7 +415,7 @@ Addition <- AdditionClass() -- Exports can only use global variables!
|
||||
|
||||
<p>Now to export the <code>Addition</code> object, pass them to the <code>export()</code> function at the end of the file.</p>
|
||||
|
||||
<p>$_MyMod/MyLib.nut_$</p>
|
||||
<p>$_SMALL MyMod/MyLib.nut</small></p>
|
||||
|
||||
<pre><code>export(Addition);
|
||||
</code></pre>
|
||||
|
||||
Reference in New Issue
Block a user