public void init(AssetManagerForm mainForm, DisplayObject obj) { this.mainForm = mainForm; initFromExistingSprite(obj); DisplayObjectProperties(); }
public void init(AssetManagerForm mainForm, CoronaSpriteSet set) { this.mainForm = mainForm; initFromExistingSpriteSet(set); DisplayObjectProperties(); }
/////////////////////////////////// //Custom Constructor /////////////////////////////////// public FontManagerPanel(FontItem customFont, AssetManagerForm mainForm) { InitializeComponent(); this.MainForm = mainForm; this.customFont = customFont; refreshPanel(); }
public void init(AssetManagerForm mainForm, Snippet snippet) { form = this.snippetEditor1.NewDocument(); this.mainForm = mainForm; this.snippet = snippet; this.form.Scintilla.Text = snippet.Function; this.DisplayObjectProperties(); }
/////////////////////////////////// //Custom Constructor /////////////////////////////////// // allow Reloading of an AudioObject public AudioManagerPanel(AudioObject AudioInformation, AssetManagerForm mainForm) { InitializeComponent(); this.MainForm = mainForm; AudioFile = AudioInformation; nameTb.Enabled = false; this.nameTb.Text=AudioFile.name; this.CompteurVolumeTb.Text = AudioFile.volume.ToString(); this.repeatNUD.Value = AudioFile.loops; this.preloadCB.Checked = AudioFile.isPreloaded; if (this.AudioFile.type.Equals("STREAM")) { this.typeSoundRb.Checked = false; this.typeStreamRb.Checked = true; } else { this.typeSoundRb.Checked = true; this.typeStreamRb.Checked = false; } if (File.Exists(AudioFile.path)) { if (!AudioFile.path.Equals("")) { string[] ext = nameTb.Text.Split('.'); try { if (ext[1].ToString().ToLower() == "wav") { SoundPlayer = new Sound(AudioFile.path); } else if (ext[1].ToString().ToLower() == "ogg") { MusicFile = new Music(AudioFile.path); } else { SoundPlayer = null; MusicFile = null; } } catch (Exception ex) { MessageBox.Show("Audio file loading failed !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }
/////////////////////////////////// //Custom Constructor /////////////////////////////////// // allow Reloading of an AudioObject public AudioManagerPanel(AudioObject AudioInformation, AssetManagerForm mainForm) { InitializeComponent(); this.MainForm = mainForm; AudioFile = AudioInformation; nameTb.Enabled = false; this.nameTb.Text = AudioFile.name; this.CompteurVolumeTb.Text = AudioFile.volume.ToString(); this.repeatNUD.Value = AudioFile.loops; this.preloadCB.Checked = AudioFile.isPreloaded; if (this.AudioFile.type.Equals("STREAM")) { this.typeSoundRb.Checked = false; this.typeStreamRb.Checked = true; } else { this.typeSoundRb.Checked = true; this.typeStreamRb.Checked = false; } if (File.Exists(AudioFile.path)) { if (!AudioFile.path.Equals("")) { string[] ext = nameTb.Text.Split('.'); try { if (ext[1].ToString().ToLower() == "wav") { SoundPlayer = new Sound(AudioFile.path); } else if (ext[1].ToString().ToLower() == "ogg") { MusicFile = new Music(AudioFile.path); } else { SoundPlayer = null; MusicFile = null; } } catch (Exception ex) { MessageBox.Show("Audio file loading failed !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }
public void init(AssetManagerForm mainForm, CoronaSpriteSheet sheet) { this.mainForm = mainForm; this.sheet = sheet; if (this.sheet != null) { this.calculateSizeBt_Click(null, null); refreshFramesListView(); this.DisplayObjectProperties(); } }
public void init(AssetManagerForm mainForm,CoronaSpriteSheet sheet) { this.mainForm = mainForm; this.sheet = sheet; if (this.sheet != null) { this.calculateSizeBt_Click(null, null); refreshFramesListView(); this.DisplayObjectProperties(); } }
/////////////////////////////////// //Default Constructor /////////////////////////////////// public FontManagerPanel(AssetManagerForm mainForm) { InitializeComponent(); this.MainForm = mainForm; }
public void init(DisplayObject obj,AssetManagerForm mainForm) { this.mainForm = mainForm; initFromExistingSprite(obj); }
public void init(DisplayObject obj, AssetManagerForm mainForm) { this.mainForm = mainForm; initFromExistingSprite(obj); }
public void setManagerParent(AssetManagerForm mainForm) { this.mainForm = mainForm; }
private void openAssetManager_Click(object sender, EventArgs e) { //Create a form if(currentAssetManager == null) currentAssetManager = new AssetManagerForm(); DialogResult dr = currentAssetManager.ShowDialog(this); this.refreshAssetsProjectsBt_Click(null, null); }