DESIGNATE can now lase for specific codes

* DESIGNATE can now lase targets with specific laser codes upon request
by players. Methods :AddMenuLaserCode() and :RemoveMenuLaserCode()
added, which allow to set or delete specific additional menu options in
the lase menu for players to lase with specific codes. This comes in
handy for the SU-25T and the A-10A and other planes.
This commit is contained in:
FlightControl_Master
2017-08-29 21:48:11 +02:00
parent 9784b694ba
commit 62ab859215
22 changed files with 1345 additions and 462 deletions

View File

@@ -194,6 +194,7 @@ On top, MOOSE implements <strong>variable parameter</strong> passing for command
<hr/>
<p>The MENU<em>COMMAND</em>BASE class defines the main MENU class where other MENU COMMAND_
classes are derived from, in order to set commands.</p>
</td>
</tr>
<tr>
@@ -369,6 +370,24 @@ classes are derived from, in order to set commands.</p>
<td class="name" nowrap="nowrap"><a href="##(MENU_COMMAND_BASE).New">MENU_COMMAND_BASE.New(#, self, MenuText, ParentMenu, CommandMenuFunction, CommandMenuArguments)</a></td>
<td class="summary">
<p>Constructor</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(MENU_COMMAND_BASE).SetCommandMenuArguments">MENU_COMMAND_BASE.SetCommandMenuArguments(#, self, CommandMenuArguments)</a></td>
<td class="summary">
<p>This sets the new command arguments of a menu,
so that if a menu is regenerated, or if command arguments change,
that the arguments set for the menu are loosely coupled with the menu itself!!!
If the arguments change, no new menu needs to be generated if the menu text is the same!!!</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(MENU_COMMAND_BASE).SetCommandMenuFunction">MENU_COMMAND_BASE.SetCommandMenuFunction(#, self, CommandMenuFunction)</a></td>
<td class="summary">
<p>This sets the new command function of a menu,
so that if a menu is regenerated, or if command function changes,
that the function set for the menu is loosely coupled with the menu itself!!!
If the function changes, no new menu needs to be generated if the menu text is the same!!!</p>
</td>
</tr>
</table>
@@ -729,6 +748,7 @@ Using this object reference, you can then remove ALL the menus and submenus unde
<p>The MENU<em>COMMAND</em>BASE class defines the main MENU class where other MENU COMMAND_
classes are derived from, in order to set commands.</p>
</dd>
</dl>
<dl class="function">
@@ -1452,6 +1472,86 @@ ENU<em>COMMAND</em>BASE</p>
<p><em><a href="##(MENU_COMMAND_BASE)">#MENU<em>COMMAND</em>BASE</a>:</em></p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(MENU_COMMAND_BASE).SetCommandMenuArguments" >
<strong>MENU_COMMAND_BASE.SetCommandMenuArguments(#, self, CommandMenuArguments)</strong>
</a>
</dt>
<dd>
<p>This sets the new command arguments of a menu,
so that if a menu is regenerated, or if command arguments change,
that the arguments set for the menu are loosely coupled with the menu itself!!!
If the arguments change, no new menu needs to be generated if the menu text is the same!!!</p>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em> # </em></code>:
ENU<em>COMMAND</em>BASE</p>
</li>
<li>
<p><code><em> self </em></code>: </p>
</li>
<li>
<p><code><em> CommandMenuArguments </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(MENU_COMMAND_BASE)">#MENU<em>COMMAND</em>BASE</a>:</em></p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(MENU_COMMAND_BASE).SetCommandMenuFunction" >
<strong>MENU_COMMAND_BASE.SetCommandMenuFunction(#, self, CommandMenuFunction)</strong>
</a>
</dt>
<dd>
<p>This sets the new command function of a menu,
so that if a menu is regenerated, or if command function changes,
that the function set for the menu is loosely coupled with the menu itself!!!
If the function changes, no new menu needs to be generated if the menu text is the same!!!</p>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em> # </em></code>:
ENU<em>COMMAND</em>BASE</p>
</li>
<li>
<p><code><em> self </em></code>: </p>
</li>
<li>
<p><code><em> CommandMenuFunction </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(MENU_COMMAND_BASE)">#MENU<em>COMMAND</em>BASE</a>:</em></p>
</dd>
</dl>