/// <summary> /// One of the spritetypes has changed. /// E.g., by having a sprite added, deleted or having its tile geometry changed. /// </summary> public void HandleSpriteTypeChanged(Spriteset ss) { m_doc.HasUnsavedChanges = true; SpritesetForm win = ss.SpritesetWindow; if (win != null) { win.RecalcScrollHeights(); win.AdjustScrollbar(); } }
public Spriteset(Document doc, string strName, int id, string strDesc, Palette pal) { m_doc = doc; m_strName = strName; m_id = id; m_strDesc = strDesc; m_palette = pal; m_fIsBackground = pal.IsBackground; m_Maps = new List <Map>(); if (m_doc.Owner != null) { m_winSpriteset = new SpritesetForm(m_doc.Owner, this);; m_winSprite = new SpriteForm(m_doc.Owner, this, CurrentSprite); } }
public Spriteset(Document doc, string strName, int id, string strDesc, Palette pal) { m_doc = doc; m_strName = strName; m_id = id; m_strDesc = strDesc; m_palette = pal; m_fIsBackground = pal.IsBackground; m_Maps = new List<Map>(); if (m_doc.Owner != null) { m_winSpriteset = new SpritesetForm(m_doc.Owner, this); ; m_winSprite = new SpriteForm(m_doc.Owner, this, CurrentSprite); } }