Exemple #1
0
 private void OnPickerTileIndexPropertiesChanged(object sender, TilePickerEventArgs tilePickerEventArgs)
 {
     m_needsSaving = true;
     UpdateFileControls();
     UpdateEditControls();
 }
Exemple #2
0
        private void OnPickerTileSelected(object sender, TilePickerEventArgs tilePickerEventArgs)
        {
            m_mapPanel.SelectedTileSheet = tilePickerEventArgs.TileSheet;
            m_mapPanel.SelectedTileIndex = tilePickerEventArgs.TileIndex;

            m_mapPanel.TileSelection.Clear();

            if (m_mapPanel.EditTool == EditTool.Select
                || m_mapPanel.EditTool == EditTool.Dropper
                || m_mapPanel.EditTool == EditTool.Eraser)
            {
                m_mapPanel.EditTool = EditTool.SingleTile;
                UpdateToolButtons();
            }
        }
Exemple #3
0
 private void OnPickerTileBrushSelected(object sender, TilePickerEventArgs tilePickerEventArgs)
 {
     m_mapPanel.EditTool = EditTool.TileBrush;
     m_mapPanel.SelectedTileBrush = tilePickerEventArgs.TileBrush;
     UpdateToolButtons();
 }