1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Some clr0 converting fixes

This commit is contained in:
KillzXGaming 2019-10-05 15:32:48 -04:00
parent d9f23be131
commit 45a2466e86
6 changed files with 16 additions and 3 deletions

View File

@ -60,6 +60,10 @@ namespace BrawlboxHelper
{
ResU.ShaderParamMatAnim matAnim = new ResU.ShaderParamMatAnim();
matAnim.Name = clrMaterial.Name;
matAnim.Constants = new List<ResU.AnimConstant>();
matAnim.Curves = new List<ResU.AnimCurve>();
matAnim.ParamAnimInfos = new List<ResU.ParamAnimInfo>();
foreach (var entry in clrMaterial.Children)
{
ushort curveIndex = 0;

Binary file not shown.

Binary file not shown.

View File

@ -942,6 +942,7 @@ namespace LayoutBXLYT
if (!Runtime.LayoutEditor.IsGamePreview && !gameWindow)
{
var rect = pane.CreateRectangle();
rect = rect.RotateZ(pane.Rotate.Z);
GL.Disable(EnableCap.Blend);
GL.Disable(EnableCap.AlphaTest);
@ -975,7 +976,6 @@ namespace LayoutBXLYT
DrawEdgeSquare(top);
DrawEdgeSquare(bottom);
GL.Enable(EnableCap.Blend);
GL.Enable(EnableCap.AlphaTest);
GL.Enable(EnableCap.Texture2D);

View File

@ -1355,6 +1355,15 @@ namespace LayoutBXLYT
BottomPoint = bottom;
}
public CustomRectangle RotateZ(float rotate)
{
return new CustomRectangle(
LeftPoint,
RightPoint,
TopPoint,
BottomPoint);
}
public CustomRectangle GetTransformedRectangle(BasePane parent, Vector3F Transform, Vector2F Scale)
{
var rect = new CustomRectangle(

View File

@ -28,7 +28,7 @@ namespace FirstPlugin
public static string FSHU_REPLACE_PARAM = GetFilter(".bfmaa", ".bfshu", ".yaml");
public static string FSHU_REPLACE_SRT = GetFilter(".bfmaa", ".bftsh", ".yaml");
public static string FSHU_REPLACE_COLOR = GetFilter(".bfmaa", ".bfcsh", ".yaml");
public static string FSHU_REPLACE_COLOR = GetFilter(".bfmaa", ".bfcsh", ".yaml", ".clr0");
public static string FSHU_EXPORT_PARAM = GetFilter(".bfmaa", ".bfshu", ".yaml");
public static string FSHU_EXPORT_SRT = GetFilter(".bfmaa", ".bftsh", ".yaml");
public static string FSHU_EXPORT_COLOR = GetFilter(".bfmaa", ".bfcsh", ".yaml");