Пример #1
0
		/// <summary>
		/// Creates and returns the sub-menu for Waypoints
		/// </summary>
		/// <returns></returns>
		private GossipMenu CreateWaypointMenu()
		{
			var menu = new GossipMenu(m_point.SpawnEntry.Entry.NameGossipId);
			menu.AddGoBackItem("Go back...");
			foreach (var wp in m_point.SpawnEntry.Waypoints)
			{
				menu.AddItem(new WPItem(m_point, wp));
			}
			menu.AddQuitMenuItem("Done");
			return menu;
		}
Пример #2
0
			public WPItem(SpawnPoint point, WaypointEntry wp)
			{
				m_Point = point;
				m_wp = wp;
				Text = "WP #" + wp.Id;

				SubMenu = new GossipMenu(point.SpawnEntry.Entry.NameGossipId);
				SubMenu.AddGoBackItem();
				SubMenu.AddRange(
					new GossipMenuItem("Go to " + Text, HandleGoto),
					new GossipMenuItem("Remove", HandleRemove),
					new GossipMenuItem("Move here", HandleMoveOver),
					new GossipMenuItem("Insert New", HandleInsert));
			}