mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
Added shortcut actions for Insert Things Radially Mode and changed the default values for number and radius.
This commit is contained in:
parent
ee1233d642
commit
8617836230
5 changed files with 106 additions and 9 deletions
|
@ -163,6 +163,10 @@ shortcuts
|
|||
buildermodes_increasesubdivlevel = 131066;
|
||||
buildermodes_increasebevel = 196602;
|
||||
buildermodes_decreasesubdivlevel = 131067;
|
||||
buildermodes_decreasenumber = 196603;
|
||||
buildermodes_increaseradius = 131066;
|
||||
buildermodes_increasenumber = 196602;
|
||||
buildermodes_decreaseradius = 131067;
|
||||
buildermodes_classicpaintselect = 4;
|
||||
builder_gztogglevisualvertices = 262230;
|
||||
builder_cleargroup8 = 196664;
|
||||
|
|
|
@ -306,5 +306,53 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Actions
|
||||
|
||||
[BeginAction("increasenumber")]
|
||||
protected void IncreaseNumber()
|
||||
{
|
||||
if (number < panel.MaxNumber)
|
||||
{
|
||||
number++;
|
||||
panel.Number = number;
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
||||
[BeginAction("decreasenumber")]
|
||||
protected void DecreaseNumber()
|
||||
{
|
||||
if (number > panel.MinNumber)
|
||||
{
|
||||
number--;
|
||||
panel.Number = number;
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
||||
[BeginAction("increaseradius")]
|
||||
protected void IncreaseRadius()
|
||||
{
|
||||
if (radius < panel.MaxRadius)
|
||||
{
|
||||
radius = Math.Min(radius + General.Map.Grid.GridSize, panel.MaxRadius);
|
||||
panel.Radius = radius;
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
||||
[BeginAction("decreaseradius")]
|
||||
protected void DecreaseRadius()
|
||||
{
|
||||
if (radius > panel.MinRadius)
|
||||
{
|
||||
radius = Math.Max(radius - General.Map.Grid.GridSize, panel.MinRadius);
|
||||
panel.Radius = radius;
|
||||
Update();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,9 +86,9 @@
|
|||
0});
|
||||
this.number.Name = "number";
|
||||
this.number.Size = new System.Drawing.Size(56, 20);
|
||||
this.number.Text = "4";
|
||||
this.number.Text = "8";
|
||||
this.number.Value = new decimal(new int[] {
|
||||
4,
|
||||
8,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
|
@ -116,9 +116,9 @@
|
|||
0});
|
||||
this.radius.Name = "radius";
|
||||
this.radius.Size = new System.Drawing.Size(56, 20);
|
||||
this.radius.Text = "32";
|
||||
this.radius.Text = "64";
|
||||
this.radius.Value = new decimal(new int[] {
|
||||
32,
|
||||
64,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public InsertThingsRadiallyOptionsPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
radius.Value = General.Map.Grid.GridSize;
|
||||
}
|
||||
|
||||
public void Register()
|
||||
|
@ -70,9 +71,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
parameter.Value = 0;
|
||||
type.Value = 1;
|
||||
snaptogrid.Checked = false;
|
||||
radius.Value = 32;
|
||||
radius.Value = General.Map.Grid.GridSize;
|
||||
blockEvents = false;
|
||||
number.Value = 4;
|
||||
number.Value = 8;
|
||||
}
|
||||
|
||||
private void browse_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -130,7 +130,7 @@ insertthingsradiallymode
|
|||
{
|
||||
title = "Insert Things Radially";
|
||||
category = "drawing";
|
||||
description = "Inserts Things radially.";
|
||||
description = "Inserts Things radially. Increase/Decrease Number of Things and Increase/Decrease Radius actions are available in this mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
|
@ -184,6 +184,50 @@ decreasebevel
|
|||
default = 196603;
|
||||
}
|
||||
|
||||
increasenumber
|
||||
{
|
||||
title = "Increase Number of Things";
|
||||
category = "drawing";
|
||||
description = "Increase number of Things in Insert Things Radially Mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
default = 196602;
|
||||
}
|
||||
|
||||
decreasenumber
|
||||
{
|
||||
title = "Decrease Number of Things";
|
||||
category = "drawing";
|
||||
description = "Decreases number of Things in Insert Things Radially Mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
default = 196603;
|
||||
}
|
||||
|
||||
increaseradius
|
||||
{
|
||||
title = "Increase Radius";
|
||||
category = "drawing";
|
||||
description = "Increase radius in Insert Things Radially Mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
default = 131066;
|
||||
}
|
||||
|
||||
decreaseradius
|
||||
{
|
||||
title = "Decrease Radius";
|
||||
category = "drawing";
|
||||
description = "Decreases radius in Insert Things Radially Mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
default = 131067;
|
||||
}
|
||||
|
||||
//mxd
|
||||
bridgemode
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue