mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Fix click events for path settings
This commit is contained in:
parent
6c8fac8bc1
commit
828e3ee2d1
3 changed files with 8 additions and 8 deletions
Binary file not shown.
4
Toolbox/GUI/Settings.Designer.cs
generated
4
Toolbox/GUI/Settings.Designer.cs
generated
|
@ -1096,7 +1096,7 @@
|
|||
this.specularCubemapPathTB.Name = "specularCubemapPathTB";
|
||||
this.specularCubemapPathTB.Size = new System.Drawing.Size(197, 20);
|
||||
this.specularCubemapPathTB.TabIndex = 0;
|
||||
this.specularCubemapPathTB.TextChanged += new System.EventHandler(this.cubemapPathTB_TextChanged);
|
||||
this.specularCubemapPathTB.Click += new System.EventHandler(this.cubemapPathTB_Click);
|
||||
//
|
||||
// stLabel16
|
||||
//
|
||||
|
@ -1114,7 +1114,7 @@
|
|||
this.diffuseCubemapPathTB.Name = "diffuseCubemapPathTB";
|
||||
this.diffuseCubemapPathTB.Size = new System.Drawing.Size(197, 20);
|
||||
this.diffuseCubemapPathTB.TabIndex = 3;
|
||||
this.diffuseCubemapPathTB.TextChanged += new System.EventHandler(this.diffuseCubemapPathTB_TextChanged);
|
||||
this.diffuseCubemapPathTB.Click += new System.EventHandler(this.diffuseCubemapPathTBB_Click);
|
||||
//
|
||||
// Settings
|
||||
//
|
||||
|
|
|
@ -442,7 +442,7 @@ namespace Toolbox
|
|||
Runtime.ObjectEditor.OpenModelsOnOpen = modelLoadArchive.Checked;
|
||||
}
|
||||
|
||||
private void cubemapPathTB_TextChanged(object sender, EventArgs e) {
|
||||
private void cubemapPathTB_Click(object sender, EventArgs e) {
|
||||
FolderSelectDialog sfd = new FolderSelectDialog();
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
|
@ -451,11 +451,7 @@ namespace Toolbox
|
|||
}
|
||||
}
|
||||
|
||||
private void chkUseSkyobx_CheckedChanged(object sender, EventArgs e) {
|
||||
Runtime.PBR.UseSkybox = chkUseSkyobx.Checked;
|
||||
}
|
||||
|
||||
private void diffuseCubemapPathTB_TextChanged(object sender, EventArgs e) {
|
||||
private void diffuseCubemapPathTBB_Click(object sender, EventArgs e) {
|
||||
FolderSelectDialog sfd = new FolderSelectDialog();
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
|
@ -463,5 +459,9 @@ namespace Toolbox
|
|||
Runtime.PBR.DiffuseCubeMapPath = diffuseCubemapPathTB.Text;
|
||||
}
|
||||
}
|
||||
|
||||
private void chkUseSkyobx_CheckedChanged(object sender, EventArgs e) {
|
||||
Runtime.PBR.UseSkybox = chkUseSkyobx.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue