public void SetNoticeMessage(LimitOverNoticeType type) { int num = 7; FacilityM facilityMaster = FarmDataManager.GetFacilityMaster(num); bool flag = false; for (int i = 0; i < Singleton <UserDataMng> .Instance.userFacilityList.Count; i++) { UserFacility userFacility = Singleton <UserDataMng> .Instance.userFacilityList[i]; if (userFacility.facilityId == num) { int num2 = 0; if (int.TryParse(facilityMaster.maxLevel, out num2)) { flag = (num2 <= userFacility.level); } break; } } if (flag) { if (type != LimitOverNoticeType.GASHA) { if (type != LimitOverNoticeType.PRESENTS) { if (type == LimitOverNoticeType.QUEST) { this.message.text = StringMaster.GetString("PossessionOverQuest"); } } else { this.message.text = StringMaster.GetString("PossessionOverPresent"); } } else { this.message.text = StringMaster.GetString("PossessionOverGasha"); } } else if (type != LimitOverNoticeType.GASHA) { if (type != LimitOverNoticeType.PRESENTS) { if (type == LimitOverNoticeType.QUEST) { this.message.text = StringMaster.GetString("PossessionOverQuestUpgrade"); } } else { this.message.text = StringMaster.GetString("PossessionOverPresentUpgrade"); } } else { this.message.text = StringMaster.GetString("PossessionOverGashaUpgrade"); } }
public static void CreateDialog(MasterDataMng.AssetCategory category, LimitOverNoticeType type) { if (category != MasterDataMng.AssetCategory.MONSTER) { if (category == MasterDataMng.AssetCategory.CHIP) { CMD_UpperlimitChip cmd_UpperlimitChip = GUIMain.ShowCommonDialog(null, "CMD_UpperlimitChip", null) as CMD_UpperlimitChip; cmd_UpperlimitChip.SetNoticeMessage(type); } } else { CMD_UpperLimit cmd_UpperLimit = GUIMain.ShowCommonDialog(null, "CMD_Upperlimit", null) as CMD_UpperLimit; cmd_UpperLimit.SetNoticeMessage(type); } }
public void SetNoticeMessage(LimitOverNoticeType type) { if (type != LimitOverNoticeType.GASHA) { if (type != LimitOverNoticeType.PRESENTS) { if (type == LimitOverNoticeType.QUEST) { this.message.text = StringMaster.GetString("ChipOverQuest"); } } else { this.message.text = StringMaster.GetString("ChipOverPresent"); } } else { this.message.text = StringMaster.GetString("ChipOverGasha"); } }