Adjust param editor to display colors for multi tex, and fix header

This commit is contained in:
KillzXGaming 2019-05-22 15:59:37 -04:00
parent 3a85f06ac7
commit 3234e3a817
7 changed files with 5 additions and 2 deletions

Binary file not shown.

View file

@ -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;

View file

@ -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++)

View file

@ -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" };