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

Fix path getting for proper hiding

This commit is contained in:
KillzXGaming 2019-04-06 21:45:25 -04:00
parent 5d35c62e56
commit 8d9c78cdc9
13 changed files with 28 additions and 20 deletions

Binary file not shown.

View File

@ -767,8 +767,7 @@ namespace FirstPlugin
HasTextures = true;
}
}
if (IsTex1 && HasTextures)
{
STFileSaver.SaveFileFormat(this, FileName);
@ -776,7 +775,7 @@ namespace FirstPlugin
byte[] Tex2 = GenerateTex2();
SaveFileDialog sfd = new SaveFileDialog();
sfd.FileName = FileName + FileName.Replace("Tex1", "Tex2");
sfd.FileName = FileName.Replace("Tex1", "Tex2");
sfd.DefaultExt = ".sbfres";
List<IFileFormat> formats = new List<IFileFormat>();

View File

@ -163,9 +163,7 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public List<ItemPathGroup> ItemPaths;
public List<GlidePathGroup> GlidePaths;
public List<SteerAssistPathGroup> SteerAssistPaths;
public CourseMuuntScene(dynamic rootNode)
{
root = rootNode;

View File

@ -59,14 +59,16 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public class EnemyPathPoint : PathPoint
{
private RenderablePathPoint renderablePoint;
[Browsable(false)]
public override RenderablePathPoint RenderablePoint
{
get
{
var point = new RenderablePathPoint(new Vector4(1f, 0f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
point.CanConnect = true;
return point;
if (renderablePoint == null)
renderablePoint = new RenderablePathPoint(new Vector4(1f, 0f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
return renderablePoint;
}
}

View File

@ -62,14 +62,16 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public class GlidePathPoint : PathPoint
{
private RenderablePathPoint renderablePoint;
[Browsable(false)]
public override RenderablePathPoint RenderablePoint
{
get
{
var point = new RenderablePathPoint(ColorUtility.ToVector4(Color.FromArgb(252, 93, 11)), Translate, Rotate, new OpenTK.Vector3(30), this);
point.CanConnect = true;
return point;
if (renderablePoint == null)
renderablePoint = new RenderablePathPoint(ColorUtility.ToVector4(Color.FromArgb(252, 93, 11)), Translate, Rotate, new OpenTK.Vector3(30), this);
return renderablePoint;
}
}

View File

@ -59,14 +59,16 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public class ItemPathPoint : PathPoint
{
private RenderablePathPoint renderablePoint;
[Browsable(false)]
public override RenderablePathPoint RenderablePoint
{
get
{
var point = new RenderablePathPoint(new Vector4(1f, 0f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
point.CanConnect = true;
return point;
if (renderablePoint == null)
renderablePoint = new RenderablePathPoint(new Vector4(1f, 0f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
return renderablePoint;
}
}

View File

@ -70,13 +70,16 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public class LapPathPoint : PathPoint
{
private RenderablePathPoint renderablePoint;
[Browsable(false)]
public override RenderablePathPoint RenderablePoint
{
get
{
var point = new RenderablePathPoint(new Vector4(0f, 0.25f, 1f, 0.1f), Translate, Rotate, Scale, this);
return point;
if (renderablePoint == null)
renderablePoint = new RenderablePathPoint(new Vector4(0f, 0.25f, 1f, 0.1f), Translate, Rotate, Scale, this);
return renderablePoint;
}
}

View File

@ -59,14 +59,16 @@ namespace FirstPlugin.Turbo.CourseMuuntStructs
public class SteerAssistPathPoint : PathPoint
{
private RenderablePathPoint renderablePoint;
[Browsable(false)]
public override RenderablePathPoint RenderablePoint
{
get
{
var point = new RenderablePathPoint(new Vector4(0f, 1f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
point.CanConnect = true;
return point;
if (renderablePoint == null)
renderablePoint = new RenderablePathPoint(new Vector4(0f, 1f, 0f, 1f), Translate, Rotate, new OpenTK.Vector3(30), this);
return renderablePoint;
}
}