Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }