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

A few more fixes with adding bxlan groups

This commit is contained in:
KillzXGaming 2019-10-20 13:14:21 -04:00
parent 871fc44178
commit 3d69ad3fb7
2 changed files with 49 additions and 4 deletions

View File

@ -1494,6 +1494,34 @@ namespace LayoutBXLYT
get { return TypeDefine.ContainsKey(Tag) ? TypeDefine[Tag] : Tag; }
}
public static Dictionary<string, string> CafeTypeDefine = new Dictionary<string, string>()
{
{"FLPA","PaneSRT" },
{"FLVI","Visibility" },
{"FLTS","TextureSRT" },
{"FLVC","VertexColor" },
{"FLMC","MaterialColor" },
{"FLTP","TexturePattern" },
{"FLIM","IndTextureSRT" },
{"FLAC","AlphaTest" },
{"FLCT","FontShadow" },
{"FLCC","PerCharacterTransformCurve" },
};
public static Dictionary<string, string> RevTypeDefine = new Dictionary<string, string>()
{
{"RLPA","PaneSRT" },
{"RLVI","Visibility" },
{"RLTS","TextureSRT" },
{"RLVC","VertexColor" },
{"RLMC","MaterialColor" },
{"RLTP","TexturePattern" },
{"RLIM","IndTextureSRT" },
{"RLAC","AlphaTest" },
{"RLCT","FontShadow" },
{"RLCC","PerCharacterTransformCurve" },
};
public static Dictionary<string, string> TypeDefine = new Dictionary<string, string>()
{
{"FLPA","PaneSRT" },

View File

@ -21,10 +21,21 @@ namespace LayoutBXLYT
CanResize = false;
ActiveGroup = animGroup;
foreach (var tagDefine in BxlanPaiTag.TypeDefine)
if (animGroup.Target == AnimationTarget.Material)
{
if (!animGroup.Tags.Any(x => x.Tag == tagDefine.Key ))
stComboBox1.Items.Add(tagDefine.Value);
stComboBox1.Items.Add("PaneSRT");
stComboBox1.Items.Add("Visibility");
stComboBox1.Items.Add("TextureSRT");
stComboBox1.Items.Add("VertexColor");
}
else
{
stComboBox1.Items.Add("MaterialColor");
stComboBox1.Items.Add("TexturePattern");
stComboBox1.Items.Add("IndTextureSRT");
stComboBox1.Items.Add("AlphaTest");
stComboBox1.Items.Add("FontShadow");
stComboBox1.Items.Add("PerCharacterTransformCurve");
}
stComboBox1.SelectedIndex = 0;
@ -32,7 +43,13 @@ namespace LayoutBXLYT
public BxlanPaiTag AddEntry()
{
var tagValue = BxlanPaiTag.TypeDefine.FirstOrDefault(x => x.Value == (string)stComboBox1.SelectedItem).Key;
string tagValue = "";
if (ActiveGroup is BFLAN.PaiEntry)
tagValue = BxlanPaiTag.CafeTypeDefine.FirstOrDefault(x => x.Value == (string)stComboBox1.SelectedItem).Key;
if (ActiveGroup is BRLAN.PaiEntry)
tagValue = BxlanPaiTag.RevTypeDefine.FirstOrDefault(x => x.Value == (string)stComboBox1.SelectedItem).Key;
return ActiveGroup.AddEntry(tagValue);
}
}