Пример #1
0
    //--------------------------------------------------------------------------------------------
    void NtfRefreshScene()
    {
        mScnCtrl.ResetCtrl();
        List <string> vAry = ArchiveUtil.NtfGetFiles(GetGamePath(), true, "*.unity");

        foreach (string sPth in vAry)
        {
            string sf = ArchiveUtil.NtfPathAfter(mPath, sPth);
            mScnCtrl.AddItem(new TglItem(true, sf));
        }
    }
Пример #2
0
    //--------------------------------------------------------------------------------------------
    void NtfRefreshPath()
    {
        if (m_useConfig)
        {
            NtfRefreshPathFromConfig();
            return;
        }
        mPthCtrl.ResetCtrl();
        List <string> pths = ArchiveUtil.NtfGetDirs(GetGamePath(), false, ArchiveUtil.mSkips);

        foreach (string sPth in pths)
        {
            string sf = ArchiveUtil.NtfPathAfter(mPath, sPth) + "/";
            mPthCtrl.AddItem(new TglItem(true, sf));
        }
        string        szPth = GetGamePath();
        List <string> vfs   = ArchiveUtil.NtfGetFiles(szPth, false, ArchiveUtil.mSkips);

        foreach (string sf in vfs)
        {
            string nf = ArchiveUtil.NtfPathAfter(mPath, sf);
            mPthCtrl.AddItem(new TglItem(true, nf));
        }
    }