private UiNode[] ExpandWpdChilds() { ImgbArchiveAccessor imgbAccessor = new ImgbArchiveAccessor(_listing, _indices, _binary); WpdArchiveListing wpdListing = WpdArchiveListingReader.Read(imgbAccessor); UiNode[] result = new UiNode[wpdListing.Count]; for (int i = 0; i < result.Length; i++) { WpdEntry xgrEntry = wpdListing[i]; result[i] = new UiWpdTableLeaf(xgrEntry.Name, xgrEntry, wpdListing) { Parent = this }; } return(result); }
private void OnWpdLeafSelected(UiWpdTableLeaf wpdLeaf) { WpdEntry entry = wpdLeaf.Entry; WpdArchiveListing listing = wpdLeaf.Listing; switch (entry.Extension) { case "txbh": case "vtex": _textureViewer.Show(listing, entry); break; case "ykd": _ykd.Show(listing, entry); break; } }
private void OnSelectedLeafChanged(IUiLeaf leaf) { HideControls(); UiWpdTableLeaf wpdLeaf = leaf as UiWpdTableLeaf; if (wpdLeaf != null) { OnWpdLeafSelected(wpdLeaf); return; } UiArchiveLeaf archiveLeaf = leaf as UiArchiveLeaf; if (archiveLeaf != null) { OnArchiveLeafSelected(archiveLeaf); } }
private UiNode[] ExpandWpdChilds() { ImgbArchiveAccessor imgbAccessor = new ImgbArchiveAccessor(_listing, _indices, _binary); WpdArchiveListing wpdListing = WpdArchiveListingReader.Read(imgbAccessor); UiNode[] result = new UiNode[wpdListing.Count]; for (int i = 0; i < result.Length; i++) { WpdEntry xgrEntry = wpdListing[i]; result[i] = new UiWpdTableLeaf(xgrEntry.Name, xgrEntry, wpdListing) {Parent = this}; } return result; }