/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BrowseSoundBox_Click(object sender, EventArgs e) { if (EventSquare == null) { return; } StorageBrowserForm form = new StorageBrowserForm(); form.MultiSelect = false; if (form.ShowDialog() != DialogResult.OK) { return; } SoundNameBox.Text = form.FileName; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ChangeTextureBox_Click(object sender, EventArgs e) { StorageBrowserForm form = new StorageBrowserForm(); form.MultiSelect = false; form.FileName = TileSet.TextureName; if (form.ShowDialog() != DialogResult.OK) { return; } TextureNameBox.Text = form.FileName; TileSet.TextureName = form.FileName; if (TileSet.Texture != null) { TileSet.Texture.Dispose(); } TileSet.Texture = new Texture2D(form.FileName); }
private void LoadAttackSoundBox_Click(object sender, EventArgs e) { StorageBrowserForm form = new StorageBrowserForm(); form.ShowDialog(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BrowsePictureBox_Click(object sender, EventArgs e) { if (EventSquare == null) return; StorageBrowserForm form = new StorageBrowserForm(); form.MultiSelect = false; if (form.ShowDialog() != DialogResult.OK) return; PictureNameBox.Text = form.FileName; }