Beispiel #1
0
        private void OnTileHover(MapPanelEventArgs mapPanelEventArgs)
        {
            Tile tile = mapPanelEventArgs.Tile;
            Location tileLocation = mapPanelEventArgs.Location;
            m_tileLocationStatusLabel.Text = "Pos " + mapPanelEventArgs.Location.ToString();

            m_tileSheetStatusLabel.Text = tile == null ? "" : "Tsh " + tile.TileSheet.Id;

            m_tileIndexStatusLabel.Text = tile == null ? "" : "Idx " + tile.TileIndex;

            m_tilePropertiesStatusLabel.Visible = tile != null && tile.Properties.Count > 0;
        }
Beispiel #2
0
 private void OnTilePropertiesChanged(MapPanelEventArgs mapPanelEventArgs)
 {
     m_needsSaving = true;
     UpdateFileControls();
     UpdateEditControls();
 }
Beispiel #3
0
        private void OnMapTilePicked(MapPanelEventArgs mapPanelEventArgs)
        {
            Tile tile = mapPanelEventArgs.Tile;
            if (tile != null)
            {
                m_tilePicker.SelectedTileSheet = tile.TileSheet;
                m_tilePicker.SelectedTileIndex = tile.TileIndex;
            }

            UpdateToolButtons();
        }