summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUIFactory.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-01 23:36:52 -0700
committerJacob Palecki <[email protected]>2020-09-01 23:36:52 -0700
commitbf747ca2439a371ef74e21a49c1e8bc880d4d3e2 (patch)
tree6265bea551877d84803d731cec7cd0b3b3d823ac /grapher/Models/AccelGUIFactory.cs
parentSecond half - the parts in place (diff)
downloadrawaccel-bf747ca2439a371ef74e21a49c1e8bc880d4d3e2.tar.xz
rawaccel-bf747ca2439a371ef74e21a49c1e8bc880d4d3e2.zip
Small fixes, correctly align labels and boxes
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
-rw-r--r--grapher/Models/AccelGUIFactory.cs31
1 files changed, 24 insertions, 7 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index a75207b..3c2a773 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -114,14 +114,18 @@ namespace grapher.Models
form,
0,
rotationLabel,
+ 0,
new ActiveValueLabel(rotationActiveLabel, activeValueTitle),
"Rotation");
+ var optionSetYLeft = rotation.Left + rotation.Width;
+
var weightX = new Option(
weightBoxX,
form,
1,
weightLabelX,
+ 0,
new ActiveValueLabel(weightActiveXLabel, activeValueTitle),
"Weight");
@@ -130,6 +134,7 @@ namespace grapher.Models
form,
1,
weightLabelY,
+ optionSetYLeft,
new ActiveValueLabel(weightActiveYLabel, activeValueTitle),
"Weight");
@@ -138,6 +143,7 @@ namespace grapher.Models
form,
0,
capLabelX,
+ 0,
new ActiveValueLabel(capActiveXLabel, activeValueTitle),
"Cap");
@@ -146,6 +152,7 @@ namespace grapher.Models
form,
0,
capLabelY,
+ optionSetYLeft,
new ActiveValueLabel(capActiveYLabel, activeValueTitle),
"Cap");
@@ -154,6 +161,7 @@ namespace grapher.Models
form,
0,
offsetLabelX,
+ 0,
new ActiveValueLabel(offsetActiveLabelX, activeValueTitle),
"Offset");
@@ -162,6 +170,7 @@ namespace grapher.Models
form,
0,
offsetLabelY,
+ optionSetYLeft,
new ActiveValueLabel(offsetActiveLabelY, activeValueTitle),
"Offset");
@@ -169,32 +178,38 @@ namespace grapher.Models
var accelerationX = new Option(
new Field(accelerationBoxX, form, 0),
constantOneLabelX,
- new ActiveValueLabel(accelerationActiveLabelX, activeValueTitle));
+ new ActiveValueLabel(accelerationActiveLabelX, activeValueTitle),
+ 0);
var accelerationY = new Option(
new Field(accelerationBoxY, form, 0),
constantOneLabelY,
- new ActiveValueLabel(accelerationActiveLabelY, activeValueTitle));
+ new ActiveValueLabel(accelerationActiveLabelY, activeValueTitle),
+ optionSetYLeft);
var limitOrExponentX = new Option(
new Field(limitBoxX, form, 2),
constantTwoLabelX,
- new ActiveValueLabel(limitExpActiveLabelX, activeValueTitle));
+ new ActiveValueLabel(limitExpActiveLabelX, activeValueTitle),
+ 0);
var limitOrExponentY = new Option(
new Field(limitBoxY, form, 2),
constantTwoLabelY,
- new ActiveValueLabel(limitExpActiveLabelY, activeValueTitle));
+ new ActiveValueLabel(limitExpActiveLabelY, activeValueTitle),
+ optionSetYLeft);
var midpointX = new Option(
new Field(midpointBoxX, form, 0),
constantThreeLabelX,
- new ActiveValueLabel(midpointActiveLabelX, activeValueTitle));
+ new ActiveValueLabel(midpointActiveLabelX, activeValueTitle),
+ 0);
var midpointY = new Option(
new Field(midpointBoxY, form, 0),
constantThreeLabelY,
- new ActiveValueLabel(midpointActiveLabelY, activeValueTitle));
+ new ActiveValueLabel(midpointActiveLabelY, activeValueTitle),
+ optionSetYLeft);
var accelerationOptionsX = new AccelTypeOptions(
accelTypeDropX,
@@ -236,16 +251,18 @@ namespace grapher.Models
var optionsSetX = new AccelOptionSet(
optionSetXTitle,
+ rotationBox.Top + rotationBox.Height + Constants.OptionVerticalSeperation,
accelerationOptionsX,
accelerationX,
capOptionsX,
weightX,
offsetX,
limitOrExponentX,
- midpointX);
+ midpointX); ;
var optionsSetY = new AccelOptionSet(
optionSetYTitle,
+ rotationBox.Top + rotationBox.Height + Constants.OptionVerticalSeperation,
accelerationOptionsY,
accelerationY,
capOptionsY,