<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3AMenus</id>
	<title>Lua:Menus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3AMenus"/>
	<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Menus&amp;action=history"/>
	<updated>2026-08-09T18:24:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:Menus&amp;diff=9766&amp;oldid=prev</id>
		<title>Crazycarl at 04:55, 26 June 2011</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Menus&amp;diff=9766&amp;oldid=prev"/>
		<updated>2011-06-26T04:55:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:55, 26 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Infobox_mapping}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Infobox_mapping}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Screen Menus==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Screen Menus==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mappers &lt;/del&gt;can &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;add numerical menus &lt;/del&gt;to players &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;screens &lt;/del&gt;through Lua commands. The player presses a number key to make a selection.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Numerical menus &lt;/ins&gt;can &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;be shown &lt;/ins&gt;to players through Lua commands. The player presses a number key to make a selection.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Commands===&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Commands===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:Menus&amp;diff=9765&amp;oldid=prev</id>
		<title>Crazycarl: 2.42</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Menus&amp;diff=9765&amp;oldid=prev"/>
		<updated>2011-06-26T04:54:44Z</updated>

		<summary type="html">&lt;p&gt;2.42&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox manual/Header}}&lt;br /&gt;
{{Infobox_mapping}}&lt;br /&gt;
==Screen Menus==&lt;br /&gt;
Mappers can add numerical menus to players screens through Lua commands. The player presses a number key to make a selection.&lt;br /&gt;
&lt;br /&gt;
===Commands===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ShowMenuToPlayer&amp;#039;&amp;#039;&amp;#039;( player, menu_name )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ShowMenuToTeam&amp;#039;&amp;#039;&amp;#039;( team_id, menu_name )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ShowMenu&amp;#039;&amp;#039;&amp;#039;( menu_name )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;CreateMenu&amp;#039;&amp;#039;&amp;#039;( menu_name )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;CreateMenu&amp;#039;&amp;#039;&amp;#039;( menu_name, title )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;CreateMenu&amp;#039;&amp;#039;&amp;#039;( menu_name, display_time )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;CreateMenu&amp;#039;&amp;#039;&amp;#039;( menu_name, title, display_time )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;DestroyMenu&amp;#039;&amp;#039;&amp;#039;( menu_name )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;SetMenuTitle&amp;#039;&amp;#039;&amp;#039;( menu_name, title )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;AddMenuOption&amp;#039;&amp;#039;&amp;#039;( menu_name, slot, option_text )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;RemoveMenuOption&amp;#039;&amp;#039;&amp;#039;( menu_name, slot )&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
* &amp;#039;&amp;#039;menu_name&amp;#039;&amp;#039;(string) A name with which to control the menu&lt;br /&gt;
* &amp;#039;&amp;#039;player&amp;#039;&amp;#039;(CFFPlayer) The player to show the menu to&lt;br /&gt;
* &amp;#039;&amp;#039;team_id&amp;#039;&amp;#039;(CFFTeam) the team to show the menu to&lt;br /&gt;
* &amp;#039;&amp;#039;title&amp;#039;&amp;#039;(string) a header to display above the menu options&lt;br /&gt;
* &amp;#039;&amp;#039;display_time&amp;#039;&amp;#039;(integer) Maximum number of seconds to display the menu.&lt;br /&gt;
* &amp;#039;&amp;#039;slot&amp;#039;&amp;#039;(integer) The number to associate with a menu option (0-9 only).&lt;br /&gt;
* &amp;#039;&amp;#039;option_text&amp;#039;&amp;#039;(string) The text to display for each menu option.&lt;br /&gt;
&lt;br /&gt;
===Callbacks===&lt;br /&gt;
Use these callbacks to detect when a player either picks a menu option, or lets the menu expire&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;player_onmenuselect&amp;#039;&amp;#039;&amp;#039;( player, menu_name, selection )&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;menu_onexpire&amp;#039;&amp;#039;&amp;#039;( menu_name, num_players_shown_to )&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;selection&amp;#039;&amp;#039;(integer) is the option that was selected&lt;br /&gt;
*&amp;#039;&amp;#039;num_players_shown_to&amp;#039;&amp;#039; (integer?) Seems pretty self-explanatory but I&amp;#039;m not sure what the utility of this is.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Commands]]&lt;br /&gt;
[[Category:Lua_Callbacks]]&lt;br /&gt;
{{Infobox manual/Footer}}&lt;/div&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
</feed>