mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-24 22:43:08 +08:00
YFT/XML conversion progress
This commit is contained in:
parent
08d60877ee
commit
88b4785a10
File diff suppressed because it is too large
Load Diff
@ -1491,7 +1491,7 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
|
|
||||||
public ulong[] data_pointers { get; private set; }
|
public ulong[] data_pointers { get; private set; }
|
||||||
public T[] data_items { get; private set; }
|
public T[] data_items { get; set; }
|
||||||
|
|
||||||
|
|
||||||
private ResourceSystemStructBlock<T>[] data_blocks = null;
|
private ResourceSystemStructBlock<T>[] data_blocks = null;
|
||||||
|
@ -983,7 +983,7 @@ namespace CodeWalker.Forms
|
|||||||
{
|
{
|
||||||
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
||||||
|
|
||||||
var dname = child.GroupNameHash.ToString();
|
var dname = child.GroupName;
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
||||||
@ -1028,7 +1028,7 @@ namespace CodeWalker.Forms
|
|||||||
{
|
{
|
||||||
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
||||||
|
|
||||||
var dname = child.GroupNameHash.ToString();
|
var dname = child.GroupName;
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
||||||
|
@ -54,7 +54,7 @@ namespace CodeWalker.Forms
|
|||||||
{
|
{
|
||||||
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
||||||
|
|
||||||
var dname = child.GroupNameHash.ToString();
|
var dname = child.GroupName;
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail");
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail");
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail");
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail");
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail");
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail");
|
||||||
|
@ -164,7 +164,7 @@ namespace CodeWalker.Project.Panels
|
|||||||
if (bone != null)
|
if (bone != null)
|
||||||
{
|
{
|
||||||
var modeltransforms = skeleton.Transformations;
|
var modeltransforms = skeleton.Transformations;
|
||||||
var fragtransforms = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysLod?.FragTransforms?.Data;
|
var fragtransforms = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysLod?.FragTransforms?.Matrices;
|
||||||
var fragtransformid = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysIndex ?? 0;
|
var fragtransformid = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysIndex ?? 0;
|
||||||
var fragoffset = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysLod.Unknown_30h ?? Vector4.Zero;
|
var fragoffset = fdwbl?.OwnerFragmentPhys?.OwnerFragPhysLod.Unknown_30h ?? Vector4.Zero;
|
||||||
fragoffset.W = 0.0f;
|
fragoffset.W = 0.0f;
|
||||||
|
@ -206,7 +206,7 @@ namespace CodeWalker.Rendering
|
|||||||
{
|
{
|
||||||
if (phys.OwnerFragPhysLod != null)
|
if (phys.OwnerFragPhysLod != null)
|
||||||
{
|
{
|
||||||
fragtransforms = phys.OwnerFragPhysLod.FragTransforms?.Data;
|
fragtransforms = phys.OwnerFragPhysLod.FragTransforms?.Matrices;
|
||||||
fragtransformid = phys.OwnerFragPhysIndex;
|
fragtransformid = phys.OwnerFragPhysIndex;
|
||||||
fragoffset = phys.OwnerFragPhysLod.Unknown_30h;
|
fragoffset = phys.OwnerFragPhysLod.Unknown_30h;
|
||||||
fragoffset.W = 0.0f;
|
fragoffset.W = 0.0f;
|
||||||
|
@ -651,7 +651,7 @@ namespace CodeWalker.Vehicles
|
|||||||
{
|
{
|
||||||
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
if (cdrwbl.Owner is FragDrawable) continue; //it's a copied drawable... eg a wheel
|
||||||
|
|
||||||
var dname = child.GroupNameHash.ToString();
|
var dname = child.GroupName;
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsHigh, dname + " - High Detail", true);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsMedium, dname + " - Medium Detail", false);
|
||||||
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
AddDrawableModelsTreeNodes(cdrwbl.DrawableModelsLow, dname + " - Low Detail", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user