public InternalTextureEditor(AssetRWTX asset, ArchiveEditorFunctions archive) { InitializeComponent(); TopMost = true; this.asset = asset; this.archive = archive; propertyGridAsset.SelectedObject = asset; labelAssetName.Text = $"[{asset.AHDR.assetType.ToString()}] {asset.ToString()}"; }
public InternalTextureEditor(AssetRWTX asset, ArchiveEditorFunctions archive) { InitializeComponent(); TopMost = true; this.asset = asset; this.archive = archive; propertyGridAsset.SelectedObject = asset; Text = $"[{asset.assetType}] {asset}"; RefreshPropertyGrid(); }
public void EnableTextureForDisplay(AssetRWTX RWTX) { if (!Directory.Exists(tempGcTxdsDir)) { Directory.CreateDirectory(tempGcTxdsDir); } if (!Directory.Exists(tempPcTxdsDir)) { Directory.CreateDirectory(tempPcTxdsDir); } ExportSingleTextureToDictionary(pathToGcTXD, RWTX.Data, RWTX.AHDR.ADBG.assetName); PerformTXDConversionExternal(platform); TextureManager.LoadTexturesFromTXD(pathToPcTXD); File.Delete(pathToGcTXD); File.Delete(pathToPcTXD); }