<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Class_Menu</id>
	<title>Class Menu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Class_Menu"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_Menu&amp;action=history"/>
	<updated>2026-11-05T08:14:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Class_Menu&amp;diff=11706&amp;oldid=prev</id>
		<title>Callavsg: Created page with &quot;*API Hierarchy **Menu &lt;br&gt; A menu is a list of items that can selected by the user with the mouse cursor. Menus can be constructed in hiera...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Class_Menu&amp;diff=11706&amp;oldid=prev"/>
		<updated>2018-03-22T23:49:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;*&lt;a href=&quot;/wiki/TrainzScript_Language_Reference&quot; title=&quot;TrainzScript Language Reference&quot;&gt;API Hierarchy&lt;/a&gt; **Menu &amp;lt;br&amp;gt; A menu is a list of items that can selected by the user with the mouse cursor. Menus can be constructed in hiera...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*[[TrainzScript Language Reference|API Hierarchy]]&lt;br /&gt;
**Menu&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
A menu is a list of items that can selected by the user with the mouse cursor. Menus can be constructed in hierarchies so a menu item could open up a sub-menu of its own. Sub-menus can also have sub-menus of their own as well.  Menu items can have messages sent when clicked on.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
{{MethodHeader|public native void InitialiseAsMapObjectSelector(string sCategoryFilter, GameObject msgDst, string sMsgMajor)}}&lt;br /&gt;
;Parameters&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;sCtageroyFilter&amp;#039;&amp;#039;&amp;#039; = The category filter string for the MapObjects to be displayed&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;msgDst&amp;#039;&amp;#039;&amp;#039; = Receiver of a message containing the selection data&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;sMsgMajor&amp;#039;&amp;#039;&amp;#039; = A message major string&lt;br /&gt;
;Returned Value&lt;br /&gt;
*None&lt;br /&gt;
;Notes&lt;br /&gt;
*Initialises this Menu object to automatically add map objects matching a specific category filter. This menu will dynamically generate sorted sub-menus as required&lt;br /&gt;
*Upon selection of a menu item by the player, a message will be posted to msgDst, using the sMsgMajor string provided and with the message parameter soup containing the following data:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;object-id       (GameObjectID) - The ID of the object selected&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;object-name     (string) - The localised name of the object selected&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Callavsg</name></author>
	</entry>
</feed>