void OnTileClick(object sender, MouseButtonEventArgs e) { CurrentEditedTileContainer = (TileContainer)sender; if (e.Button == Mouse.Button.Right) { CallConfirmationDialogBox(new String[] { ConfirmationDialogBox.Instance.GetDeletionStr("Tile", CurrentEditedTileContainer.GetCurrentTileType()) }, RemoveTile); return; } SetFocusedWindow(TileMan.Instance, new OpeningInfo(false, new Dictionary<String, Object>() { { "Mode", "TileSetCreator_Edit_Mode" } }), OnTileManEditValidated); }
void OnTextureModeTileClick(object sender, MouseButtonEventArgs e) { CurrentEditedTileContainer = (TileContainer)sender; if (e.Button != Mouse.Button.Right) return; CallConfirmationDialogBox(new String[] { ConfirmationDialogBox.Instance.GetDeletionStr("Tile", CurrentEditedTileContainer.GetCurrentTileType()) }, RemoveTile); }