-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BxD Field Exporter is final version, bug in image files that makes it…
… unussable Former-commit-id: 974d03f
- Loading branch information
Showing
51 changed files
with
1,889 additions
and
1,154 deletions.
There are no files selected for viewing
43 changes: 19 additions & 24 deletions
43
...exporter_research/BxDFieldExporter/BxDFieldExporter/BoxColliderPropertiesForm.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 12 additions & 26 deletions
38
exporters/exporter_research/BxDFieldExporter/BxDFieldExporter/BoxColliderPropertiesForm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Drawing; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace BxDFieldExporter | ||
{ | ||
namespace BxDFieldExporter { | ||
// contains the box collider options for the component props form | ||
public partial class BoxColliderPropertiesForm : UserControl | ||
{ | ||
public partial class BoxColliderPropertiesForm : UserControl { | ||
/// <summary> | ||
/// Initailizes a new instance of the BoxColliderPropertiesFormClass. | ||
/// </summary> | ||
/// | ||
FieldDataType field;// fieldtype to write saves to | ||
public BoxColliderPropertiesForm() | ||
{ | ||
FieldDataComponent field;// fieldtype to write saves to | ||
public BoxColliderPropertiesForm() { | ||
InitializeComponent();// inits and populates the form | ||
} | ||
// these methods react to changes in the fields so we can save the data | ||
public void XChanged(object sender, EventArgs e) | ||
{ | ||
field.X = (double) xScaleUpDown.Value; | ||
public void XChanged(object sender, EventArgs e) { | ||
field.X = (double)xScaleUpDown.Value; | ||
} | ||
public void YChanged(object sender, EventArgs e) | ||
{ | ||
public void YChanged(object sender, EventArgs e) { | ||
field.Y = (double)yScaleUpDown.Value; | ||
} | ||
public void ZChanged(object sender, EventArgs e) | ||
{ | ||
public void ZChanged(object sender, EventArgs e) { | ||
field.Z = (double)zScaleUpDown.Value; | ||
} | ||
public void readFromData(FieldDataType d) | ||
{// reads from the data so user can see the same values from the last time they entered them | ||
public void readFromData(FieldDataComponent d) {// reads from the data so user can see the same values from the last time they entered them | ||
field = d; | ||
xScaleUpDown.Value = (decimal) field.X; | ||
yScaleUpDown.Value = (decimal) field.Y; | ||
zScaleUpDown.Value = (decimal) field.Z; | ||
xScaleUpDown.Value = (decimal)field.X; | ||
yScaleUpDown.Value = (decimal)field.Y; | ||
zScaleUpDown.Value = (decimal)field.Z; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.