Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        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;
            }
        }
Esempio n. 5
0
        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;
        }