2019-05-24 15:15:35 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2019-07-16 17:35:21 -04:00
|
|
|
|
namespace Toolbox.Library.Forms
|
2019-05-24 15:15:35 -04:00
|
|
|
|
{
|
|
|
|
|
public partial class ExportModelSettings : STForm
|
|
|
|
|
{
|
2019-11-15 19:27:03 -05:00
|
|
|
|
public DAE.ExportSettings Settings = new DAE.ExportSettings();
|
2019-05-24 15:15:35 -04:00
|
|
|
|
|
|
|
|
|
public ExportModelSettings()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2019-11-15 19:27:03 -05:00
|
|
|
|
|
|
|
|
|
chkFlipUvsVertical.Checked = Settings.FlipTexCoordsVertical;
|
|
|
|
|
exportTexturesChkBox.Checked = Settings.ExportTextures;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void exportTexturesChkBox_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.ExportTextures = exportTexturesChkBox.Checked;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void chkFlipUvsVertical_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.FlipTexCoordsVertical = chkFlipUvsVertical.Checked;
|
2019-05-24 15:15:35 -04:00
|
|
|
|
}
|
2019-11-16 08:58:10 -05:00
|
|
|
|
|
|
|
|
|
private void stCheckBox1_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.UseOldExporter = chkOldExporter.Checked;
|
|
|
|
|
}
|
2019-11-23 17:04:58 -05:00
|
|
|
|
|
|
|
|
|
private void chkVertexColors_CheckedChanged(object sender, EventArgs e) {
|
2019-11-23 17:07:31 -05:00
|
|
|
|
Settings.UseVertexColors = chkVertexColors.Checked;
|
2019-11-23 17:04:58 -05:00
|
|
|
|
}
|
2019-12-07 20:16:13 -05:00
|
|
|
|
|
|
|
|
|
private void chkExportRiggedBonesOnly_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.OnlyExportRiggedBones = chkExportRiggedBonesOnly.Checked;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void contentContainer_Paint(object sender, PaintEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2020-01-18 17:25:27 -05:00
|
|
|
|
|
|
|
|
|
private void chkApplyUVTransforms_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.TransformColorUVs = chkApplyUVTransforms.Checked;
|
|
|
|
|
}
|
2020-05-05 17:23:11 -04:00
|
|
|
|
|
|
|
|
|
private void chkTextureChannelComps_CheckedChanged(object sender, EventArgs e) {
|
|
|
|
|
Settings.UseTextureChannelComponents = chkApplyUVTransforms.Checked;
|
|
|
|
|
}
|
2019-05-24 15:15:35 -04:00
|
|
|
|
}
|
|
|
|
|
}
|