Exemple #1
0
    public void Unload()
    {
        bool flag = !this.mImageLoading;

        if (flag)
        {
            this.mThumbnailImage = null;
        }
    }
Exemple #2
0
    public void CheckLoad()
    {
        bool flag = !this.mImageLoading && this.mThumbnailImage == null && XinYueStudioImageDownloader.Instance.GetJobCount() < XinYueStudioImageDownloader.Instance.mMaxJobCount;

        if (flag)
        {
            this.mImageLoading   = true;
            this.mThumbnailImage = XinYueStudioWindow.Instance.mThumbnailImage;
        }
    }
Exemple #3
0
    public void InitImages()
    {
        this.mSpinnerImage             = new XinYueStudioAnimatedImage(GetDirectory() + "/Images/spinner.png", "", false, 15, 6, 3, 134, 106);
        this.mLoadingImage             = new XinYueStudioAnimatedImage(GetDirectory() + "/Images/substancesourceloading.png", "", false, 32, 10, 8, 315, 315);
        this.mAssetDownload            = new XinYueStudioAnimatedImage(GetDirectory() + "/Images/AssetDownload.png", "", false, 12, 20, 3, 98, 98);
        this.mSubstanceLogo            = new XinYueStudioImage(GetDirectory() + "/Images/logo-substance.png", "", false, 100, 100);
        this.mSourceLogo               = new XinYueStudioImage(GetDirectory() + "/Images/logo-white.png", "", false, 100, 100);
        this.mFreeTag                  = new XinYueStudioImage(GetDirectory() + "/Images/free.png", "", false, 100, 100);
        this.mOwnedTag                 = new XinYueStudioImage(GetDirectory() + "/Images/1.jpg", "", false, 556, 387);
        this.mNewTag                   = new XinYueStudioImage(GetDirectory() + "/Images/new.png", "", false, 100, 100);
        this.mRightArrow               = new XinYueStudioImage(GetDirectory() + "/Images/rightarrow.png", "", false, 100, 100);
        this.mLeftArrow                = new XinYueStudioImage(GetDirectory() + "/Images/leftarrow.png", "", false, 100, 100);
        this.mDownloadButton           = new XinYueStudioImage(GetDirectory() + "/Images/download.png", "", false, 100, 100);
        this.mAvailableDownloadsButton = new XinYueStudioImage(GetDirectory() + "/Images/AvailableDownloads.png", "", false, 100, 100);
        this.mLoginButton              = new XinYueStudioImage(GetDirectory() + "/Images/LoginButton.png", "", false, 100, 100);
        this.mLogoutButton             = new XinYueStudioImage(GetDirectory() + "/Images/LogoutButton.png", "", false, 100, 100);
        this.mMyAssetsButton           = new XinYueStudioImage(GetDirectory() + "/Images/MyAssetsButton.png", "", false, 100, 100);
        this.mMagnifyingGlass          = new XinYueStudioImage(GetDirectory() + "/Images/MagnifyingGlass.png", "", false, 100, 100);
        this.mSourceIcon               = new XinYueStudioImage(GetDirectory() + "/Images/Source.Icon.png", "", false, 100, 100);
        this.mDetailExitButton         = new XinYueStudioImage(GetDirectory() + "/Images/DetailExitButton.png", "", false, 100, 100);

        this.mThumbnailImage = new XinYueStudioImage(GetDirectory() + "/Images/1.jpg", "", false, 556, 387);
    }