private void UpdateEfc() { if (this.prizeEfcDir != null) { PrizeEfcDirector.EFC_TYPE nowType = this.prizeEfcDir.GetNowType(); float a = this.prizeEfcDir.GetNowValue(); int typeCount = this.prizeEfcDir.GetTypeCount(); if (typeCount <= 1) { a = 1f; } this.spInharitance.color = this.nCol; this.spLeaderSkill.color = this.nCol; this.wdgMedalRoot.color = this.nCol; Color color = new Color(1f, 1f, 1f, a); switch (nowType) { case PrizeEfcDirector.EFC_TYPE.INHARITANCE: this.spInharitance.color = color; break; case PrizeEfcDirector.EFC_TYPE.LEADER_SKILL: this.spLeaderSkill.color = color; break; case PrizeEfcDirector.EFC_TYPE.MEDAL: this.wdgMedalRoot.color = color; break; } } }
private void AddNewType(PrizeEfcDirector.EFC_TYPE type) { for (int i = 0; i < this.efcTypeList.Count; i++) { if (this.efcTypeList[i] == type) { return; } } this.efcTypeList.Add(type); }
private int CompareEfcType(PrizeEfcDirector.EFC_TYPE xx, PrizeEfcDirector.EFC_TYPE yy) { if (xx < yy) { return(-1); } if (xx > yy) { return(1); } return(0); }