Fix path getting for proper hiding
This commit is contained in:
parent
5d35c62e56
commit
8d9c78cdc9
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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>();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user