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