Esempio n. 1
0
        /// <summary>
        /// 图片路径
        /// </summary>
        /// <param name="status"></param>
        private void ImagePath(Particle.StatusParticle status)
        {
            var window = _window as UISpecialeffectsWindow;

            if (status == Particle.StatusParticle.closing_date)
            {
                window.imagePath = "share/atlas/battle/headtitle/closing_date.ab";
            }
            else if (status == Particle.StatusParticle.inner_ring_fate)
            {
                window.imagePath = "share/atlas/battle/headtitle/fate.ab";
            }
            else if (status == Particle.StatusParticle.inner_ring_free_time)
            {
                window.imagePath = "share/atlas/battle/headtitle/rich_time.ab";
            }
            else if (status == Particle.StatusParticle.inner_ring_investment)
            {
                window.imagePath = "share/atlas/battle/headtitle/investment.ab";
            }
            else if (status == Particle.StatusParticle.inner_ring_quality_life)
            {
                window.imagePath = "share/atlas/battle/headtitle/improve_the_quality_of_life.ab";
            }
            else if (status == Particle.StatusParticle.outer_ring_fate)
            {
                window.imagePath = "share/atlas/battle/headtitle/fate.ab";
            }
            else if (status == Particle.StatusParticle.outer_ring_great_opportunity)
            {
                window.imagePath = "share/atlas/battle/headtitle/opportunity.ab";
            }
            else if (status == Particle.StatusParticle.outer_ring_little_chance)
            {
                window.imagePath = "share/atlas/battle/headtitle/opportunity.ab";
            }
            else if (status == Particle.StatusParticle.outer_ring_risk)
            {
                window.imagePath = "share/atlas/battle/headtitle/risk.ab";
            }
            else if (status == Particle.StatusParticle.specialcharitycard)
            {
                window.imagePath = "share/atlas/battle/headtitle/philanthropic_undertaking.ab";
            }
            else if (status == Particle.StatusParticle.specialchild)
            {
                window.imagePath = "share/atlas/battle/headtitle/give_birth_to_a_child.ab";
            }
            else if (status == Particle.StatusParticle.specialhealth)
            {
                window.imagePath = "share/atlas/battle/headtitle/health_management.ab";
            }
            else if (status == Particle.StatusParticle.specialstudy)
            {
                window.imagePath = "share/atlas/battle/headtitle/further_study.ab";
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 设置标题的信息
        /// </summary>
        /// <param name="tra"></param>
        /// <param name="status"></param>
        public void setHeadImage(Transform tra, Particle.StatusParticle status)
        {
            ImagePath(status);

            var window = _window as UISpecialeffectsWindow;

            if (null != window)
            {
                window.SetImagePos(tra);
                mUpdateImage = true;
            }
        }