コード例 #1
0
 public void SetEvolutionIcon(GUIMonsterIcon icon, bool canEvolve, bool onlyGrayOut)
 {
     icon.SetMessageLevel();
     if (canEvolve)
     {
         if (!onlyGrayOut)
         {
             icon.SortMess = StringMaster.GetString("CharaIcon-01");
             icon.SetSortMessageColor(ConstValue.DIGIMON_YELLOW);
         }
         else
         {
             icon.SetSortMessageColor(ConstValue.DIGIMON_GREEN);
         }
     }
     else
     {
         icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE);
         if (!onlyGrayOut)
         {
             icon.SortMess = StringMaster.GetString("CharaIcon-02");
             icon.SetSortMessageColor(ConstValue.DIGIMON_BLUE);
         }
         else
         {
             icon.SetSortMessageColor(ConstValue.DIGIMON_GREEN);
         }
     }
 }
コード例 #2
0
 public void SetVersionUpIcon(GUIMonsterIcon icon, bool canVersionUp, bool onlyGrayOut)
 {
     icon.SetMessageLevel();
     if (canVersionUp)
     {
         icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE);
         if (!onlyGrayOut)
         {
             icon.SortMess = StringMaster.GetString("CharaIcon-05");
             icon.SetSortMessageColor(ConstValue.DIGIMON_YELLOW);
         }
         else
         {
             icon.SetSortMessageColor(ConstValue.DIGIMON_GREEN);
         }
     }
     else
     {
         icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE);
         if (!onlyGrayOut)
         {
             icon.SortMess = StringMaster.GetString("CharaIcon-06");
             icon.SetSortMessageColor(ConstValue.DIGIMON_BLUE);
         }
         else
         {
             icon.SetSortMessageColor(ConstValue.DIGIMON_GREEN);
         }
     }
     icon.SetTouchAct_S(this.normalStateAction.onTouch);
     icon.SetTouchAct_L(this.normalStateAction.onPress);
 }