public void LoadEditor(ref NSE_Framework.Controls.Editor Editor) { if (Editor.CurrentSprite.Palette != null) { this.Editor = Editor; this.Editor.ParentSelectColor = this; Draw(); if (SelectedEditorChanged != null) { SelectedEditorChanged(this, new EventArgs()); } } }
public void LoadEditor(ref NSE_Framework.Controls.Editor Editor) { this.MainSelectColor.LoadEditor(ref Editor); this.MainSelectColor.Index = Editor.SelectedColorIndex; if (MainSelectColor.Editor.CurrentSprite.CompressedPalette != -1) { this.Text = "Select Color - Compressed"; } else { this.Text = "Select Color"; } }