Skip to content
Snippets Groups Projects
Commit 706317a6 authored by codeimp's avatar codeimp
Browse files

@ same as r1422 but for actions and arguments on things

parent 01c071de
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ namespace CodeImp.DoomBuilder.Windows
private ICollection<Thing> things;
private List<TreeNode> nodes;
private ThingTypeInfo thinginfo;
private bool preventchanges = false;
#endregion
......@@ -95,6 +96,8 @@ namespace CodeImp.DoomBuilder.Windows
{
Thing ft;
preventchanges = true;
// Keep this list
this.things = things;
if(things.Count > 1) this.Text = "Edit Things (" + things.Count + ")";
......@@ -170,6 +173,8 @@ namespace CodeImp.DoomBuilder.Windows
// Custom fields
fieldslist.SetValues(t.Fields, false);
}
preventchanges = false;
}
#endregion
......@@ -244,6 +249,16 @@ namespace CodeImp.DoomBuilder.Windows
arg2.Setup(arginfo[2]);
arg3.Setup(arginfo[3]);
arg4.Setup(arginfo[4]);
// Zero all arguments when linedef action 0 (normal) is chosen
if(!preventchanges && (showaction == 0))
{
arg0.SetValue(0);
arg1.SetValue(0);
arg2.SetValue(0);
arg3.SetValue(0);
arg4.SetValue(0);
}
}
// Browse Action clicked
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment