コード例 #1
0
 public RenamerClassOfObject(PackContent obj)
 {
     this.obj = obj;
 }
コード例 #2
0
 private void treeView1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         lastselectednode = treeView1.SelectedNode;
         string ttt = treeView1.SelectedNode.Text;
         if (!ttt.EndsWith("\0") && treeView1.SelectedNode.ImageIndex != 2)
             MessageBox.Show(ttt + " NOT ENDS WITH \\0!!");
         CurrentContent = packs.findobject(treeView1.SelectedNode.Text, ref contentcoords);
         if (CurrentContent != null)
         {
            Eggs.Bufferize(CurrentContent);
             if (CurrentContent.createpropertieswindow(packs.packs[0], treeView1) == System.Windows.Forms.DialogResult.OK)
             {
                 //Set any changed data
                 treeView1.SelectedNode.Text = CurrentContent.name;
             }
             CurrentContent.ViewBasicInfo(comboBox1, comboBox2, label1, label2, label3, label4, groupBox1, textBox1, button2, button1);
         }
     }
 }
コード例 #3
0
 void treeView1NodeMouseClick(TreeNode tn)
 {
     CurrentContent = packs.findobject(tn.Text, ref contentcoords);
     if (CurrentContent != null)
         CurrentContent.ViewBasicInfo(comboBox1, comboBox2, label1, label2, label3, label4, groupBox1, textBox1, button2, button1);
     else
         ClearInterface();
 }
コード例 #4
0
        private void treeView1_KeyUp(object sender, KeyEventArgs e)
        {
            if (treeView1.SelectedNode != null && treeView1.SelectedNode != lastselectednode)
            {
                lastselectednode = treeView1.SelectedNode;
                treeView1NodeMouseClick(treeView1.SelectedNode);
            }

            if (e.KeyCode == Keys.Delete)
            {
                CurrentContent = packs.findobject(textBox1.Text + "\0", ref contentcoords);
                if (MessageBox.Show("Are you shure want to drop this object (operation cannot to be canceled!)?", "Droping object", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
                {
                    if (contentcoords.X != -1 && contentcoords.Y != -1)
                    {
                        packs.Drop(contentcoords.X, contentcoords.Y);
                        ClearInterface();
                        treeView1.Nodes.Remove(treeView1.SelectedNode);
                        treeView1NodeMouseClick(treeView1.SelectedNode);
                    }
                }
            }
        }
コード例 #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     CurrentContent = packs.findobject(textBox1.Text+"\0", ref contentcoords);
     if (CurrentContent!= null && CurrentContent.Enginereadedobject.Count == 0)
     {
         if (MessageBox.Show("Are you shure want to drop this object (operation cannot to be canceled!)?", "Droping object", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
         {
             if (contentcoords.X != -1 && contentcoords.Y != -1)
             {
               Eggs.UnBufferize(CurrentContent);
                 packs.Drop(contentcoords.X, contentcoords.Y);
                 ClearInterface();
                 treeView1.Nodes.Remove(treeView1.SelectedNode);
                 treeView1NodeMouseClick(treeView1.SelectedNode);
             }
         }
     }
     else
     {
         MessageBox.Show("cannot to remove this object becouse its loaded to the engine");
     }
 }