Skip to content

Commit

Permalink
BxD Field Exporter is final version, bug in image files that makes it…
Browse files Browse the repository at this point in the history
… unussable

Former-commit-id: 974d03f
  • Loading branch information
TheJayRPG committed Aug 26, 2016
1 parent e4379c8 commit ae07f11
Show file tree
Hide file tree
Showing 51 changed files with 1,889 additions and 1,154 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,28 +117,27 @@
<Compile Include="ComponentPropertiesForm.Designer.cs">
<DependentUpon>ComponentPropertiesForm.cs</DependentUpon>
</Compile>
<Compile Include="EditCoordinate.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EditCoordinate.Designer.cs" />
<Compile Include="EnterName.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="EnterName.Designer.cs">
<DependentUpon>EnterName.cs</DependentUpon>
</Compile>
<Compile Include="FieldDataType.cs" />
<Compile Include="FileReader.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FieldSaver.cs" />
<Compile Include="JointResolver.cs" />
<Compile Include="MeshColliderPropertiesForm.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="MeshColliderPropertiesForm.Designer.cs">
<DependentUpon>MeshColliderPropertiesForm.cs</DependentUpon>
</Compile>
<Compile Include="pathInput.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="pathInput.Designer.cs" />
<Compile Include="RobotSaver.cs" />
<Compile Include="PictureDispConverter.cs" />
<Compile Include="Resource.Designer.cs" />
<Compile Include="SphereColliderPropertiesForm.cs">
<SubType>UserControl</SubType>
</Compile>
Expand All @@ -165,10 +164,8 @@
<EmbeddedResource Include="ComponentPropertiesForm.resx">
<DependentUpon>ComponentPropertiesForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FileReader.resx">
<DependentUpon>FileReader.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="pathInput.resx" />
<EmbeddedResource Include="EditCoordinate.resx" />
<EmbeddedResource Include="Resource.resx" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
Expand Down
Loading

0 comments on commit ae07f11

Please sign in to comment.