mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
constants for minimums and maximums in CurveLinedefsForm
This commit is contained in:
parent
132ef51429
commit
747a8929a9
1 changed files with 17 additions and 1 deletions
|
@ -38,7 +38,14 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
public partial class CurveLinedefsForm : DelayedForm
|
||||
{
|
||||
#region ================== Variables
|
||||
#region ================== Constants
|
||||
|
||||
private int MIN_VERTICES = 1;
|
||||
private int MAX_VERTICES = 200;
|
||||
private int MIN_DISTANCE = 0;
|
||||
private int MAX_DISTANCE = 10000;
|
||||
private int MIN_ANGLE = 0;
|
||||
private int MAX_ANGLE = 180;
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -59,6 +66,15 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
|
||||
// Set negative properties for stupid
|
||||
// scrollbars that work the other way around
|
||||
verticesbar.Maximum = -MIN_VERTICES;
|
||||
verticesbar.Minimum = -MAX_VERTICES;
|
||||
distancebar.Maximum = -MIN_DISTANCE;
|
||||
distancebar.Minimum = -MAX_DISTANCE;
|
||||
anglebar.Maximum = -MIN_ANGLE;
|
||||
anglebar.Minimum = -MAX_ANGLE;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue