示例#1
0
        protected void initTitleFinish(_graphChaSprite spr)
        {
            bool disposed = this._disposed;

            if (disposed)
            {
                spr.dispose();
            }
            else
            {
                Variant variant = this._titleSprites[spr.userdata["tp"]];
                bool    flag    = variant == null;
                if (flag)
                {
                    spr.dispose();
                }
                else
                {
                    Dictionary <string, Variant> dictionary = variant["sprs"][spr.userdata["showtp"]._str]._val as Dictionary <string, Variant>;
                    bool flag2 = dictionary == null || dictionary["spr"]._val != spr;
                    if (flag2)
                    {
                        spr.dispose();
                    }
                    else
                    {
                        bool flag3 = (dictionary["spr"]._val as _graphChaSprite).dispObj == null;
                        if (flag3)
                        {
                            variant["sprs"][spr.userdata["showtp"]._str] = null;
                        }
                        else
                        {
                            dictionary["add"] = true;
                            this._titleSpr.addChild(spr.dispObj);
                            this._insertOriSprite(spr, spr.userdata["conf"]["ori"], this._titleOriData);
                            bool flag4 = spr is _graphChaAniSprite;
                            if (flag4)
                            {
                                this._aniSprites.Add(spr as _graphChaAniSprite);
                            }
                            bool flag5 = spr is _graphChatSprite;
                            if (flag5)
                            {
                                this._chatSprites.Add(spr as _graphChatSprite);
                            }
                        }
                    }
                }
            }
        }
示例#2
0
        protected void initDynamicFinish(_graphChaSprite spr)
        {
            bool disposed = this._disposed;

            if (disposed)
            {
                spr.dispose();
            }
            else
            {
                spr.userdata["loaded"] = true;
            }
        }