Ejemplo n.º 1
0
        /// <summary>
        /// A new subpalette has been selected, notify all other windows that are potentially
        /// impacted by this change
        /// </summary>
        public void HandleSubpaletteSelectChange(Palette p)
        {
            p.PaletteWindow().SubpaletteSelectChanged();
            Spriteset ss;

            if (p.IsBackground)
            {
                ss = m_doc.BackgroundSpritesets.Current;
                Map m = ActiveMap();
                if (m != null)
                {
                    m.MapWindow.SubpaletteSelectChanged();
                }
            }
            else
            {
                ss = m_doc.Spritesets.Current;
            }

            ss.SpritesetWindow.SubpaletteSelectChanged();
            ss.SpriteWindow.SubpaletteSelectChanged();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// A color value has changed in the current palette.
        /// </summary>
        public void HandleColorDataChange(Palette p)
        {
            m_doc.FlushBitmaps();

            p.PaletteWindow().ColorDataChanged();
            Spriteset ss;

            if (p.IsBackground)
            {
                ss = m_doc.BackgroundSpritesets.Current;
                Map m = ActiveMap();
                if (m != null)
                {
                    m.MapWindow.ColorDataChanged();
                }
            }
            else
            {
                ss = m_doc.Spritesets.Current;
            }

            ss.SpritesetWindow.ColorDataChanged();
            ss.SpriteWindow.ColorDataChanged();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// A new color has been selected in the subpalette. Update everyone
 /// who needs to be notified.
 /// </summary>
 public void HandleColorSelectChange(Palette p)
 {
     p.PaletteWindow().ColorSelectChanged();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// A new subpalette has been selected, notify all other windows that are potentially
        /// impacted by this change
        /// </summary>
        public void HandleSubpaletteSelectChange(Palette p)
        {
            p.PaletteWindow().SubpaletteSelectChanged();
            Spriteset ss;
            if (p.IsBackground)
            {
                ss = m_doc.BackgroundSpritesets.Current;
                Map m = ActiveMap();
                if (m != null)
                    m.MapWindow.SubpaletteSelectChanged();
            }
            else
            {
                ss = m_doc.Spritesets.Current;
            }

            ss.SpritesetWindow.SubpaletteSelectChanged();
            ss.SpriteWindow.SubpaletteSelectChanged();
        }
Ejemplo n.º 5
0
 /// <summary>
 /// A new color has been selected in the subpalette. Update everyone
 /// who needs to be notified.
 /// </summary>
 public void HandleColorSelectChange(Palette p)
 {
     p.PaletteWindow().ColorSelectChanged();
 }
Ejemplo n.º 6
0
        /// <summary>
        /// A color value has changed in the current palette.
        /// </summary>
        public void HandleColorDataChange(Palette p)
        {
            m_doc.FlushBitmaps();

            p.PaletteWindow().ColorDataChanged();
            Spriteset ss;
            if (p.IsBackground)
            {
                ss = m_doc.BackgroundSpritesets.Current;
                Map m = ActiveMap();
                if (m != null)
                    m.MapWindow.ColorDataChanged();
            }
            else
            {
                ss = m_doc.Spritesets.Current;
            }

            ss.SpritesetWindow.ColorDataChanged();
            ss.SpriteWindow.ColorDataChanged();
        }