mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Collisions editing progress
This commit is contained in:
parent
edba2cfae9
commit
3c60801e84
@ -73,6 +73,10 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
public bool RemoveVertex(BoundVertex v)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -859,6 +859,9 @@ namespace CodeWalker.GameFiles
|
|||||||
private ResourceSystemStructBlock<BoundMaterialColour> MaterialColoursBlock = null;
|
private ResourceSystemStructBlock<BoundMaterialColour> MaterialColoursBlock = null;
|
||||||
private ResourceSystemStructBlock<byte> PolygonMaterialIndicesBlock = null;
|
private ResourceSystemStructBlock<byte> PolygonMaterialIndicesBlock = null;
|
||||||
|
|
||||||
|
private BoundVertex[] VertexObjects = null; //for use by the editor, created as needed by GetVertexObject()
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads the data-block from a stream.
|
/// Reads the data-block from a stream.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -1009,6 +1012,24 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BoundVertex GetVertexObject(int index)
|
||||||
|
{
|
||||||
|
//gets a cached object which references a single vertex in this geometry
|
||||||
|
if (Vertices == null) return null;
|
||||||
|
if ((index < 0) || (index >= Vertices.Length)) return null;
|
||||||
|
if ((VertexObjects == null) || (VertexObjects.Length != Vertices.Length))
|
||||||
|
{
|
||||||
|
VertexObjects = new BoundVertex[Vertices.Length];
|
||||||
|
}
|
||||||
|
if (index >= VertexObjects.Length) return null;
|
||||||
|
var r = VertexObjects[index];
|
||||||
|
if (r == null)
|
||||||
|
{
|
||||||
|
r = new BoundVertex(this, index);
|
||||||
|
VertexObjects[index] = r;
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
public Vector3 GetVertex(int index)
|
public Vector3 GetVertex(int index)
|
||||||
{
|
{
|
||||||
return ((index >= 0) && (index < Vertices.Length)) ? Vertices[index] : Vector3.Zero;
|
return ((index >= 0) && (index < Vertices.Length)) ? Vertices[index] : Vector3.Zero;
|
||||||
@ -1026,6 +1047,18 @@ namespace CodeWalker.GameFiles
|
|||||||
Vertices[index] = t;
|
Vertices[index] = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public BoundMaterialColour GetVertexColour(int index)
|
||||||
|
{
|
||||||
|
return ((VertexColours != null) && (index >= 0) && (index < VertexColours.Length)) ? VertexColours[index] : new BoundMaterialColour();
|
||||||
|
}
|
||||||
|
public void SetVertexColour(int index, BoundMaterialColour c)
|
||||||
|
{
|
||||||
|
if ((VertexColours != null) && (index >= 0) && (index < VertexColours.Length))
|
||||||
|
{
|
||||||
|
VertexColours[index] = c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1423,7 +1456,9 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
res.HitDist = polyhittestdist;
|
res.HitDist = polyhittestdist;
|
||||||
res.Hit = true;
|
res.Hit = true;
|
||||||
|
res.Position = (ray.Position + ray.Direction * polyhittestdist);
|
||||||
res.Normal = n1;
|
res.Normal = n1;
|
||||||
|
res.HitVertex = (polygon != null) ? polygon.NearestVertex(res.Position) : new BoundVertexRef(-1, float.MaxValue);
|
||||||
res.HitPolygon = polygon;
|
res.HitPolygon = polygon;
|
||||||
res.HitBounds = this;
|
res.HitBounds = this;
|
||||||
res.Material = polygon.Material;
|
res.Material = polygon.Material;
|
||||||
@ -2231,6 +2266,7 @@ namespace CodeWalker.GameFiles
|
|||||||
public abstract Vector3 Scale { get; set; }
|
public abstract Vector3 Scale { get; set; }
|
||||||
public abstract Vector3 Position { get; set; }
|
public abstract Vector3 Position { get; set; }
|
||||||
public abstract Quaternion Orientation { get; set; }
|
public abstract Quaternion Orientation { get; set; }
|
||||||
|
public abstract BoundVertexRef NearestVertex(Vector3 p);
|
||||||
public abstract void Read(byte[] bytes, int offset);
|
public abstract void Read(byte[] bytes, int offset);
|
||||||
public abstract void Write(BinaryWriter bw);
|
public abstract void Write(BinaryWriter bw);
|
||||||
public virtual string Title
|
public virtual string Title
|
||||||
@ -2327,6 +2363,16 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override BoundVertexRef NearestVertex(Vector3 p)
|
||||||
|
{
|
||||||
|
var d1 = (p - Vertex1).Length();
|
||||||
|
var d2 = (p - Vertex2).Length();
|
||||||
|
var d3 = (p - Vertex3).Length();
|
||||||
|
if ((d1 <= d2) && (d1 <= d3)) return new BoundVertexRef(vertIndex1, d1);
|
||||||
|
if (d2 <= d3) return new BoundVertexRef(vertIndex2, d2);
|
||||||
|
return new BoundVertexRef(vertIndex3, d3);
|
||||||
|
}
|
||||||
|
|
||||||
public BoundPolygonTriangle()
|
public BoundPolygonTriangle()
|
||||||
{
|
{
|
||||||
Type = BoundPolygonType.Triangle;
|
Type = BoundPolygonType.Triangle;
|
||||||
@ -2404,6 +2450,11 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override BoundVertexRef NearestVertex(Vector3 p)
|
||||||
|
{
|
||||||
|
return new BoundVertexRef(sphereIndex, sphereRadius);
|
||||||
|
}
|
||||||
|
|
||||||
public BoundPolygonSphere()
|
public BoundPolygonSphere()
|
||||||
{
|
{
|
||||||
Type = BoundPolygonType.Sphere;
|
Type = BoundPolygonType.Sphere;
|
||||||
@ -2497,6 +2548,14 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override BoundVertexRef NearestVertex(Vector3 p)
|
||||||
|
{
|
||||||
|
var d1 = (p - Vertex1).Length();
|
||||||
|
var d2 = (p - Vertex2).Length();
|
||||||
|
if (d1 <= d2) return new BoundVertexRef(capsuleIndex1, d1);
|
||||||
|
return new BoundVertexRef(capsuleIndex2, d2);
|
||||||
|
}
|
||||||
|
|
||||||
public BoundPolygonCapsule()
|
public BoundPolygonCapsule()
|
||||||
{
|
{
|
||||||
Type = BoundPolygonType.Capsule;
|
Type = BoundPolygonType.Capsule;
|
||||||
@ -2604,6 +2663,18 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override BoundVertexRef NearestVertex(Vector3 p)
|
||||||
|
{
|
||||||
|
var d1 = (p - Vertex1).Length();
|
||||||
|
var d2 = (p - Vertex2).Length();
|
||||||
|
var d3 = (p - Vertex3).Length();
|
||||||
|
var d4 = (p - Vertex4).Length();
|
||||||
|
if ((d1 <= d2) && (d1 <= d3) && (d1 <= d4)) return new BoundVertexRef(boxIndex1, d1);
|
||||||
|
if ((d2 <= d3) && (d2 <= d4)) return new BoundVertexRef(boxIndex2, d2);
|
||||||
|
if (d3 <= d4) return new BoundVertexRef(boxIndex3, d3);
|
||||||
|
return new BoundVertexRef(boxIndex4, d4);
|
||||||
|
}
|
||||||
|
|
||||||
public BoundPolygonBox()
|
public BoundPolygonBox()
|
||||||
{
|
{
|
||||||
Type = BoundPolygonType.Box;
|
Type = BoundPolygonType.Box;
|
||||||
@ -2699,6 +2770,14 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override BoundVertexRef NearestVertex(Vector3 p)
|
||||||
|
{
|
||||||
|
var d1 = (p - Vertex1).Length();
|
||||||
|
var d2 = (p - Vertex2).Length();
|
||||||
|
if (d1 <= d2) return new BoundVertexRef(cylinderIndex1, d1);
|
||||||
|
return new BoundVertexRef(cylinderIndex2, d2);
|
||||||
|
}
|
||||||
|
|
||||||
public BoundPolygonCylinder()
|
public BoundPolygonCylinder()
|
||||||
{
|
{
|
||||||
Type = BoundPolygonType.Cylinder;
|
Type = BoundPolygonType.Cylinder;
|
||||||
@ -2727,6 +2806,49 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[TC(typeof(EXP))] public struct BoundVertexRef //convenience struct for BoundPolygon.NearestVertex and SpaceRayIntersectResult
|
||||||
|
{
|
||||||
|
public int Index { get; set; }
|
||||||
|
public float Distance { get; set; }
|
||||||
|
|
||||||
|
public BoundVertexRef(int index, float dist)
|
||||||
|
{
|
||||||
|
Index = index;
|
||||||
|
Distance = dist;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[TC(typeof(EXP))] public class BoundVertex //class for editing convenience, to hold a reference to a BoundGeometry vertex
|
||||||
|
{
|
||||||
|
public BoundGeometry Owner { get; set; }
|
||||||
|
public int Index { get; set; }
|
||||||
|
|
||||||
|
public Vector3 Position
|
||||||
|
{
|
||||||
|
get { return (Owner != null) ? Owner.GetVertexPos(Index) : Vector3.Zero; }
|
||||||
|
set { if (Owner != null) Owner.SetVertexPos(Index, value); }
|
||||||
|
}
|
||||||
|
public BoundMaterialColour Colour
|
||||||
|
{
|
||||||
|
get { return (Owner != null) ? Owner.GetVertexColour(Index) : new BoundMaterialColour(); }
|
||||||
|
set { if (Owner != null) Owner.SetVertexColour(Index, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public BoundVertex(BoundGeometry owner, int index)
|
||||||
|
{
|
||||||
|
Owner = owner;
|
||||||
|
Index = index;
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual string Title
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return "Vertex " + Index.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[TC(typeof(EXP))] public struct BoundVertex_s
|
[TC(typeof(EXP))] public struct BoundVertex_s
|
||||||
{
|
{
|
||||||
public short X { get; set; }
|
public short X { get; set; }
|
||||||
@ -3449,7 +3571,6 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
[TC(typeof(EXP))] public struct BoundMaterialColour
|
[TC(typeof(EXP))] public struct BoundMaterialColour
|
||||||
{
|
{
|
||||||
//public BoundsMaterialType Type { get; set; }
|
|
||||||
public byte R { get; set; }
|
public byte R { get; set; }
|
||||||
public byte G { get; set; }
|
public byte G { get; set; }
|
||||||
public byte B { get; set; }
|
public byte B { get; set; }
|
||||||
|
@ -2150,6 +2150,7 @@ namespace CodeWalker.World
|
|||||||
{
|
{
|
||||||
public bool Hit;
|
public bool Hit;
|
||||||
public float HitDist;
|
public float HitDist;
|
||||||
|
public BoundVertexRef HitVertex;
|
||||||
public BoundPolygon HitPolygon;
|
public BoundPolygon HitPolygon;
|
||||||
public Bounds HitBounds;
|
public Bounds HitBounds;
|
||||||
public YbnFile HitYbn;
|
public YbnFile HitYbn;
|
||||||
@ -2167,6 +2168,7 @@ namespace CodeWalker.World
|
|||||||
{
|
{
|
||||||
Hit = true;
|
Hit = true;
|
||||||
HitDist = r.HitDist;
|
HitDist = r.HitDist;
|
||||||
|
HitVertex = r.HitVertex;
|
||||||
HitPolygon = r.HitPolygon;
|
HitPolygon = r.HitPolygon;
|
||||||
HitBounds = r.HitBounds;
|
HitBounds = r.HitBounds;
|
||||||
HitYbn = r.HitYbn;
|
HitYbn = r.HitYbn;
|
||||||
|
@ -152,6 +152,12 @@
|
|||||||
<Compile Include="Project\Panels\EditYbnBoundsPanel.Designer.cs">
|
<Compile Include="Project\Panels\EditYbnBoundsPanel.Designer.cs">
|
||||||
<DependentUpon>EditYbnBoundsPanel.cs</DependentUpon>
|
<DependentUpon>EditYbnBoundsPanel.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Project\Panels\EditYbnBoundVertexPanel.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Project\Panels\EditYbnBoundVertexPanel.Designer.cs">
|
||||||
|
<DependentUpon>EditYbnBoundVertexPanel.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Project\Panels\EditYbnPanel.cs">
|
<Compile Include="Project\Panels\EditYbnPanel.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -645,6 +651,9 @@
|
|||||||
<EmbeddedResource Include="Project\Panels\EditYbnBoundsPanel.resx">
|
<EmbeddedResource Include="Project\Panels\EditYbnBoundsPanel.resx">
|
||||||
<DependentUpon>EditYbnBoundsPanel.cs</DependentUpon>
|
<DependentUpon>EditYbnBoundsPanel.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Project\Panels\EditYbnBoundVertexPanel.resx">
|
||||||
|
<DependentUpon>EditYbnBoundVertexPanel.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Project\Panels\EditYbnPanel.resx">
|
<EmbeddedResource Include="Project\Panels\EditYbnPanel.resx">
|
||||||
<DependentUpon>EditYbnPanel.cs</DependentUpon>
|
<DependentUpon>EditYbnPanel.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
128
Project/Panels/EditYbnBoundVertexPanel.Designer.cs
generated
Normal file
128
Project/Panels/EditYbnBoundVertexPanel.Designer.cs
generated
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
namespace CodeWalker.Project.Panels
|
||||||
|
{
|
||||||
|
partial class EditYbnBoundVertexPanel
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditYbnBoundVertexPanel));
|
||||||
|
this.PositionTextBox = new System.Windows.Forms.TextBox();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.DeleteButton = new System.Windows.Forms.Button();
|
||||||
|
this.AddToProjectButton = new System.Windows.Forms.Button();
|
||||||
|
this.ColourTextBox = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// PositionTextBox
|
||||||
|
//
|
||||||
|
this.PositionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.PositionTextBox.Location = new System.Drawing.Point(82, 47);
|
||||||
|
this.PositionTextBox.Name = "PositionTextBox";
|
||||||
|
this.PositionTextBox.Size = new System.Drawing.Size(457, 20);
|
||||||
|
this.PositionTextBox.TabIndex = 1;
|
||||||
|
this.PositionTextBox.TextChanged += new System.EventHandler(this.PositionTextBox_TextChanged);
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Location = new System.Drawing.Point(27, 50);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(47, 13);
|
||||||
|
this.label5.TabIndex = 0;
|
||||||
|
this.label5.Text = "Position:";
|
||||||
|
//
|
||||||
|
// DeleteButton
|
||||||
|
//
|
||||||
|
this.DeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.DeleteButton.Location = new System.Drawing.Point(458, 7);
|
||||||
|
this.DeleteButton.Name = "DeleteButton";
|
||||||
|
this.DeleteButton.Size = new System.Drawing.Size(95, 23);
|
||||||
|
this.DeleteButton.TabIndex = 40;
|
||||||
|
this.DeleteButton.Text = "Delete Vertex";
|
||||||
|
this.DeleteButton.UseVisualStyleBackColor = true;
|
||||||
|
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
|
||||||
|
//
|
||||||
|
// AddToProjectButton
|
||||||
|
//
|
||||||
|
this.AddToProjectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.AddToProjectButton.Location = new System.Drawing.Point(357, 7);
|
||||||
|
this.AddToProjectButton.Name = "AddToProjectButton";
|
||||||
|
this.AddToProjectButton.Size = new System.Drawing.Size(95, 23);
|
||||||
|
this.AddToProjectButton.TabIndex = 39;
|
||||||
|
this.AddToProjectButton.Text = "Add to Project";
|
||||||
|
this.AddToProjectButton.UseVisualStyleBackColor = true;
|
||||||
|
this.AddToProjectButton.Click += new System.EventHandler(this.AddToProjectButton_Click);
|
||||||
|
//
|
||||||
|
// ColourTextBox
|
||||||
|
//
|
||||||
|
this.ColourTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.ColourTextBox.Location = new System.Drawing.Point(82, 73);
|
||||||
|
this.ColourTextBox.Name = "ColourTextBox";
|
||||||
|
this.ColourTextBox.Size = new System.Drawing.Size(457, 20);
|
||||||
|
this.ColourTextBox.TabIndex = 3;
|
||||||
|
this.ColourTextBox.TextChanged += new System.EventHandler(this.ColourTextBox_TextChanged);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(27, 76);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(40, 13);
|
||||||
|
this.label1.TabIndex = 2;
|
||||||
|
this.label1.Text = "Colour:";
|
||||||
|
//
|
||||||
|
// EditYbnBoundVertexPanel
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(565, 505);
|
||||||
|
this.Controls.Add(this.ColourTextBox);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.DeleteButton);
|
||||||
|
this.Controls.Add(this.AddToProjectButton);
|
||||||
|
this.Controls.Add(this.PositionTextBox);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Name = "EditYbnBoundVertexPanel";
|
||||||
|
this.Text = "EditYbnBoundVertexPanel";
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.TextBox PositionTextBox;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.Button DeleteButton;
|
||||||
|
private System.Windows.Forms.Button AddToProjectButton;
|
||||||
|
private System.Windows.Forms.TextBox ColourTextBox;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
}
|
||||||
|
}
|
114
Project/Panels/EditYbnBoundVertexPanel.cs
Normal file
114
Project/Panels/EditYbnBoundVertexPanel.cs
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
using CodeWalker.GameFiles;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace CodeWalker.Project.Panels
|
||||||
|
{
|
||||||
|
public partial class EditYbnBoundVertexPanel : ProjectPanel
|
||||||
|
{
|
||||||
|
public ProjectForm ProjectForm;
|
||||||
|
public BoundVertex CollisionVertex { get; set; }
|
||||||
|
|
||||||
|
private bool populatingui = false;
|
||||||
|
private bool waschanged = false;
|
||||||
|
|
||||||
|
public EditYbnBoundVertexPanel(ProjectForm projectForm)
|
||||||
|
{
|
||||||
|
ProjectForm = projectForm;
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetCollisionVertex(BoundVertex v)
|
||||||
|
{
|
||||||
|
CollisionVertex = v;
|
||||||
|
Tag = v;
|
||||||
|
UpdateFormTitle();
|
||||||
|
UpdateUI();
|
||||||
|
waschanged = v?.Owner?.HasChanged ?? false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateFormTitleYbnChanged()
|
||||||
|
{
|
||||||
|
bool changed = CollisionVertex?.Owner?.HasChanged ?? false;
|
||||||
|
if (!waschanged && changed)
|
||||||
|
{
|
||||||
|
UpdateFormTitle();
|
||||||
|
waschanged = true;
|
||||||
|
}
|
||||||
|
else if (waschanged && !changed)
|
||||||
|
{
|
||||||
|
UpdateFormTitle();
|
||||||
|
waschanged = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void UpdateFormTitle()
|
||||||
|
{
|
||||||
|
string fn = CollisionVertex?.Title ?? "untitled";
|
||||||
|
Text = fn + ((CollisionVertex?.Owner?.HasChanged ?? false) ? "*" : "");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void UpdateUI()
|
||||||
|
{
|
||||||
|
if (CollisionVertex == null)
|
||||||
|
{
|
||||||
|
AddToProjectButton.Enabled = false;
|
||||||
|
DeleteButton.Enabled = false;
|
||||||
|
PositionTextBox.Text = string.Empty;
|
||||||
|
ColourTextBox.Text = string.Empty;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
populatingui = true;
|
||||||
|
|
||||||
|
PositionTextBox.Text = FloatUtil.GetVector3String(CollisionVertex.Position);
|
||||||
|
ColourTextBox.Text = CollisionVertex.Colour.ToString();
|
||||||
|
|
||||||
|
var ybn = CollisionVertex.Owner?.GetRootYbn();
|
||||||
|
AddToProjectButton.Enabled = (ybn != null) ? !ProjectForm.YbnExistsInProject(ybn) : false;
|
||||||
|
DeleteButton.Enabled = !AddToProjectButton.Enabled;
|
||||||
|
|
||||||
|
populatingui = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PositionTextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (CollisionVertex == null) return;
|
||||||
|
if (populatingui) return;
|
||||||
|
var v = FloatUtil.ParseVector3String(PositionTextBox.Text);
|
||||||
|
lock (ProjectForm.ProjectSyncRoot)
|
||||||
|
{
|
||||||
|
if (CollisionVertex.Position != v)
|
||||||
|
{
|
||||||
|
CollisionVertex.Position = v;
|
||||||
|
ProjectForm.SetYbnHasChanged(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ColourTextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//TODO!!
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddToProjectButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ProjectForm.SetProjectItem(CollisionVertex);
|
||||||
|
ProjectForm.AddCollisionVertexToProject();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DeleteButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ProjectForm.SetProjectItem(CollisionVertex);
|
||||||
|
ProjectForm.DeleteCollisionVertex();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
409
Project/Panels/EditYbnBoundVertexPanel.resx
Normal file
409
Project/Panels/EditYbnBoundVertexPanel.resx
Normal file
@ -0,0 +1,409 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAMAICAAAAAAGACoDAAANgAAABAQAAAAABgAaAMAAN4MAABAQAAAAAAYACgyAABGEAAAKAAAACAA
|
||||||
|
AABAAAAAAQAYAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPv8/u3v+Pn6//7+/wAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AP7+/vX3/rzA3OHl9fz9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///4+Vx7/F5v///wAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAP///4CHtrS62////////////////////wAAAAAAAAAAAP////H0/vf6/v//
|
||||||
|
/////////4yTwrrB4f///+zw+7rA6P39/////wAAAAAAAAAAAP///56l2BkcguXr/P///////42Uw8jO
|
||||||
|
6P///ysvjWVqtP///////wAAAAAAAAAAAP////D0/0hPpsDG6////////6y02d7k8////3qAx+/z/f//
|
||||||
|
/wAAAAAAAAAAAAAAAAAAAP///////////////8zT8V5ns1Rcrdzh9f///////////wAAAAAAAAAAAAAA
|
||||||
|
AAAAAP////////7+/6ix3nmBxFthtmdwu09WqbC54/v9//r8//j6//39/wAAAAAAAAAAAOjt/H6I0FJc
|
||||||
|
skpSqHF+wRMahFZhs4iT1AsNc1pgrm52v2RsuO/z/gAAAP////////L2/cLJ7rrD64+V4DY+ozU+mYmU
|
||||||
|
0X2Hy1hfss7V8urv/PP2/v///wAAAP///+Pp+d/k9////////+Pp/4uR3ysymW14xYOM0fD0/P///+Xq
|
||||||
|
+ri/6Pj6/wAAAOrv/j5DnbS75P////////////X4/+/0/ubr+/r7/////////9rh+hgZhKGo2QAAAPDz
|
||||||
|
/eLn+f////j6/2Nqttrg9////+Hn+P3+//3+/1hescLJ6/////L2/eru/AAAAAAAAAAAAP///8rR70tR
|
||||||
|
p/3+//v8/zY6jNPY7////09WqWpwu////wAAAAAAAAAAAAAAAAAAAAAAAPb4/vr7//////v8/5Wd1eHm
|
||||||
|
+P////v8//T3/wAAAAAAAAAAAAAAAP//AAD8PwAA/D8AAPwDAACAAwAAgAMAAIAHAADABwAAwAEAAMAB
|
||||||
|
AAAAAQAAAAEAAAABAAAAAQAAwAcAAOAPAAAoAAAAQAAAAIAAAAABABgAAAAAAAAwAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAA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f7//v7//v//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////
|
||||||
|
///////4D/////////AH////////8Af////////wB/////////AH////////8Af////////wB///////
|
||||||
|
//AH////////8Af////////wB/////////AH////////8AfwP//////wB8Af//+Af/AHgB///wA/8AcA
|
||||||
|
H///AB/wBgAf//8AD/AGAB///wAH8AYAH///AAPwBAAf//8AA/AEAD///wAD8AQAP///AAPwBAB///+A
|
||||||
|
A/AEAP///8AD4AAA////4AcAAAH////wDgAAAf/////8AAAH//////gAAAf/////4AAAAf/////gAAAA
|
||||||
|
/f//+AAAAAAAD//AAAAAAAAH/4AAAAAAAAf/gAAAAAAAB/+AAAAAAAAH/4AAAAAAAAf/gAAAAAAAB/+A
|
||||||
|
AAAAAAAP/4AAAAAAAB//wAAAAABAf/4HwAAAAYAf8APAAAADgA/gA+AAAAMAA8AD8AAABwADgAP8AAAf
|
||||||
|
AAOAA/4AAB8AA4ADAAAAAQADgAIAcA4AgAOABgBwDgBAA4AMAGAMADADwDwAYAwAOAfg+ABgBAAeH//4
|
||||||
|
AEAEAB////gAwAYAH///+ADABgAf///4AcAGAB////gBwAcAH///+APAB4A////8B+AHwH//////4A//
|
||||||
|
///////gD/////////Af//////////////8=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
@ -415,6 +415,10 @@ namespace CodeWalker.Project.Panels
|
|||||||
n = boundsnode.Nodes.Add("Edit Polygon");
|
n = boundsnode.Nodes.Add("Edit Polygon");
|
||||||
n.Name = "EditPoly";
|
n.Name = "EditPoly";
|
||||||
n.Tag = b; //this tag should get updated with the selected poly!
|
n.Tag = b; //this tag should get updated with the selected poly!
|
||||||
|
|
||||||
|
n = boundsnode.Nodes.Add("Edit Vertex");
|
||||||
|
n.Name = "EditVertex";
|
||||||
|
n.Tag = b; //this tag should get updated with the selected vertex!
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1186,6 +1190,15 @@ namespace CodeWalker.Project.Panels
|
|||||||
polynode.Tag = p;
|
polynode.Tag = p;
|
||||||
return polynode;
|
return polynode;
|
||||||
}
|
}
|
||||||
|
public TreeNode FindCollisionVertexTreeNode(BoundVertex v)
|
||||||
|
{
|
||||||
|
if (v == null) return null;
|
||||||
|
var ybnnode = FindCollisionBoundsTreeNode(v.Owner);
|
||||||
|
var vertnode = GetChildTreeNode(ybnnode, "EditVertex");
|
||||||
|
if (vertnode == null) return null;
|
||||||
|
vertnode.Tag = v;
|
||||||
|
return vertnode;
|
||||||
|
}
|
||||||
public TreeNode FindYndTreeNode(YndFile ynd)
|
public TreeNode FindYndTreeNode(YndFile ynd)
|
||||||
{
|
{
|
||||||
if (ProjectTreeView.Nodes.Count <= 0) return null;
|
if (ProjectTreeView.Nodes.Count <= 0) return null;
|
||||||
@ -1580,6 +1593,29 @@ namespace CodeWalker.Project.Panels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void TrySelectCollisionVertexTreeNode(BoundVertex vert)
|
||||||
|
{
|
||||||
|
TreeNode tnode = FindCollisionVertexTreeNode(vert);
|
||||||
|
if (tnode == null)
|
||||||
|
{
|
||||||
|
tnode = FindCollisionBoundsTreeNode(vert?.Owner);
|
||||||
|
}
|
||||||
|
if (tnode == null)
|
||||||
|
{
|
||||||
|
tnode = FindYbnTreeNode(vert?.Owner?.GetRootYbn());
|
||||||
|
}
|
||||||
|
if (tnode != null)
|
||||||
|
{
|
||||||
|
if (ProjectTreeView.SelectedNode == tnode)
|
||||||
|
{
|
||||||
|
OnItemSelected?.Invoke(vert);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ProjectTreeView.SelectedNode = tnode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
public void TrySelectPathNodeTreeNode(YndNode node)
|
public void TrySelectPathNodeTreeNode(YndNode node)
|
||||||
{
|
{
|
||||||
TreeNode tnode = FindPathNodeTreeNode(node);
|
TreeNode tnode = FindPathNodeTreeNode(node);
|
||||||
|
@ -75,6 +75,7 @@ namespace CodeWalker.Project
|
|||||||
private YbnFile CurrentYbnFile;
|
private YbnFile CurrentYbnFile;
|
||||||
private Bounds CurrentCollisionBounds;
|
private Bounds CurrentCollisionBounds;
|
||||||
private BoundPolygon CurrentCollisionPoly;
|
private BoundPolygon CurrentCollisionPoly;
|
||||||
|
private BoundVertex CurrentCollisionVertex;
|
||||||
|
|
||||||
private bool renderitems = true;
|
private bool renderitems = true;
|
||||||
private bool hidegtavmap = false;
|
private bool hidegtavmap = false;
|
||||||
@ -413,6 +414,13 @@ namespace CodeWalker.Project
|
|||||||
(panel) => { panel.SetCollisionPoly(CurrentCollisionPoly); }, //updateFunc
|
(panel) => { panel.SetCollisionPoly(CurrentCollisionPoly); }, //updateFunc
|
||||||
(panel) => { return panel.CollisionPoly == CurrentCollisionPoly; }); //findFunc
|
(panel) => { return panel.CollisionPoly == CurrentCollisionPoly; }); //findFunc
|
||||||
}
|
}
|
||||||
|
public void ShowEditYbnBoundVertexPanel(bool promote)
|
||||||
|
{
|
||||||
|
ShowPanel(promote,
|
||||||
|
() => { return new EditYbnBoundVertexPanel(this); }, //createFunc
|
||||||
|
(panel) => { panel.SetCollisionVertex(CurrentCollisionVertex); }, //updateFunc
|
||||||
|
(panel) => { return panel.CollisionVertex == CurrentCollisionVertex; }); //findFunc
|
||||||
|
}
|
||||||
public void ShowEditYndPanel(bool promote)
|
public void ShowEditYndPanel(bool promote)
|
||||||
{
|
{
|
||||||
ShowPanel(promote,
|
ShowPanel(promote,
|
||||||
@ -596,6 +604,10 @@ namespace CodeWalker.Project
|
|||||||
{
|
{
|
||||||
ShowEditYtypPanel(promote);
|
ShowEditYtypPanel(promote);
|
||||||
}
|
}
|
||||||
|
else if (CurrentCollisionVertex != null)
|
||||||
|
{
|
||||||
|
ShowEditYbnBoundVertexPanel(promote);
|
||||||
|
}
|
||||||
else if (CurrentCollisionPoly != null)
|
else if (CurrentCollisionPoly != null)
|
||||||
{
|
{
|
||||||
ShowEditYbnBoundPolyPanel(promote);
|
ShowEditYbnBoundPolyPanel(promote);
|
||||||
@ -707,6 +719,7 @@ namespace CodeWalker.Project
|
|||||||
CurrentYbnFile = item as YbnFile;
|
CurrentYbnFile = item as YbnFile;
|
||||||
CurrentCollisionBounds = item as Bounds;
|
CurrentCollisionBounds = item as Bounds;
|
||||||
CurrentCollisionPoly = item as BoundPolygon;
|
CurrentCollisionPoly = item as BoundPolygon;
|
||||||
|
CurrentCollisionVertex = item as BoundVertex;
|
||||||
CurrentYndFile = item as YndFile;
|
CurrentYndFile = item as YndFile;
|
||||||
CurrentPathNode = item as YndNode;
|
CurrentPathNode = item as YndNode;
|
||||||
CurrentYnvFile = item as YnvFile;
|
CurrentYnvFile = item as YnvFile;
|
||||||
@ -788,6 +801,10 @@ namespace CodeWalker.Project
|
|||||||
{
|
{
|
||||||
CurrentYtypFile = CurrentEntity?.MloParent?.Archetype?.Ytyp ?? CurrentArchetype?.Ytyp;
|
CurrentYtypFile = CurrentEntity?.MloParent?.Archetype?.Ytyp ?? CurrentArchetype?.Ytyp;
|
||||||
}
|
}
|
||||||
|
if (CurrentCollisionVertex != null)
|
||||||
|
{
|
||||||
|
CurrentCollisionBounds = CurrentCollisionVertex.Owner;
|
||||||
|
}
|
||||||
if (CurrentCollisionPoly != null)
|
if (CurrentCollisionPoly != null)
|
||||||
{
|
{
|
||||||
CurrentCollisionBounds = CurrentCollisionPoly.Owner;
|
CurrentCollisionBounds = CurrentCollisionPoly.Owner;
|
||||||
@ -3023,7 +3040,11 @@ namespace CodeWalker.Project
|
|||||||
}
|
}
|
||||||
CurrentYbnFile = ybn;
|
CurrentYbnFile = ybn;
|
||||||
RefreshUI();
|
RefreshUI();
|
||||||
if (CurrentCollisionPoly != null)
|
if (CurrentCollisionVertex != null)
|
||||||
|
{
|
||||||
|
ProjectExplorer?.TrySelectCollisionVertexTreeNode(CurrentCollisionVertex);
|
||||||
|
}
|
||||||
|
else if (CurrentCollisionPoly != null)
|
||||||
{
|
{
|
||||||
ProjectExplorer?.TrySelectCollisionPolyTreeNode(CurrentCollisionPoly);
|
ProjectExplorer?.TrySelectCollisionPolyTreeNode(CurrentCollisionPoly);
|
||||||
}
|
}
|
||||||
@ -3200,6 +3221,75 @@ namespace CodeWalker.Project
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void AddCollisionVertexToProject()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (CurrentCollisionVertex == null) return;
|
||||||
|
|
||||||
|
CurrentYbnFile = CurrentCollisionVertex.Owner?.GetRootYbn();
|
||||||
|
if (CurrentYbnFile == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Sorry, only YBN collisions can currently be added to the project. Embedded collisions TODO!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!YbnExistsInProject(CurrentYbnFile))
|
||||||
|
{
|
||||||
|
var v = CurrentCollisionVertex;
|
||||||
|
CurrentYbnFile.HasChanged = true;
|
||||||
|
AddYbnToProject(CurrentYbnFile);
|
||||||
|
|
||||||
|
CurrentCollisionVertex = v; //bug fix for some reason the treeview selects the project node here.
|
||||||
|
CurrentCollisionBounds = v.Owner;
|
||||||
|
CurrentYbnFile = v.Owner?.GetRootYbn();
|
||||||
|
ProjectExplorer?.TrySelectCollisionVertexTreeNode(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
public bool DeleteCollisionVertex()
|
||||||
|
{
|
||||||
|
if (CurrentCollisionBounds == null) return false;
|
||||||
|
if (CurrentCollisionVertex == null) return false;
|
||||||
|
if (CurrentYbnFile == null) return false;
|
||||||
|
if (CurrentCollisionVertex.Owner != CurrentCollisionBounds) return false;
|
||||||
|
|
||||||
|
if (MessageBox.Show("Are you sure you want to delete this collision vertex, and all attached polygons?\n" + CurrentCollisionVertex.ToString() + "\n\nThis operation cannot be undone. Continue?", "Confirm delete", MessageBoxButtons.YesNo) != DialogResult.Yes)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool res = false;
|
||||||
|
if (WorldForm != null)
|
||||||
|
{
|
||||||
|
lock (WorldForm.RenderSyncRoot) //don't try to do this while rendering...
|
||||||
|
{
|
||||||
|
res = CurrentYbnFile.RemoveVertex(CurrentCollisionVertex);
|
||||||
|
//WorldForm.SelectItem(null, null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
res = CurrentYbnFile.RemoveVertex(CurrentCollisionVertex);
|
||||||
|
}
|
||||||
|
if (!res)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Unable to delete the collision vertex. This shouldn't happen!");
|
||||||
|
}
|
||||||
|
|
||||||
|
var delv = CurrentCollisionVertex;
|
||||||
|
|
||||||
|
//ProjectExplorer?.RemoveCollisionVertexTreeNode(CurrentCollisionVertex);
|
||||||
|
ProjectExplorer?.SetYbnHasChanged(CurrentYbnFile, true);
|
||||||
|
|
||||||
|
ClosePanel((EditYbnBoundVertexPanel p) => { return p.Tag == delv; });
|
||||||
|
|
||||||
|
CurrentCollisionVertex = null;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -6145,8 +6235,9 @@ namespace CodeWalker.Project
|
|||||||
var ent = sel.EntityDef;
|
var ent = sel.EntityDef;
|
||||||
var cargen = sel.CarGenerator;
|
var cargen = sel.CarGenerator;
|
||||||
var grassbatch = sel.GrassBatch;
|
var grassbatch = sel.GrassBatch;
|
||||||
|
var collvert = sel.CollisionVertex;
|
||||||
var collpoly = sel.CollisionPoly;
|
var collpoly = sel.CollisionPoly;
|
||||||
var collbound = sel.CollisionBounds ?? collpoly?.Owner;
|
var collbound = sel.CollisionBounds ?? collpoly?.Owner ?? collvert.Owner;
|
||||||
var pathnode = sel.PathNode;
|
var pathnode = sel.PathNode;
|
||||||
var pathlink = sel.PathLink;
|
var pathlink = sel.PathLink;
|
||||||
var navpoly = sel.NavPoly;
|
var navpoly = sel.NavPoly;
|
||||||
@ -6205,11 +6296,15 @@ namespace CodeWalker.Project
|
|||||||
}
|
}
|
||||||
else if (YbnExistsInProject(ybn))
|
else if (YbnExistsInProject(ybn))
|
||||||
{
|
{
|
||||||
if (collpoly != CurrentCollisionPoly)
|
if ((collvert != null) && (collvert != CurrentCollisionVertex))
|
||||||
|
{
|
||||||
|
ProjectExplorer?.TrySelectCollisionVertexTreeNode(collvert);
|
||||||
|
}
|
||||||
|
else if ((collpoly != null) && (collpoly != CurrentCollisionPoly))
|
||||||
{
|
{
|
||||||
ProjectExplorer?.TrySelectCollisionPolyTreeNode(collpoly);
|
ProjectExplorer?.TrySelectCollisionPolyTreeNode(collpoly);
|
||||||
}
|
}
|
||||||
if (collbound != CurrentCollisionBounds)
|
else if (collbound != CurrentCollisionBounds)
|
||||||
{
|
{
|
||||||
ProjectExplorer?.TrySelectCollisionBoundsTreeNode(collbound);
|
ProjectExplorer?.TrySelectCollisionBoundsTreeNode(collbound);
|
||||||
}
|
}
|
||||||
@ -6278,6 +6373,7 @@ namespace CodeWalker.Project
|
|||||||
CurrentCarGen = cargen;
|
CurrentCarGen = cargen;
|
||||||
CurrentGrassBatch = grassbatch;
|
CurrentGrassBatch = grassbatch;
|
||||||
CurrentYbnFile = ybn;
|
CurrentYbnFile = ybn;
|
||||||
|
CurrentCollisionVertex = collvert;
|
||||||
CurrentCollisionPoly = collpoly;
|
CurrentCollisionPoly = collpoly;
|
||||||
CurrentCollisionBounds = collbound;
|
CurrentCollisionBounds = collbound;
|
||||||
CurrentYndFile = ynd;
|
CurrentYndFile = ynd;
|
||||||
@ -6330,6 +6426,10 @@ namespace CodeWalker.Project
|
|||||||
{
|
{
|
||||||
OnWorldCarGenModified(sel.CarGenerator);
|
OnWorldCarGenModified(sel.CarGenerator);
|
||||||
}
|
}
|
||||||
|
else if (sel.CollisionVertex != null)
|
||||||
|
{
|
||||||
|
OnWorldCollisionVertexModified(sel.CollisionVertex);
|
||||||
|
}
|
||||||
else if (sel.CollisionPoly != null)
|
else if (sel.CollisionPoly != null)
|
||||||
{
|
{
|
||||||
OnWorldCollisionPolyModified(sel.CollisionPoly);
|
OnWorldCollisionPolyModified(sel.CollisionPoly);
|
||||||
@ -6475,6 +6575,45 @@ namespace CodeWalker.Project
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private void OnWorldCollisionVertexModified(BoundVertex vert)
|
||||||
|
{
|
||||||
|
var ybn = vert?.Owner?.GetRootYbn();
|
||||||
|
if (ybn == null) return;
|
||||||
|
|
||||||
|
CurrentYbnFile = ybn;
|
||||||
|
|
||||||
|
if (CurrentProjectFile == null)
|
||||||
|
{
|
||||||
|
NewProject();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!YbnExistsInProject(ybn))
|
||||||
|
{
|
||||||
|
ybn.HasChanged = true;
|
||||||
|
vert.Owner.HasChanged = true;
|
||||||
|
AddYbnToProject(ybn);
|
||||||
|
ProjectExplorer?.TrySelectCollisionVertexTreeNode(vert);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vert != CurrentCollisionVertex)
|
||||||
|
{
|
||||||
|
CurrentCollisionVertex = vert;
|
||||||
|
ProjectExplorer?.TrySelectCollisionVertexTreeNode(vert);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vert == CurrentCollisionVertex)
|
||||||
|
{
|
||||||
|
ShowEditYbnBoundVertexPanel(false);
|
||||||
|
|
||||||
|
//////UpdateCollisionVertexTreeNode(poly);
|
||||||
|
|
||||||
|
if (ybn != null)
|
||||||
|
{
|
||||||
|
SetYbnHasChanged(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
private void OnWorldCollisionPolyModified(BoundPolygon poly)
|
private void OnWorldCollisionPolyModified(BoundPolygon poly)
|
||||||
{
|
{
|
||||||
|
@ -103,6 +103,10 @@ namespace CodeWalker.Project
|
|||||||
{
|
{
|
||||||
bounds[item.CollisionPoly.Owner] = 1;
|
bounds[item.CollisionPoly.Owner] = 1;
|
||||||
}
|
}
|
||||||
|
if (item.CollisionVertex?.Owner != null)
|
||||||
|
{
|
||||||
|
bounds[item.CollisionVertex.Owner] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -763,6 +767,58 @@ namespace CodeWalker.Project
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class CollisionVertexPositionUndoStep : UndoStep
|
||||||
|
{
|
||||||
|
public BoundVertex Vertex { get; set; }
|
||||||
|
public Vector3 StartPosition { get; set; }
|
||||||
|
public Vector3 EndPosition { get; set; }
|
||||||
|
|
||||||
|
public CollisionVertexPositionUndoStep(BoundVertex vertex, Vector3 startpos, WorldForm wf)
|
||||||
|
{
|
||||||
|
Vertex = vertex;
|
||||||
|
StartPosition = startpos;
|
||||||
|
EndPosition = vertex?.Position ?? Vector3.Zero;
|
||||||
|
|
||||||
|
UpdateGraphics(wf);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
|
||||||
|
{
|
||||||
|
if (Vertex != null)
|
||||||
|
{
|
||||||
|
Vertex.Position = p;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Vertex != sel.CollisionVertex) wf.SelectCollisionVertex(Vertex);
|
||||||
|
wf.SetWidgetPosition(p);
|
||||||
|
|
||||||
|
UpdateGraphics(wf);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UpdateGraphics(WorldForm wf)
|
||||||
|
{
|
||||||
|
if (Vertex?.Owner != null)
|
||||||
|
{
|
||||||
|
wf.UpdateCollisionBoundsGraphics(Vertex.Owner);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Undo(WorldForm wf, ref MapSelection sel)
|
||||||
|
{
|
||||||
|
Update(wf, ref sel, StartPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Redo(WorldForm wf, ref MapSelection sel)
|
||||||
|
{
|
||||||
|
Update(wf, ref sel, EndPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return "Collision Vertex " + (Vertex?.Index.ToString() ?? "") + ": Position";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class PathNodePositionUndoStep : UndoStep
|
public class PathNodePositionUndoStep : UndoStep
|
||||||
|
@ -188,6 +188,7 @@ namespace CodeWalker
|
|||||||
public WaterQuad WaterQuad { get; set; }
|
public WaterQuad WaterQuad { get; set; }
|
||||||
public Bounds CollisionBounds { get; set; }
|
public Bounds CollisionBounds { get; set; }
|
||||||
public BoundPolygon CollisionPoly { get; set; }
|
public BoundPolygon CollisionPoly { get; set; }
|
||||||
|
public BoundVertex CollisionVertex { get; set; }
|
||||||
public YnvPoly NavPoly { get; set; }
|
public YnvPoly NavPoly { get; set; }
|
||||||
public YnvPoint NavPoint { get; set; }
|
public YnvPoint NavPoint { get; set; }
|
||||||
public YnvPortal NavPortal { get; set; }
|
public YnvPortal NavPortal { get; set; }
|
||||||
@ -226,6 +227,7 @@ namespace CodeWalker
|
|||||||
(WaterQuad != null) ||
|
(WaterQuad != null) ||
|
||||||
(CollisionBounds != null) ||
|
(CollisionBounds != null) ||
|
||||||
(CollisionPoly != null) ||
|
(CollisionPoly != null) ||
|
||||||
|
(CollisionVertex != null) ||
|
||||||
(NavPoly != null) ||
|
(NavPoly != null) ||
|
||||||
(NavPoint != null) ||
|
(NavPoint != null) ||
|
||||||
(NavPortal != null) ||
|
(NavPortal != null) ||
|
||||||
@ -264,6 +266,7 @@ namespace CodeWalker
|
|||||||
|| (WaterQuad != mhit.WaterQuad)
|
|| (WaterQuad != mhit.WaterQuad)
|
||||||
|| (CollisionBounds != mhit.CollisionBounds)
|
|| (CollisionBounds != mhit.CollisionBounds)
|
||||||
|| (CollisionPoly != mhit.CollisionPoly)
|
|| (CollisionPoly != mhit.CollisionPoly)
|
||||||
|
|| (CollisionVertex != mhit.CollisionVertex)
|
||||||
|| (NavPoly != mhit.NavPoly)
|
|| (NavPoly != mhit.NavPoly)
|
||||||
|| (NavPoint != mhit.NavPoint)
|
|| (NavPoint != mhit.NavPoint)
|
||||||
|| (NavPortal != mhit.NavPortal)
|
|| (NavPortal != mhit.NavPortal)
|
||||||
@ -290,6 +293,7 @@ namespace CodeWalker
|
|||||||
|| (WaterQuad != null)
|
|| (WaterQuad != null)
|
||||||
|| (CollisionBounds != null)
|
|| (CollisionBounds != null)
|
||||||
|| (CollisionPoly != null)
|
|| (CollisionPoly != null)
|
||||||
|
|| (CollisionVertex != null)
|
||||||
|| (NavPoly != null)
|
|| (NavPoly != null)
|
||||||
|| (NavPoint != null)
|
|| (NavPoint != null)
|
||||||
|| (NavPortal != null)
|
|| (NavPortal != null)
|
||||||
@ -318,6 +322,7 @@ namespace CodeWalker
|
|||||||
WaterQuad = null;
|
WaterQuad = null;
|
||||||
CollisionBounds = null;
|
CollisionBounds = null;
|
||||||
CollisionPoly = null;
|
CollisionPoly = null;
|
||||||
|
CollisionVertex = null;
|
||||||
NavPoly = null;
|
NavPoly = null;
|
||||||
NavPoint = null;
|
NavPoint = null;
|
||||||
NavPortal = null;
|
NavPortal = null;
|
||||||
@ -371,6 +376,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
name = "OccludeModel " + (OccludeModel.Ymap?.Name ?? "") + ": " + OccludeModel.Index.ToString();
|
name = "OccludeModel " + (OccludeModel.Ymap?.Name ?? "") + ": " + OccludeModel.Index.ToString();
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
name = "Vertex " + CollisionVertex.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
name = "Poly " + CollisionPoly.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
name = "Poly " + CollisionPoly.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
||||||
@ -441,6 +450,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
name = Archetype.Hash.ToString();
|
name = Archetype.Hash.ToString();
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
name = "Vertex " + CollisionVertex.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
name = "Poly " + CollisionPoly.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
name = "Poly " + CollisionPoly.Index.ToString() + ((CollisionBounds != null) ? (": " + CollisionBounds.GetName()) : string.Empty);
|
||||||
@ -540,6 +553,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
res = true;
|
res = true;
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
res = true;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
res = true;
|
res = true;
|
||||||
@ -591,6 +608,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
return CarGenerator.Position;
|
return CarGenerator.Position;
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
return CollisionVertex.Position;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
return CollisionPoly.Position;
|
return CollisionPoly.Position;
|
||||||
@ -646,6 +667,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
return CarGenerator.Orientation;
|
return CarGenerator.Orientation;
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
return Quaternion.Identity;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
return Quaternion.Identity;
|
return Quaternion.Identity;
|
||||||
@ -701,6 +726,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
return WidgetAxis.Z;
|
return WidgetAxis.Z;
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
return WidgetAxis.None;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
return WidgetAxis.XYZ;
|
return WidgetAxis.XYZ;
|
||||||
@ -756,6 +785,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
return new Vector3(CarGenerator.CCarGen.perpendicularLength);
|
return new Vector3(CarGenerator.CCarGen.perpendicularLength);
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
return Vector3.One;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
return Vector3.One;
|
return Vector3.One;
|
||||||
@ -824,6 +857,10 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
PathNode.SetPosition(newpos);
|
PathNode.SetPosition(newpos);
|
||||||
}
|
}
|
||||||
|
else if (CollisionVertex != null)
|
||||||
|
{
|
||||||
|
CollisionVertex.Position = newpos;
|
||||||
|
}
|
||||||
else if (CollisionPoly != null)
|
else if (CollisionPoly != null)
|
||||||
{
|
{
|
||||||
CollisionPoly.Position = newpos;
|
CollisionPoly.Position = newpos;
|
||||||
|
55
WorldForm.cs
55
WorldForm.cs
@ -1148,7 +1148,8 @@ namespace CodeWalker
|
|||||||
break;
|
break;
|
||||||
case MapSelectionMode.Collision:
|
case MapSelectionMode.Collision:
|
||||||
change = change || (LastMouseHit.CollisionBounds != PrevMouseHit.CollisionBounds)
|
change = change || (LastMouseHit.CollisionBounds != PrevMouseHit.CollisionBounds)
|
||||||
|| (LastMouseHit.CollisionPoly != PrevMouseHit.CollisionPoly);
|
|| (LastMouseHit.CollisionPoly != PrevMouseHit.CollisionPoly)
|
||||||
|
|| (LastMouseHit.CollisionVertex != PrevMouseHit.CollisionVertex);
|
||||||
break;
|
break;
|
||||||
case MapSelectionMode.NavMesh:
|
case MapSelectionMode.NavMesh:
|
||||||
change = change || (LastMouseHit.NavPoly != PrevMouseHit.NavPoly)
|
change = change || (LastMouseHit.NavPoly != PrevMouseHit.NavPoly)
|
||||||
@ -1252,6 +1253,13 @@ namespace CodeWalker
|
|||||||
mode = BoundsShaderMode.Sphere;
|
mode = BoundsShaderMode.Sphere;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (CurMouseHit.CollisionVertex != null)
|
||||||
|
{
|
||||||
|
var vpos = CurMouseHit.CollisionVertex.Position;
|
||||||
|
var crpos = camrel + ori.Multiply(vpos);
|
||||||
|
var vertexSize = 0.1f;
|
||||||
|
Renderer.RenderSelectionCircle(vpos, vertexSize, 0xFFFFFFFF);
|
||||||
|
}
|
||||||
if (CurMouseHit.CollisionPoly != null)
|
if (CurMouseHit.CollisionPoly != null)
|
||||||
{
|
{
|
||||||
Renderer.RenderSelectionCollisionPolyOutline(CurMouseHit.CollisionPoly, 0xFFFFFFFF, CurMouseHit.EntityDef);
|
Renderer.RenderSelectionCollisionPolyOutline(CurMouseHit.CollisionPoly, 0xFFFFFFFF, CurMouseHit.EntityDef);
|
||||||
@ -1554,7 +1562,14 @@ namespace CodeWalker
|
|||||||
Renderer.WhiteBoxes.Add(wbox);
|
Renderer.WhiteBoxes.Add(wbox);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectionItem.CollisionPoly != null)
|
if (selectionItem.CollisionVertex != null)
|
||||||
|
{
|
||||||
|
var vpos = selectionItem.CollisionVertex.Position;
|
||||||
|
var crpos = camrel + ori.Multiply(vpos);
|
||||||
|
var vertexSize = 0.1f;
|
||||||
|
Renderer.RenderSelectionCircle(vpos, vertexSize, cgrn);
|
||||||
|
}
|
||||||
|
else if (selectionItem.CollisionPoly != null)
|
||||||
{
|
{
|
||||||
Renderer.RenderSelectionCollisionPolyOutline(selectionItem.CollisionPoly, cgrn, selectionItem.EntityDef);
|
Renderer.RenderSelectionCollisionPolyOutline(selectionItem.CollisionPoly, cgrn, selectionItem.EntityDef);
|
||||||
}
|
}
|
||||||
@ -2304,6 +2319,17 @@ namespace CodeWalker
|
|||||||
CurMouseHit.BBOffset = trans;
|
CurMouseHit.BBOffset = trans;
|
||||||
CurMouseHit.BBOrientation = MouseRayCollision.HitBounds?.Transform.ToQuaternion() ?? Quaternion.Identity;
|
CurMouseHit.BBOrientation = MouseRayCollision.HitBounds?.Transform.ToQuaternion() ?? Quaternion.Identity;
|
||||||
CurMouseHit.AABB = new BoundingBox(MouseRayCollision.HitBounds?.BoxMin ?? Vector3.Zero, MouseRayCollision.HitBounds?.BoxMax ?? Vector3.Zero);
|
CurMouseHit.AABB = new BoundingBox(MouseRayCollision.HitBounds?.BoxMin ?? Vector3.Zero, MouseRayCollision.HitBounds?.BoxMax ?? Vector3.Zero);
|
||||||
|
|
||||||
|
float vertexDist = 0.1f;
|
||||||
|
if ((MouseRayCollision.HitVertex.Distance < vertexDist) && (MouseRayCollision.HitBounds is BoundGeometry bgeom))
|
||||||
|
{
|
||||||
|
CurMouseHit.CollisionVertex = bgeom.GetVertexObject(MouseRayCollision.HitVertex.Index);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CurMouseHit.CollisionVertex = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3575,6 +3601,23 @@ namespace CodeWalker
|
|||||||
SelectItem(ms);
|
SelectItem(ms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void SelectCollisionVertex(BoundVertex v)
|
||||||
|
{
|
||||||
|
if (v == null)
|
||||||
|
{
|
||||||
|
SelectItem(null);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
MapSelection ms = new MapSelection();
|
||||||
|
ms.CollisionVertex = v;
|
||||||
|
|
||||||
|
//ms.AABB = new BoundingBox(p.BoundingBoxMin, p.BoundingBoxMax);
|
||||||
|
|
||||||
|
SelectItem(ms);
|
||||||
|
}
|
||||||
|
}
|
||||||
public void SelectNavPoly(YnvPoly poly)
|
public void SelectNavPoly(YnvPoly poly)
|
||||||
{
|
{
|
||||||
if (poly == null)
|
if (poly == null)
|
||||||
@ -4836,6 +4879,7 @@ namespace CodeWalker
|
|||||||
var cargen = SelectedItem.CarGenerator;
|
var cargen = SelectedItem.CarGenerator;
|
||||||
var bounds = SelectedItem.CollisionBounds;
|
var bounds = SelectedItem.CollisionBounds;
|
||||||
var boundpoly = SelectedItem.CollisionPoly;
|
var boundpoly = SelectedItem.CollisionPoly;
|
||||||
|
var boundvertex = SelectedItem.CollisionVertex;
|
||||||
var pathnode = SelectedItem.PathNode;
|
var pathnode = SelectedItem.PathNode;
|
||||||
var navpoly = SelectedItem.NavPoly;
|
var navpoly = SelectedItem.NavPoly;
|
||||||
var navpoint = SelectedItem.NavPoint;
|
var navpoint = SelectedItem.NavPoint;
|
||||||
@ -4883,6 +4927,13 @@ namespace CodeWalker
|
|||||||
case WidgetMode.Scale: s = new CarGenScaleUndoStep(cargen, UndoStartScale); break;
|
case WidgetMode.Scale: s = new CarGenScaleUndoStep(cargen, UndoStartScale); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (boundvertex != null)
|
||||||
|
{
|
||||||
|
switch (tw.Mode)
|
||||||
|
{
|
||||||
|
case WidgetMode.Position: s = new CollisionVertexPositionUndoStep(boundvertex, UndoStartPosition, this); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (boundpoly != null)
|
else if (boundpoly != null)
|
||||||
{
|
{
|
||||||
switch (tw.Mode)
|
switch (tw.Mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user