mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 13:03:15 +00:00
Adjust param editor to display colors for multi tex, and fix header
This commit is contained in:
parent
3a85f06ac7
commit
3234e3a817
7 changed files with 5 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -381,7 +381,7 @@ namespace Bfres.Structs
|
|||
paramInfo.Type = AnimationType.ShaderParam;
|
||||
|
||||
//There is no better way to determine if the param is a color type afaik
|
||||
if (anim.Name.Contains(ColorAnimType) || param.Name.Contains("color"))
|
||||
if (anim.Name.Contains(ColorAnimType) || param.Name.Contains("Color") || param.Name.Contains("color") || param.Name == "multi_tex_reg2")
|
||||
paramInfo.Type = AnimationType.Color;
|
||||
else if (anim.Name.Contains(TextureSrtAnimType))
|
||||
paramInfo.Type = AnimationType.TexturePattern;
|
||||
|
|
|
@ -114,6 +114,9 @@ namespace Bfres.Structs
|
|||
AnimDataOffset = matAnim.Constants[constant].AnimDataOffset,
|
||||
Keys = keyGroup.Keys,
|
||||
});
|
||||
|
||||
if (paramInfo.Text.Contains("Color") || paramInfo.Text.Contains("color"))
|
||||
paramInfo.Type = AnimationType.Color;
|
||||
}
|
||||
|
||||
for (int curve = 0; curve < param.FloatCurveCount + param.IntCurveCount; curve++)
|
||||
|
|
|
@ -138,7 +138,7 @@ namespace FirstPlugin.Forms
|
|||
{
|
||||
|
||||
ColumnHeader colorHeader = new ColumnHeader() { Text = "Color" };
|
||||
ColumnHeader alphaHeader = new ColumnHeader() { Text = "Color" };
|
||||
ColumnHeader alphaHeader = new ColumnHeader() { Text = "Alpha" };
|
||||
ColumnHeader RHeader = new ColumnHeader() { Text = "R" };
|
||||
ColumnHeader GHeader = new ColumnHeader() { Text = "G" };
|
||||
ColumnHeader BHeader = new ColumnHeader() { Text = "B" };
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue