Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     ScriptFunctions me = new ScriptFunctions();
     if (me.CheckMod(m_ExePath, obj.Name))
     {
         ModEditor me2 = new ModEditor(obj, me, m_ExePath);
         me2.ShowDialog();
         obj = me2.GetObj();
         boxMod.Clear();
         foreach (byte b in obj.modbuf)
             boxMod.Text += String.Format("{0:x2} ", b);
     }
     else
     {
         MessageBox.Show("There is no mod editor for that object.");
     }
 }
Ejemplo n.º 2
0
 public ModEditor(Map.Object objectMod,ScriptFunctions scrfuncs, string path)
 {
     InitializeComponent();
     ClearNodes();
     obj = objectMod;
     Scripting = scrfuncs;
     lblname.Text = obj.Name;
     lblextent.Text = obj.Extent.ToString();
     m_ExePath = path;
     HandleMod();
 }