public static void ClaerDetailed(this MonsterIcon self)
 {
     self.Thumbnail.SetEmptyIcon();
     if (null != self.Lock)
     {
         self.Lock.SetUnlock();
     }
     if (null != self.New)
     {
         self.New.ClearNew();
     }
     if (null != self.Message)
     {
         self.Message.ClearMessage();
     }
     if (null != self.Arousal)
     {
         self.Arousal.ClearArousal();
     }
     if (null != self.Medal)
     {
         self.Medal.ClearMedal();
     }
     if (null != self.PlayerNo)
     {
         self.PlayerNo.ClearPlayerNo();
     }
     if (null != self.Gimmick)
     {
         self.Gimmick.ClearGimmickIcon();
     }
 }
        public static void SetBattleMonsterDetailed(this MonsterIcon self, MonsterUserData monster, int playerIndex)
        {
            MonsterClientMaster monsterMaster = monster.GetMonsterMaster();

            self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
            self.Arousal.SetArousal(monsterMaster.Simple.rare);
            self.PlayerNo.SetPlayerIndex(playerIndex);
        }
示例#3
0
        private void InitializeMonsterIcon(MonsterIcon icon)
        {
            UIWidget component = base.GetComponent <UIWidget>();
            int      depth     = component.depth;

            this.monsterIcon = icon;
            this.monsterIcon.Initialize(base.transform, this.iconSize, depth);
        }
 public static void SetGashaMonsterDetailed(this MonsterIcon self, MonsterClientMaster monsterMaster, bool isNew)
 {
     self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
     self.Arousal.SetArousal(monsterMaster.Simple.rare);
     if (isNew)
     {
         self.New.SetNew();
     }
 }
        public void Initialize(ColosseumDeckData data)
        {
            this.deckData = data;
            MonsterIcon icon = MonsterIconFactory.CreateIcon(13);

            for (int i = 0; i < 6; i++)
            {
                this.listItemList[i].Initialize(data, MonsterIconFactory.Copy(icon));
            }
            this.InitializeDeckInfo();
        }
示例#6
0
        public void Initialize()
        {
            UIWidget component = base.GetComponent <UIWidget>();
            int      depth     = component.depth;

            this.monsterIcon = this.dialogRoot.GetMonsterIconObject();
            this.monsterIcon.Initialize(base.transform, this.iconSize, depth);
            this.monsterIcon.Message.SetSortTextColor(this.iconTextColor);
            GameObject rootObject = this.monsterIcon.GetRootObject();

            rootObject.transform.localPosition = new Vector3(this.iconPosition.x, this.iconPosition.y, 0f);
        }
        public void Initialize(ColosseumDeckData data, MonsterIcon icon)
        {
            this.deckData = data;
            UIWidget component = this.parentList.GetComponent <UIWidget>();
            int      depth     = component.depth;

            this.monsterIcon = icon;
            this.monsterIcon.Initialize(base.transform, this.iconSize, depth);
            base.InitializeInputEvent();
            this.actionTouch     = new Action(this.OnPushedItem);
            this.actionLongPress = new Action(this.OnLongPressItem);
        }
        private void Initialize()
        {
            this.playSelectSE  = true;
            this.touchBehavior = GUICollider.TouchBehavior.None;
            UIWidget component = this.listComponent.GetComponent <UIWidget>();
            int      depth     = component.depth;

            this.monsterIcon = this.listComponent.GetMonsterIconObject();
            this.monsterIcon.Initialize(base.transform, this.iconSize, depth);
            this.monsterIcon.Message.SetSortTextColor(this.iconTextColor);
            base.InitializeInputEvent();
        }
        public static void SetColosseumDeckMonsterDetailed(this MonsterIcon self, MonsterUserData monster)
        {
            MonsterClientMaster monsterMaster = monster.GetMonsterMaster();

            self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
            self.Arousal.SetArousal(monsterMaster.Simple.rare);
            if (monster.GetMonster().IsLocked)
            {
                self.Lock.SetLock();
            }
            else
            {
                self.Lock.SetUnlock();
            }
        }
示例#10
0
        private void Initialize()
        {
            this.playSelectSE  = true;
            this.touchBehavior = GUICollider.TouchBehavior.None;
            UIWidget component = this.listRoot.GetComponent <UIWidget>();
            int      depth     = component.depth;

            this.monsterIcon = this.listRoot.GetMonsterIconObject();
            this.monsterIcon.Initialize(base.transform, this.iconSize, depth);
            this.monsterIcon.Message.SetSortTextColor(this.iconTextColor);
            GameObject rootObject = this.monsterIcon.GetRootObject();

            rootObject.transform.localPosition = new Vector3(this.iconPosition.x, this.iconPosition.y, 0f);
            base.InitializeInputEvent();
        }
示例#11
0
        protected override void OnShowDialog()
        {
            base.SetTutorialAnyTime("anytime_second_tutorial_evolution_rootmap");
            base.PartsTitle.SetTitle(StringMaster.GetString("EvolutionDiagramTitle"));
            this.monsterIconSource = MonsterIconFactory.CreateIcon(1);
            this.selectMonsterInfo.Initialize();
            this.beforeList.Initialize();
            this.afterList.Initialize();
            this.UpdateSelectMonster();
            this.UpdateViewList();
            UI_EvolutionCharacterModelViewer component = base.gameObject.GetComponent <UI_EvolutionCharacterModelViewer>();

            if (null != component)
            {
                component.Initialize();
            }
        }
示例#12
0
        private bool SetMonsterIcon(string assetsValue, Transform parent, int iconSize, int depth, int monsterIconOption)
        {
            bool result = false;
            MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(assetsValue);

            if (monsterMasterByMonsterId != null)
            {
                MonsterIcon monsterIcon = MonsterIconFactory.CreateIcon(monsterIconOption);
                if (monsterIcon != null)
                {
                    monsterIcon.Initialize(parent, iconSize, depth);
                    monsterIcon.Message.SetSortTextColor(Color.white);
                    monsterIcon.SetMonsterImage(monsterMasterByMonsterId);
                    result = true;
                }
            }
            return(result);
        }
示例#13
0
        public void Initialize()
        {
            MonsterIcon icon = MonsterIconFactory.CreateIcon(76);

            this.Initialize(MonsterIconFactory.Copy(icon));
        }
 public static void SetMonsterImage(this MonsterIcon self, MonsterClientMaster monsterMaster)
 {
     self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
 }
示例#15
0
 public void Initialize(MonsterIcon icon)
 {
     this.InitializeMonsterIcon(icon);
     base.InitializeInputEvent();
 }
 public void Initialize()
 {
     this.monsterIconSource = MonsterIconFactory.CreateIcon(1);
     base.InitializeView(2);
 }
 public static void SetMonsterDetailed(this MonsterIcon self, MonsterClientMaster monsterMaster)
 {
     self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep);
     self.Arousal.SetArousal(monsterMaster.Simple.rare);
 }