mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-04 10:51:13 +00:00
Added, action argument inputs: added "<" and ">" prefixes. These decrement/increment given value by selected map element number.
Changed, action argument inputs: "+++" and "---" prefixes now do the same thing as they do in other numeric controls (e.g. add/subtract given value multiplied by selected map element number to/from initial value). Changed, action argument inputs: changed value colors, added tooltips.
This commit is contained in:
parent
ea57d45eb3
commit
fbca0922f4
6 changed files with 50 additions and 27 deletions
|
@ -133,7 +133,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
#region ================== Apply
|
||||
|
||||
public void Apply(Linedef l, int offset)
|
||||
public void Apply(Linedef l, int step)
|
||||
{
|
||||
//mxd. Script name/number handling
|
||||
// We can't rely on control visibility here, because all controlls will be invisible if ArgumentsControl is invisible
|
||||
|
@ -161,7 +161,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
// Apply classic arg
|
||||
case ArgZeroMode.DEFAULT:
|
||||
l.Args[0] = arg0.GetResult(l.Args[0], offset);
|
||||
l.Args[0] = arg0.GetResult(l.Args[0], step);
|
||||
if(l.Fields.ContainsKey("arg0str")) l.Fields.Remove("arg0str");
|
||||
break;
|
||||
|
||||
|
@ -169,13 +169,13 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
}
|
||||
|
||||
// Apply the rest of args
|
||||
l.Args[1] = arg1.GetResult(l.Args[1], offset);
|
||||
l.Args[2] = arg2.GetResult(l.Args[2], offset);
|
||||
l.Args[3] = arg3.GetResult(l.Args[3], offset);
|
||||
l.Args[4] = arg4.GetResult(l.Args[4], offset);
|
||||
l.Args[1] = arg1.GetResult(l.Args[1], step);
|
||||
l.Args[2] = arg2.GetResult(l.Args[2], step);
|
||||
l.Args[3] = arg3.GetResult(l.Args[3], step);
|
||||
l.Args[4] = arg4.GetResult(l.Args[4], step);
|
||||
}
|
||||
|
||||
public void Apply(Thing t, int offset)
|
||||
public void Apply(Thing t, int step)
|
||||
{
|
||||
//mxd. Script name/number handling
|
||||
// We can't rely on control visibility here, because all controlls will be invisible if ArgumentsControl is invisible
|
||||
|
@ -203,7 +203,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
// Apply classic arg
|
||||
case ArgZeroMode.DEFAULT:
|
||||
t.Args[0] = arg0.GetResult(t.Args[0], offset);
|
||||
t.Args[0] = arg0.GetResult(t.Args[0], step);
|
||||
if(t.Fields.ContainsKey("arg0str")) t.Fields.Remove("arg0str");
|
||||
break;
|
||||
|
||||
|
@ -211,10 +211,10 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
}
|
||||
|
||||
// Apply the rest of args
|
||||
t.Args[1] = arg1.GetResult(t.Args[1], offset);
|
||||
t.Args[2] = arg2.GetResult(t.Args[2], offset);
|
||||
t.Args[3] = arg3.GetResult(t.Args[3], offset);
|
||||
t.Args[4] = arg4.GetResult(t.Args[4], offset);
|
||||
t.Args[1] = arg1.GetResult(t.Args[1], step);
|
||||
t.Args[2] = arg2.GetResult(t.Args[2], step);
|
||||
t.Args[3] = arg3.GetResult(t.Args[3], step);
|
||||
t.Args[4] = arg4.GetResult(t.Args[4], step);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue