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; }
private void OnTilePropertiesChanged(MapPanelEventArgs mapPanelEventArgs) { m_needsSaving = true; UpdateFileControls(); UpdateEditControls(); }
private void OnMapTilePicked(MapPanelEventArgs mapPanelEventArgs) { Tile tile = mapPanelEventArgs.Tile; if (tile != null) { m_tilePicker.SelectedTileSheet = tile.TileSheet; m_tilePicker.SelectedTileIndex = tile.TileIndex; } UpdateToolButtons(); }