示例#1
0
        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();
        }
示例#3
0
        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);
        }