Example #1
0
        public void copyFrom(UISkin o, bool copySubSkin)
        {
            this.m_assetConf = o.assetConf;
            this.m_prop      = o.prop;
            this.m_styleConf = o.m_styleConf;
            bool flag = copySubSkin && o.m_subSkin != null;

            if (flag)
            {
                this.m_subSkin = new Dictionary <string, UISkin>();
                foreach (string current in o.m_subSkin.Keys)
                {
                    UISkin uISkin = new UISkin();
                    uISkin.copyFrom(o.m_subSkin[current]);
                    this.m_subSkin[current] = uISkin;
                }
            }
            bool flag2 = copySubSkin && o.m_statusSkin != null;

            if (flag2)
            {
                bool flag3 = this.m_statusSkin == null;
                if (flag3)
                {
                    this.m_statusSkin = new Dictionary <string, UISkin>();
                }
                foreach (string current2 in o.m_statusSkin.Keys)
                {
                    UISkin uISkin2 = new UISkin();
                    uISkin2.copyFrom(o.m_statusSkin[current2]);
                    this.m_statusSkin[current2] = uISkin2;
                }
            }
        }
Example #2
0
 public void copyFrom(UISkin o)
 {
     this.copyFrom(o, false);
 }