Exemplo n.º 1
0
        private void pbPalette_MouseUp(object sender, MouseEventArgs e)
        {
            m_fPalette_Selecting = false;

            // Record an undo action if the current color selection has changed
            if (m_fPalette_OriginalColor != m_subpalette.CurrentColor)
            {
                m_subpalette.RecordUndoAction("select color", m_parent.ActiveUndo());
            }
        }
Exemplo n.º 2
0
        private void pbArrowbox_MouseDown(object sender, MouseEventArgs e)
        {
            if (m_arrowbox.HilightedShiftArrow() != Arrowbox.ShiftArrow.None)
            {
                m_arrowbox.SetMouseDownShiftArrow(true);
                pbArrowbox.Invalidate();

                m_sprite.ShiftPixels(m_arrowbox.HilightedShiftArrow());
                m_sprite.RecordUndoAction("shift", m_parent.ActiveUndo());
                m_parent.HandleSpriteDataChanged(m_ss);
                return;
            }

            if (m_arrowbox.HandleMouseDown(e.X, e.Y))
            {
                pbArrowbox.Invalidate();
            }

            m_fArrowbox_Selecting = true;
        }
Exemplo n.º 3
0
        private void pbMap_MouseUp(object sender, MouseEventArgs e)
        {
            if (m_fEditBackgroundMap_Selecting)
            {
                Toolbox.Tool t = m_toolbox.CurrentTool;
                m_map.RecordUndoAction(t.Name, m_parent.ActiveUndo());
            }

            if (HandleMouseMove(-100, -100))
            {
                pbMap.Invalidate();
            }
            m_fEditBackgroundMap_Selecting = false;
        }
Exemplo n.º 4
0
        private void pbPaletteSelect_MouseUp(object sender, MouseEventArgs e)
        {
            if (!m_fSubpaletteSelect_Selecting)
            {
                return;
            }
            m_fSubpaletteSelect_Selecting = false;

            // Record an undo action if the current palette selection has changed
            if (m_fSubpaletteSelect_OriginalSubpalette != m_palette.CurrentSubpaletteId)
            {
                Sprite s = m_parent.ActiveSprite();
                s.RecordUndoAction("palette select", m_parent.ActiveUndo());
            }
        }