Skip to content

Commit

Permalink
Updated EOP Docs for version: M2TWEOP-2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
youneuoy committed Mar 20, 2023
1 parent f78ce69 commit c146ce4
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 39 deletions.
2 changes: 1 addition & 1 deletion docs/_static/LuaLib/extra/readme_imgui.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h2 class="bannerText">Medieval 2: Total War - Engine Overhaul Project Lua Plugi
<h3 class="welcomeMessage">Welcome to the EOP Lua Plugin Documentation!</h3>
<br>
<h3 class="disclaimerMessage">Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!</h3>
<p class="lastUpdatedMessage">Last updated: 2023-03-17 21:39:32</p>
<p class="lastUpdatedMessage">Last updated: 2023-03-20 12:33:40</p>
<a target="_blank" href="https://discord.gg/Epqjm8u2WK">
<img class="discordImage" src="https://img.shields.io/discord/713369537948549191?color=282828&label=DISCORD&style=for-the-badge"/>
</a>
Expand Down
119 changes: 82 additions & 37 deletions docs/_static/LuaLib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,9 @@ <h2>Data Types</h2>
<details>
<summary><a href="#M2TWEOP3dObjects">M2TWEOP3dObjects </a></summary>
<li><a href="#M2TWEOP3dObjects">M2TWEOP3dObjects</a></li>
<li><a href="#M2TWEOP3dObjectsTable.MakeTextFont">M2TWEOP3dObjectsTable.MakeTextFont (fontName)</a></li>
<li><a href="#M2TWEOP3dObjectsTable.DeleteTextFont">M2TWEOP3dObjectsTable.DeleteTextFont (fondID)</a></li>
<li><a href="#M2TWEOP3dObjectsTable.Make3dText">M2TWEOP3dObjectsTable.Make3dText (fondID, text)</a></li>
<li><a href="#M2TWEOP3dObjects.MakeTextFont">M2TWEOP3dObjects.MakeTextFont (fontName)</a></li>
<li><a href="#M2TWEOP3dObjects.DeleteTextFont">M2TWEOP3dObjects.DeleteTextFont (fondID)</a></li>
<li><a href="#M2TWEOP3dObjects.Make3dText">M2TWEOP3dObjects.Make3dText (fondID, text)</a></li>
</details>


Expand Down Expand Up @@ -663,7 +663,7 @@ <h2 class="bannerText">Medieval 2: Total War - Engine Overhaul Project Lua Plugi
<h3 class="welcomeMessage">Welcome to the EOP Lua Plugin Documentation!</h3>
<br>
<h3 class="disclaimerMessage">Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!</h3>
<p class="lastUpdatedMessage">Last updated: 2023-03-17 21:39:32</p>
<p class="lastUpdatedMessage">Last updated: 2023-03-20 12:33:40</p>
<a target="_blank" href="https://discord.gg/Epqjm8u2WK">
<img class="discordImage" src="https://img.shields.io/discord/713369537948549191?color=282828&label=DISCORD&style=for-the-badge"/>
</a>
Expand Down Expand Up @@ -2184,15 +2184,15 @@ <h2><a href="#M2TWEOP3dObjects">M2TWEOP3dObjects </a></h2>
<td class="summary">Basic M2TWEOP3dObjects table.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#M2TWEOP3dObjectsTable.MakeTextFont">M2TWEOP3dObjectsTable.MakeTextFont (fontName)</a></td>
<td class="name" nowrap><a href="#M2TWEOP3dObjects.MakeTextFont">M2TWEOP3dObjects.MakeTextFont (fontName)</a></td>
<td class="summary">Create new 3d text font.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#M2TWEOP3dObjectsTable.DeleteTextFont">M2TWEOP3dObjectsTable.DeleteTextFont (fondID)</a></td>
<td class="name" nowrap><a href="#M2TWEOP3dObjects.DeleteTextFont">M2TWEOP3dObjects.DeleteTextFont (fondID)</a></td>
<td class="summary">Delete 3d text font.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#M2TWEOP3dObjectsTable.Make3dText">M2TWEOP3dObjectsTable.Make3dText (fondID, text)</a></td>
<td class="name" nowrap><a href="#M2TWEOP3dObjects.Make3dText">M2TWEOP3dObjects.Make3dText (fondID, text)</a></td>
<td class="summary">Create line of 3d text.</td>
</tr>
</table>
Expand Down Expand Up @@ -17329,19 +17329,19 @@ <h2 class="section-header "><a name="M2TWEOP3dObjects"></a>M2TWEOP3dObjects </h2
<h3>Fields:</h3>
<ul>
<li><span class="parameter">MakeTextFont</span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjectsTable.MakeTextFont">MakeTextFont</a></span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjects.MakeTextFont">MakeTextFont</a></span>



</li>
<li><span class="parameter">DeleteTextFont</span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjectsTable.MakeTextFont">MakeTextFont</a></span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjects.MakeTextFont">MakeTextFont</a></span>



</li>
<li><span class="parameter">Make3dText</span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjectsTable.Make3dText">Make3dText</a></span>
<span class="types"><a class="type" href="index.html#M2TWEOP3dObjects.Make3dText">Make3dText</a></span>



Expand All @@ -17354,8 +17354,8 @@ <h3>Fields:</h3>

</dd>
<dt>
<a name = "M2TWEOP3dObjectsTable.MakeTextFont"></a>
<strong>M2TWEOP3dObjectsTable.MakeTextFont (fontName)</strong>
<a name = "M2TWEOP3dObjects.MakeTextFont"></a>
<strong>M2TWEOP3dObjects.MakeTextFont (fontName)</strong>
</dt>
<dd>
<div class="functionDescription">
Expand All @@ -17381,13 +17381,13 @@ <h3>Returns:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);</pre>
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);</pre>
</ul>

</dd>
<dt>
<a name = "M2TWEOP3dObjectsTable.DeleteTextFont"></a>
<strong>M2TWEOP3dObjectsTable.DeleteTextFont (fondID)</strong>
<a name = "M2TWEOP3dObjects.DeleteTextFont"></a>
<strong>M2TWEOP3dObjects.DeleteTextFont (fondID)</strong>
</dt>
<dd>
<div class="functionDescription">
Expand All @@ -17407,15 +17407,15 @@ <h3>Parameters:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
M2TWEOP3dObjectsTable.DeleteTextFont(newFont);</pre>
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
M2TWEOP3dObjects.DeleteTextFont(newFont);</pre>
</ul>

</dd>
<dt>
<a name = "M2TWEOP3dObjectsTable.Make3dText"></a>
<strong>M2TWEOP3dObjectsTable.Make3dText (fondID, text)</strong>
<a name = "M2TWEOP3dObjects.Make3dText"></a>
<strong>M2TWEOP3dObjects.Make3dText (fondID, text)</strong>
</dt>
<dd>
<div class="functionDescription">
Expand Down Expand Up @@ -17445,9 +17445,9 @@ <h3>Returns:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
M2TWEOP3dObjectsTable.DeleteTextFont(newFont);</pre>
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
M2TWEOP3dObjects.DeleteTextFont(newFont);</pre>
</ul>

</dd>
Expand All @@ -17466,6 +17466,51 @@ <h2 class="section-header "><a name="3dText"></a>3dText </h2>

<h3>Fields:</h3>
<ul>
<li><span class="parameter">xSize</span>
<span class="types"><span class="type">float</span></span>
default value 1
</li>
<li><span class="parameter">ySize</span>
<span class="types"><span class="type">float</span></span>
default value 0.2
</li>
<li><span class="parameter">zSize</span>
<span class="types"><span class="type">float</span></span>

<pre><code>default value 1
</code></pre>

</li>
<li><span class="parameter">xRoll</span>
<span class="types"><span class="type">float</span></span>
default value 1
</li>
<li><span class="parameter">yRoll</span>
<span class="types"><span class="type">float</span></span>
default value 90
</li>
<li><span class="parameter">zRoll</span>
<span class="types"><span class="type">float</span></span>
default value 1
</li>
<li><span class="parameter">xCoord</span>
<span class="types"><span class="type">float</span></span>



</li>
<li><span class="parameter">yCoord</span>
<span class="types"><span class="type">float</span></span>



</li>
<li><span class="parameter">zCoord</span>
<span class="types"><span class="type">float</span></span>



</li>
<li><span class="parameter">Scale</span>
<span class="types"><a class="type" href="index.html#Eop3dText:Scale">Scale</a></span>

Expand Down Expand Up @@ -17539,8 +17584,8 @@ <h3>Parameters:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:Scale(<span class="number">0.3</span>);</pre>
</ul>

Expand Down Expand Up @@ -17587,8 +17632,8 @@ <h3>Parameters:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:ChangeColor(<span class="number">255</span>,<span class="number">0</span>,<span class="number">255</span>,<span class="number">177</span>);</pre>
</ul>

Expand Down Expand Up @@ -17629,8 +17674,8 @@ <h3>Parameters:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:SetCoords(<span class="number">10</span>,<span class="number">20</span>,<span class="number">0.2</span>);</pre>
</ul>

Expand All @@ -17650,8 +17695,8 @@ <h3>Usage:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:SetCoords(<span class="number">10</span>,<span class="number">20</span>,<span class="number">0.2</span>);
newText:StartDrawing();</pre>
</ul>
Expand All @@ -17672,8 +17717,8 @@ <h3>Usage:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:SetCoords(<span class="number">10</span>,<span class="number">20</span>,<span class="number">0.2</span>);
newText:StartDrawing();
<span class="comment">--some time we draw
Expand All @@ -17696,8 +17741,8 @@ <h3>Usage:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:SetCoords(<span class="number">10</span>,<span class="number">20</span>,<span class="number">0.2</span>);
newText:DrawOnce();</pre>
</ul>
Expand All @@ -17718,8 +17763,8 @@ <h3>Usage:</h3>

<h3>Usage:</h3>
<ul>
<pre class="example">newFont = M2TWEOP3dObjectsTable.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjectsTable.Make3dText(newFont, <span class="string">"Some text"</span>);
<pre class="example">newFont = M2TWEOP3dObjects.MakeTextFont(<span class="string">"Times New Roman"</span>);
newText = M2TWEOP3dObjects.Make3dText(newFont, <span class="string">"Some text"</span>);
newText:SetCoords(<span class="number">10</span>,<span class="number">20</span>,<span class="number">0.2</span>);
newText:DrawOnce();
newText:Delete();</pre>
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/LuaLib/readme_imgui.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h2 class="bannerText">Medieval 2: Total War - Engine Overhaul Project Lua Plugi
<h3 class="welcomeMessage">Welcome to the EOP Lua Plugin Documentation!</h3>
<br>
<h3 class="disclaimerMessage">Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!</h3>
<p class="lastUpdatedMessage">Last updated: 2023-03-17 21:39:32</p>
<p class="lastUpdatedMessage">Last updated: 2023-03-20 12:33:40</p>
<a target="_blank" href="https://discord.gg/Epqjm8u2WK">
<img class="discordImage" src="https://img.shields.io/discord/713369537948549191?color=282828&label=DISCORD&style=for-the-badge"/>
</a>
Expand Down

0 comments on commit c146ce4

Please sign in to comment.