1
0
mirror of synced 2024-12-01 10:37:25 +01:00
Switch-Toolbox/File_Format_Library/GUI/BFRES/Materials/MaterialReplaceDialog.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

46 lines
1.5 KiB
C#

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;
using Toolbox.Library.Forms;
namespace FirstPlugin.Forms
{
public partial class MaterialReplaceDialog : STForm
{
bool IsLoaded = false;
public MaterialReplaceDialog()
{
InitializeComponent();
stButton2.Select();
paramChkBox.Checked = PluginRuntime.MaterialReplace.SwapShaderParams;
optionsChkBox.Checked = PluginRuntime.MaterialReplace.SwapShaderOptions;
renderInfosChkBox.Checked = PluginRuntime.MaterialReplace.SwapRenderInfos;
textureChkBox.Checked = PluginRuntime.MaterialReplace.SwapTextures;
UserDataChkBox.Checked = PluginRuntime.MaterialReplace.SwapUserData;
IsLoaded = true;
}
private void ChkBox_CheckedChanged(object sender, EventArgs e)
{
if (!IsLoaded)
return;
PluginRuntime.MaterialReplace.SwapShaderParams = paramChkBox.Checked;
PluginRuntime.MaterialReplace.SwapShaderOptions = optionsChkBox.Checked;
PluginRuntime.MaterialReplace.SwapRenderInfos = renderInfosChkBox.Checked;
PluginRuntime.MaterialReplace.SwapTextures = textureChkBox.Checked;
PluginRuntime.MaterialReplace.SwapUserData = UserDataChkBox.Checked;
}
}
}