private void ShowContextMenu(TreeNode selectedNode, Point mouseLocation) { switch (selectedNode.Name.ToLower()) { case "projectnode": { ProjectMenu.Show(mouseLocation); break; } case "mapsnode": { MapsMenu.Show(mouseLocation); break; } case "mapnode": { MapMenu.Show(mouseLocation); break; } case "tilesnode": { TilesMenu.Show(mouseLocation); break; } case "layernode": { if (selectedNode.Tag is TileLayer <Tile> ) { TileLayer <Tile> layer = (TileLayer <Tile>)selectedNode.Tag; visibleToolStripMenuItem.Checked = layer.Visible; LayerMenu.Show(mouseLocation); } break; } case "tilefilternode": { TilesMenu.Show(mouseLocation); break; } } }
public void OnMapButtonClicked() { MapMenu.Show(); }
public void ShowContextMenu(GameSpawn context, Point location) { m_contextspawn = context; MapMenu.Show(this, location); }
private void Start() { MapMenu.Show(); }