1
0
mirror of synced 2024-12-14 16:42:58 +01:00
Switch-Toolbox/Switch_FileFormatsMain/GUI/BFRES/Materials/MaterialReplaceDialog.cs

46 lines
1.5 KiB
C#
Raw Normal View History

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 Switch_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;
}
}
}