private void RenameActors(object sender, EventArgs args) { string ActorName = Path.GetFileNameWithoutExtension(Text); RenameDialog dialog = new RenameDialog(); dialog.SetString(ActorName); if (dialog.ShowDialog() == DialogResult.OK) { string NewActorName = dialog.textBox1.Text; Text = NewActorName + ".szs"; foreach (TreeNode node in Nodes) { string NodeName = Path.GetFileNameWithoutExtension(node.Text); string ext = Utils.GetExtension(node.Text); if (NodeName == ActorName) { node.Text = $"{NewActorName}{ext}"; } else if (node.Text.Contains("Attribute.byml")) { node.Text = $"{NewActorName}Attribute.byml"; } } } }
public virtual void Rename() { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { Text = dialog.textBox1.Text; } }
private void Rename(object sender, EventArgs args) { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { Text = dialog.textBox1.Text; } }
public void Rename() { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { RenameBone(dialog.textBox1.Text); } }
private void RenameFont(TreeNode selectedNode, int index) { RenameDialog dlg = new RenameDialog(); dlg.SetString(selectedNode.Text); if (dlg.ShowDialog() == DialogResult.OK) { ActiveLayout.Fonts[index] = dlg.textBox1.Text; selectedNode.Text = dlg.textBox1.Text; } }
private void Rename(object sender, EventArgs args) { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { ((FMDL)Parent.Parent).materials.Remove(Text); Text = dialog.textBox1.Text; ((FMDL)Parent.Parent).materials.Add(Text, this); } }
public override void RenameParamEntry(ListViewItem SelectedItem) { if (SelectedItem.Tag != null && SelectedItem.Tag is ParamEntry) { RenameDialog dialog = new RenameDialog(); dialog.SetString(SelectedItem.Text); if (dialog.ShowDialog() == DialogResult.OK) { string NewString = dialog.textBox1.Text; ((ParamEntry)SelectedItem.Tag).HashString = NewString; } } }
public override void Rename() { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { //Update dictionary key ((BFRESGroupNode)Parent).ResourceNodes.Remove(Text); Text = dialog.textBox1.Text; ((BFRESGroupNode)Parent).ResourceNodes.Add(Text, this); } }
private void Rename(object sender, EventArgs args) { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { ((BinaryTextureContainer)Parent).Textures.Remove(Text); Text = dialog.textBox1.Text; ((BinaryTextureContainer)Parent).Textures.Add(Text, this); } }
private void RenameAction(object sender, EventArgs args) { RenameDialog dialog = new RenameDialog(); dialog.SetString(Text); if (dialog.ShowDialog() == DialogResult.OK) { Text = dialog.textBox1.Text; if (DirectoryContainer != null) { DirectoryContainer.Name = Text; } } }
private void BatchRenameGalaxy(object sender, EventArgs args) { string ActorName = Path.GetFileNameWithoutExtension(FileName); RenameDialog dialog = new RenameDialog(); dialog.SetString(ActorName); if (dialog.ShowDialog() == DialogResult.OK) { string NewActorName = dialog.textBox1.Text; FileName = NewActorName + ".arc"; foreach (var file in files) { file.FileName = file.FileName.Replace(ActorName, NewActorName); file.UpdateWrapper(); } } }
private void RenameTextureAction(object sender, EventArgs e) { var selectedNode = treeView1.SelectedNode; if (selectedNode == null) { return; } int index = (int)selectedNode.Tag; string activeTex = ActiveLayout.Textures[index]; RenameDialog dlg = new RenameDialog(); dlg.SetString(activeTex); if (dlg.ShowDialog() == DialogResult.OK) { ActiveLayout.Textures[index] = dlg.textBox1.Text; selectedNode.Text = dlg.textBox1.Text; } }