1
0
mirror of synced 2024-11-12 02:00:50 +01:00

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