/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }