mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 00:43:00 +08:00
Fixed vehicle license plates rendering
This commit is contained in:
parent
8dafe56db0
commit
f3c7538d78
@ -10,6 +10,8 @@ namespace CodeWalker.GameFiles
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class VehicleLayoutsFile : GameFile, PackedFile
|
||||
{
|
||||
public string Xml { get; set; }
|
||||
|
||||
public VehicleLayoutsFile() : base(null, GameFileType.VehicleLayouts)
|
||||
{ }
|
||||
public VehicleLayoutsFile(RpfFileEntry entry) : base(entry, GameFileType.VehicleLayouts)
|
||||
@ -22,9 +24,11 @@ namespace CodeWalker.GameFiles
|
||||
Name = entry.Name;
|
||||
FilePath = Name;
|
||||
|
||||
//TODO
|
||||
|
||||
//always XML .meta
|
||||
Xml = Encoding.UTF8.GetString(data);
|
||||
|
||||
//TODO: parse CVehicleMetadataMgr XML
|
||||
|
||||
|
||||
Loaded = true;
|
||||
|
@ -1534,6 +1534,8 @@ namespace CodeWalker.GameFiles
|
||||
if (entry.NameLower.StartsWith("vehiclelayouts") && entry.NameLower.EndsWith(".meta"))
|
||||
{
|
||||
var lf = RpfMan.GetFile<VehicleLayoutsFile>(entry);
|
||||
if (lf.Xml != null)
|
||||
{ }
|
||||
allVehicleLayouts.Add(lf);
|
||||
}
|
||||
}
|
||||
|
@ -543,9 +543,11 @@ namespace CodeWalker.Rendering
|
||||
switch (ihash)
|
||||
{
|
||||
case MetaName.DiffuseSampler:
|
||||
case MetaName.PlateBgSampler:
|
||||
texture = itex;
|
||||
break;
|
||||
case MetaName.BumpSampler:
|
||||
case MetaName.PlateBgBumpSampler:
|
||||
bumptex = itex;
|
||||
break;
|
||||
case MetaName.SpecSampler:
|
||||
|
Loading…
Reference in New Issue
Block a user