public SpriteControl(XElement lang, SpriteBase sprite, ImageBase image, PaletteBase palette) { InitializeComponent(); this.sprite = sprite; this.image = image; this.palette = palette; this.lang = lang; Read_Language(lang); Update_Info(); }
public SpriteControl(IPluginHost pluginHost) { InitializeComponent(); this.pluginHost = pluginHost; this.sprite = pluginHost.Get_Sprite(); this.image = pluginHost.Get_Image(); this.palette = pluginHost.Get_Palette(); Read_Language(); Update_Info(); }
public SpriteControl(IPluginHost pluginHost, SpriteBase sprite, ImageBase image, PaletteBase palette) { InitializeComponent(); this.sprite = sprite; this.image = image; this.palette = palette; this.pluginHost = pluginHost; Read_Language(); Update_Info(); }
public AnimationControl(IPluginHost pluginHost, NANR ani) { InitializeComponent(); Read_Language(); this.pluginHost = pluginHost; this.palette = pluginHost.Get_Palette(); this.image = pluginHost.Get_Image(); this.sprite = pluginHost.Get_Sprite(); this.ani = ani; isAni = true; if (ani.Struct.abnk.nBanks == 0) { MessageBox.Show("No animations."); isAni = false; tempo.Enabled = false; comboAni.Enabled = false; btnNext.Enabled = false; btnPlay.Enabled = false; btnPrevious.Enabled = false; btnSave.Enabled = false; btnStop.Enabled = false; txtTime.Enabled = false; checkCeldas.Enabled = false; checkEntorno.Enabled = false; checkImage.Enabled = false; checkNumeros.Enabled = false; checkTransparencia.Enabled = false; } for (int i = 0; i < ani.Names.Length; i++) comboAni.Items.Add(ani.Names[i]); if (isAni) comboAni.SelectedIndex = 0; ShowInfo(); Get_Ani(); tempo.Stop(); tempo.Interval = Convert.ToInt32(txtTime.Text); if (isAni) aniBox.Image = bitAni[0]; }
public void Set_Sprite(SpriteBase sprite) { this.sprite = sprite; }