Ejemplo n.º 1
0
        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;
            }
            }
        }
Ejemplo n.º 2
0
 public void OnMapButtonClicked()
 {
     MapMenu.Show();
 }
Ejemplo n.º 3
0
 public void ShowContextMenu(GameSpawn context, Point location)
 {
     m_contextspawn = context;
     MapMenu.Show(this, location);
 }
Ejemplo n.º 4
0
 private void Start()
 {
     MapMenu.Show();
 }