Esempio n. 1
0
    void BtnDownloadOnClick()
    {
        if (mSelectedDetail != null)
        {
            if (mMyWorkShopMgr.DownLoadFile(mSelectedDetail))
            {
                int findIndex = FindIndexInGrid(mSelectedDetail.m_nPublishedFileId);
                if (findIndex == -1)
                {
                    return;
                }

                int i = findIndex % mUploadGridCtrl.mMaxGridCount;
                if (i > mUploadGridCtrl.mMaxGridCount || i < 0)
                {
                    return;
                }
                mUploadGridCtrl.mUIItems[i].ActiveUpDown(true);
                mUploadGridCtrl.mUIItems[i].UpdteUpDownInfo("0%");
            }
        }
//		UGCHandle_t handle =new UGCHandle_t();
//		handle.m_UGCHandle = 3318339173234368542;
//		PublishedFileId_t id = new PublishedFileId_t();
//		id.m_PublishedFileId = 0;
//		SteamProcessMgr.Instance.GetPrimaryFile(null,handle,id);
    }
Esempio n. 2
0
    // ---------DownLoad-----------------------------------------------------------------
    void BtnDownloadOnClick()
    {
        //SteamWorkShop.Instance.GetRandIsos(1,5);
        //return;
        if (mSelectedDetail != null)
        {
            if (mWorkShopMgr.DownLoadFile(mSelectedDetail))
            {
                int findIndex = FindIndexInGrid(mSelectedDetail.m_nPublishedFileId);
                if (findIndex == -1)
                {
                    return;
                }

                int i = findIndex % mWorkShopGridCtrl.mMaxGridCount;
                if (i > mWorkShopGridCtrl.mMaxGridCount || i < 0)
                {
                    return;
                }
                mWorkShopGridCtrl.mUIItems[i].ActiveUpDown(true);
                mWorkShopGridCtrl.mUIItems[i].UpdteUpDownInfo("0%");
            }
        }
    }