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); }
public void SetLockReturnDetailed(GUIMonsterIcon icon, bool isLock) { if (isLock) { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); } else { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SetTouchAct_S(this.normalStateAction.onTouch); icon.SetTouchAct_L(this.normalStateAction.onPress); } }
public void CancelLockIconReturnDetailed(GUIMonsterIcon icon) { icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SetTouchAct_S(this.normalStateAction.onTouch); icon.SetTouchAct_L(this.normalStateAction.onPress); }
public void BlockMedalNoPossibility(GUIMonsterIcon icon) { icon.DimmMess = StringMaster.GetString("MedalInherit_NoPossibility"); icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); }
public void BlockSpecialTypeMonster(GUIMonsterIcon icon) { icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); }
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); } } }
public static GUIMonsterIcon MakePrefabByMonsterData(MonsterData monsterData, Vector3 vScl, Vector3 vPos, Transform parent = null, bool initIconState = true, bool readTexByASync = false) { GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(GUIMonsterIcon.goMONSTER_ICON_M); gameObject.SetActive(true); Transform transform = gameObject.transform; if (parent == null) { transform.parent = GUIMonsterIcon.goMONSTER_ICON_BAK_ROOT.transform; } else { transform.parent = parent; } transform.localScale = vScl; transform.localPosition = vPos; GUIMonsterIcon component = gameObject.GetComponent <GUIMonsterIcon>(); component.ReadTexByASync = readTexByASync; component.data = monsterData; component.ShowGUI(); if (initIconState) { component.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); component.SelectNum = -1; component.DimmMess = string.Empty; component.SortMess = string.Empty; if (monsterData != null && monsterData.userMonster != null) { component.Lock = monsterData.userMonster.IsLocked; } } return(component); }
public void SetSelectPartner(GUIMonsterIcon icon, int iconNumber) { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SelectNum = iconNumber; icon.SetTouchAct_S(this.selectedStateAction.onTouch); icon.SetTouchAct_L(this.selectedStateAction.onPress); }
public void CancelSelect(GUIMonsterIcon icon) { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SelectNum = -1; icon.SetTouchAct_S(this.normalStateAction.onTouch); icon.SetTouchAct_L(this.normalStateAction.onPress); }
public void BlockPartyUsed(GUIMonsterIcon icon) { icon.DimmMess = StringMaster.GetString("CharaIcon-04"); icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); }
public void SetSelectText(GUIMonsterIcon icon, string iconText) { icon.DimmMess = iconText; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.selectedStateAction.onTouch); icon.SetTouchAct_L(this.selectedStateAction.onPress); }
public void ResetState(GUIMonsterIcon icon) { icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SetTouchAct_S(this.normalStateAction.onTouch); icon.SetTouchAct_L(this.normalStateAction.onPress); }
public void BlockLockIconReturnDetailed(GUIMonsterIcon icon) { icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); }
public void SetSelect(GUIMonsterIcon icon) { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SelectNum = 0; icon.SetTouchAct_S(this.selectedStateAction.onTouch); icon.SetTouchAct_L(this.selectedStateAction.onPress); }
public void SetSelect(GUIMonsterIcon icon) { icon.DimmMess = StringMaster.GetString("SystemSelect"); icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.selectedStateAction.onTouch); icon.SetTouchAct_L(this.selectedStateAction.onPress); }
private void CreateDigimonThumbnail() { if (!this.isMulti) { int[] aliveInfo = DataMng.Instance().WD_ReqDngResult.aliveInfo; for (int i = 0; i < this.deckData.monsterList.Length; i++) { this.digimonInfos[i].DigimonNo = i; GameWebAPI.RespDataMN_GetDeckList.MonsterList monsterList = this.deckData.monsterList[i]; MonsterData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(monsterList.userMonsterId); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(userMonster.GetMonster().monsterId); Transform iconLocator = this.digimonInfos[i].GetIconLocator(); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, iconLocator.localScale, iconLocator.localPosition, iconLocator.parent, true, false); guimonsterIcon.name = "DigimonIcon" + i; guimonsterIcon.activeCollider = false; int depth = guimonsterIcon.GetComponent <UIWidget>().depth; this.digimonInfos[i].SetDepth(depth); if (aliveInfo.Length > i && aliveInfo[i] == 0) { guimonsterIcon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); } } } else { int[] aliveInfo2 = DataMng.Instance().WD_ReqDngResult.aliveInfo; GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo; for (int j = 0; j < this.digimonInfos.Length; j++) { this.digimonInfos[j].DigimonNo = j; int partyIndex = DataMng.Instance().GetPartyIndex(j); int monsterIndex = DataMng.Instance().GetMonsterIndex(j); MonsterData monsterData2 = MonsterDataMng.Instance().CreateMonsterDataByMID(respData_WorldMultiStartInfo.party[partyIndex].userMonsters[monsterIndex].monsterId); Transform iconLocator2 = this.digimonInfos[j].GetIconLocator(); GUIMonsterIcon guimonsterIcon2 = GUIMonsterIcon.MakePrefabByMonsterData(monsterData2, iconLocator2.localScale, iconLocator2.localPosition, iconLocator2.parent, true, false); guimonsterIcon2.name = "DigimonIcon" + j; guimonsterIcon2.activeCollider = false; int depth2 = guimonsterIcon2.GetComponent <UIWidget>().depth; this.digimonInfos[j].SetDepth(depth2); guimonsterIcon2.SetPlayerIcon(partyIndex + 1); if (aliveInfo2.Length > j && aliveInfo2[j] == 0) { guimonsterIcon2.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); } } } foreach (BattleResultDigimonInfo battleResultDigimonInfo in this.digimonInfos) { NGUITools.SetActiveSelf(battleResultDigimonInfo.gameObject, false); } }
private void SetDimmByMonsterDataList(List <MonsterData> mdlist, MonsterData selectMonster) { for (int i = 0; i < mdlist.Count; i++) { GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(mdlist[i]); if (null != icon && selectMonster.userMonster.userMonsterId == mdlist[i].userMonster.userMonsterId) { icon.DimmMess = StringMaster.GetString("CharaIcon-04"); icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); } } }
private void actRemoveChg(MonsterData md) { if (this.DataChg != null) { GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(this.DataChg); icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconShort)); } this.DataChg = null; if (null != this.goMN_ICON_CHG_2) { UnityEngine.Object.DestroyImmediate(this.goMN_ICON_CHG_2); } this.goMN_ICON_CHG.SetActive(true); this.ShowChgInfo(); this.SelectButtonActive(false); }
public void SetIconSortieLimitParts(List <GameWebAPI.RespDataMA_WorldDungeonSortieLimit.WorldDungeonSortieLimit> limitList) { if (limitList == null || limitList.Count == 0) { return; } for (int i = 0; i < this.partObjs.Count; i++) { GUIMonsterIcon guimonsterIcon = this.partObjs[i] as GUIMonsterIcon; if (null != guimonsterIcon) { MonsterData data = guimonsterIcon.Data; if (data != null && !ClassSingleton <QuestData> .Instance.CheckSortieLimit(limitList, data.monsterMG.tribe, data.monsterMG.growStep)) { guimonsterIcon.SetCenterText(StringMaster.GetString("PartySortieLimitNG"), GUIMonsterIcon.DimmMessColorType.SORTIE_LIMIT); guimonsterIcon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); guimonsterIcon.SetTouchAct_S(null); } } } }
public static void SetVersionUpCondition(List <HaveSoulData> almightyHsdL, GUIMonsterIcon monsterIcon, MonsterData monsterData, bool isOnlyDim = false) { if (VersionUpMaterialData.CanVersionUp(monsterData.monsterM, monsterData.userMonster, almightyHsdL)) { if (isOnlyDim) { return; } monsterIcon.SortMess = StringMaster.GetString("CharaIcon-05"); monsterIcon.SetSortMessageColor(ConstValue.DIGIMON_YELLOW); } else { monsterIcon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); if (isOnlyDim) { return; } monsterIcon.SortMess = StringMaster.GetString("CharaIcon-06"); monsterIcon.SetSortMessageColor(ConstValue.DIGIMON_BLUE); } }
private void ActMIconShort(MonsterData tappedMonsterData) { if (this.DataChg != null) { GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(this.DataChg); icon.DimmMess = string.Empty; icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.ACTIVE); icon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconShort)); } this.DataChg = tappedMonsterData; if (this.DataChg != null) { GUIMonsterIcon icon2 = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(this.DataChg); icon2.DimmMess = StringMaster.GetString("SystemSelect"); icon2.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon2.SetTouchAct_S(null); this.SetSelectedCharChg(); this.SelectButtonActive(true); } }
public void CheckEvolveable(GUIMonsterIcon monsterIcon, MonsterData monsterData, bool isOnlyDim = false) { bool flag = this.CanEvolve(monsterData); if (flag) { if (isOnlyDim) { return; } monsterIcon.SortMess = StringMaster.GetString("CharaIcon-01"); monsterIcon.SetSortMessageColor(ConstValue.DIGIMON_YELLOW); } else { monsterIcon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); if (isOnlyDim) { return; } monsterIcon.SortMess = StringMaster.GetString("CharaIcon-02"); monsterIcon.SetSortMessageColor(ConstValue.DIGIMON_BLUE); } }
public void SetPartyUsed(GUIMonsterIcon icon) { icon.DimmMess = StringMaster.GetString("CharaIcon-04"); icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); }
public void BlockLevelMax(GUIMonsterIcon icon) { icon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.DISABLE); icon.SetTouchAct_S(this.blockStateAction.onTouch); icon.SetTouchAct_L(this.blockStateAction.onPress); }