//=================================================================================== // // Method // //=================================================================================== public void Init(GuildRaidWindow owner) { _Owner = owner; _guildRaidEnterMax = Mathf.CeilToInt(CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.GuildRaid_DailyEnterMax).Value); _CloseButtonLabel.text = StringTableManager.GetData(6753); // 6753 길드 레이드 _EasyLabel.text = StringTableManager.GetData(81); // 81 쉬움 _NormalLabel.text = StringTableManager.GetData(82); // 82 보통 _HardLabel.text = StringTableManager.GetData(83); // 83 어려움 _BattleStartButtonLabel.text = StringTableManager.GetData(90); // 90 전투 시작 _MyRankTitleLabel.text = string.Format(StringTableManager.GetData(4917), 0); // 4917 내 순위 : {0}위 _uiGrid.sorting = UIGrid.Sorting.Custom; _uiGrid.onCustomSort = UtilFunc.SortByNumber; if (_TeamMenu == null) { _TeamMenu = UIResourceMgr.CreatePrefab <CreatureTeamMenuElement>(BUNDLELIST.PREFABS_UI_EDIT, transform, "CreatureTeamMenuElement"); Vector3 vParentPos = transform.localPosition; Vector3 vChildPos = _TeamMenu.transform.localPosition; _TeamMenu.transform.localPosition = new Vector3(vChildPos.x - vParentPos.x, vChildPos.y - vParentPos.y); _TeamMenu.SetUI(WindowType, false, false, OnGoToTeamEditEvent); } _TeamMenu.UpdateTeamInfo(WindowType); _TeamMenu.OpenUI(); }
public override void Init() { m_BottomLabel.text = StringTableManager.GetData(6596); // 6597 길드장 위임을 체크한 길드원이보입니다. _DelegationMemberEmptyLabel.text = StringTableManager.GetData(8634); // 8634 조건에 맞는 길드원이 없습니다. _DelegationMemberEmptyLabel.gameObject.SetActive(false); }
//=================================================================================== // // Method // //=================================================================================== public void SetDelegationMember(enGuildInfo_WindowType type, CGuildDetail kGuildDetailInfo) { Clear(); m_GuildDetailInfo = kGuildDetailInfo; _vGuildMembers vGuildMembers = m_GuildDetailInfo.vMembers; if (type == enGuildInfo_WindowType.GuildCaptain_Delegation) // 길드장 위임이면. { m_TitleLabel.text = StringTableManager.GetData(6294); for (int i = 0; i < vGuildMembers.Count; ++i) { CGuildMember member = vGuildMembers[i]; if (member == null) { continue; } if (member.kMemberState == _enGuildMemberState.eGuildMemberState_AbleSubCaptain || member.kMemberState == _enGuildMemberState.eGuildMemberState_AbleMember) { GuildInformationItem memberItem = UIResourceMgr.CreatePrefab <GuildInformationItem>(BUNDLELIST.PREFABS_UI_GUILD, m_GuildMemberGrid.transform, "GuildInformationItem"); memberItem.Init(type, m_GuildDetailInfo.kGuildKey, member); m_DelegationMemberList.Add(memberItem); } } } else if (type == enGuildInfo_WindowType.GuildSubCaptain_Appointment) // 부길드장 임명이면. { m_TitleLabel.text = StringTableManager.GetData(6298); for (int i = 0; i < vGuildMembers.Count; ++i) { CGuildMember member = vGuildMembers[i]; if (member == null) { continue; } if (member.kMemberState == _enGuildMemberState.eGuildMemberState_AbleMember) { GuildInformationItem memberItem = UIResourceMgr.CreatePrefab <GuildInformationItem>(BUNDLELIST.PREFABS_UI_GUILD, m_GuildMemberGrid.transform, "GuildInformationItem"); memberItem.Init(type, m_GuildDetailInfo.kGuildKey, member); m_DelegationMemberList.Add(memberItem); } } } if (m_DelegationMemberList.Count < 1) // 조건에 해당하는 길드원이 없으면. { _DelegationMemberEmptyLabel.gameObject.SetActive(true); } else { _DelegationMemberEmptyLabel.gameObject.SetActive(false); } m_GuildMemberGrid.Reposition(); m_GuildMemberScrollView.ResetPosition(); }
//=================================================================================== // // Default Method // //=================================================================================== private void Update() { if (_IsInit == false) { return; } DateTime ServerTime = TimeManager.Instance.GetServerTime(); DateTime GuildBuffEndTime = UserInfo.Instance.GuildBuffEndTime; if (GuildBuffEndTime.Ticks > ServerTime.Ticks) { gameObject.SetActive(true); TimeSpan ts = GuildBuffEndTime - ServerTime; if (ts.Hours > 0) { // 4915 {0}시간 {1}분 남음 _BuffDurationLabel.text = string.Format(StringTableManager.GetData(4915), ts.Hours, ts.Minutes); } else if (ts.Minutes > 0) { // 4916 {0}분 남음 _BuffDurationLabel.text = string.Format(StringTableManager.GetData(4916), ts.Minutes); } } else { gameObject.SetActive(false); } }
private void SetSlotType(enDispatchTeamSlotType type) { _EmptyLabel.gameObject.SetActive(false); _enDispatchTeamSlotType = type; if (type == enDispatchTeamSlotType.Creature) { m_CreatureTeamList.SetActive(true); m_FriendList.SetActive(false); if (_CreatureList.Count < 1) { // 7081 등급 및 레벨 조건을 만족하는 크리처가 없습니다. _EmptyLabel.text = StringTableManager.GetData(7081); _EmptyLabel.gameObject.SetActive(true); } } else { m_CreatureTeamList.SetActive(false); m_FriendList.SetActive(true); if (_FriendList.Count < 1) { // 8309 조건에 맞는 친구가 없습니다. _EmptyLabel.text = StringTableManager.GetData(8309); _EmptyLabel.gameObject.SetActive(true); } } }
[SerializeField] private UISprite _MeSprite; // 내 케릭터다. //=================================================================================== // // Variable // //=================================================================================== //=================================================================================== // // Default Method // //=================================================================================== //=================================================================================== // // Method // //=================================================================================== public void Init(CGuildRaidRankInfo rankInfo) { bool isMyGuild = string.Equals(UserInfo.Instance.GuildName, rankInfo.kGuildName); if (isMyGuild && rankInfo.kGuildRaidRank > 100) { _RankLabel.text = "-"; } else { _RankLabel.text = rankInfo.kGuildRaidRank.ToString(); } _GuildNameLabel.text = rankInfo.kGuildName; DATA_GUILD_MAIN guildMainTable = CDATA_GUILD_MAIN.Get(rankInfo.kGuildLevel); _GuildLevelLabel.text = string.Format("{0}{1}", StringTableManager.GetData(12), guildMainTable.iGuildLv); _guildRaidScore.text = string.Format(StringTableManager.GetData(3411), rankInfo.kGuildRaidScore); _MeSprite.gameObject.SetActive(isMyGuild); _EmblemSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_ICON_GUILDEMBLEM, string.Format("GuildEmblem{0}", rankInfo.kGuildMark.ToString("D2"))); }
[SerializeField] private UISprite _MeSprite; // 내 케릭터다. //=================================================================================== // // Variable // //=================================================================================== //=================================================================================== // // Default Method // //=================================================================================== //=================================================================================== // // Method // //=================================================================================== public void Init(CGuildRaidUserRankInfo info) { if (CDATA_CREATURE_NEWVER.GetCount() < 1) { CDATA_CREATURE_NEWVER.Load(); } if (CDATA_VIP.GetCount() < 1) { CDATA_VIP.Load(); } _RankLabel.text = string.Format(StringTableManager.GetData(3412), info.kUserRank); DATA_CREATURE_NEWVER CreatureTable = CDATA_CREATURE_NEWVER.Get(info.kCreatureID); _LeaderCreatureSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_ICON_CREATUREHEAD, CreatureTable.m_szIcon); _VipRankSprite.spriteName = CDATA_VIP.Get(info.kCharVIPLevel).szGradeImg; _VipRankLabel.text = string.Format(StringTableManager.GetData(4984), (int)info.kCharVIPLevel); _LevelLabel.text = string.Format("{0}{1}", StringTableManager.GetData(12), (int)info.kCharLevel); _NameLabel.text = info.kCharName; _EnterCountLabel.text = info.kGuildRaidPlayCount.ToString(); _guildRaidScore.text = info.kGuildRaidScore.ToString(); _MeSprite.gameObject.SetActive(string.Equals(info.kCharName, UserInfo.Instance.NickName)); }
/// <summary> /// 진행중, 성공, 대성공 카드 생성할때. /// </summary> public void SetCard(int iPanelDepth) { m_enDispatchCardType = enDispatchCardType.Dispatching; m_iPanelDepth = iPanelDepth; if (m_SlotDispatch != null) { m_SlotDispatch.SetActive(true); } if (m_SlotEmpty != null) { m_SlotEmpty.SetActive(false); } if (m_SuccessObj != null) { m_SuccessObj.SetActive(false); } if (_BigSuccessObj != null) { _BigSuccessObj.SetActive(false); } m_ImmediatelyCompleteLabel.text = StringTableManager.GetData(6725); // 6725 즉시 완료 SetDispatchInfo(); }
////////////////////////////////////////// /// Init() ////////////////////////////////////////// public void Init(bool i_bVictory) { string strTitleKey = i_bVictory ? "GameOver_Victory" : "GameOver_Defeat"; string strTitle = StringTableManager.Get(strTitleKey); Title.text = strTitle; }
public override void Pickup(PlayerController player) { ETGModConsole.Log("" + StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_ENMITY"].Count()); ETGModConsole.Log("" + StringTableManager.GetSynergyString("#DESTINY_TWO"), false); ETGModConsole.Log("" + StringTableManager.GetSynergyString("#DESTINY_ONE"), false); //Dictionary<string, StringTableManager.StringCollection> leadMaidan = new Dictionary<string, StringTableManager.StringCollection>(); StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_ENMITY"].AddString("Lead maidens are singlehandedly ruining this game. There's no reason an extremely common random enemy should be tons harder than everything else so far including the floor 2 boss even though Lead Maidens started showing up before that fight. It makes every moment not spent fighting a Lead Maiden pointless because whether or not I win depends 99% on whether or not that bullshit miniboss appears. I've never seen one nonboss singlehandedly ruin a game before but this one is doing it extremely efficiently.Beating one Lead Maiden is harder than beating Rabi - Ribi's True Boss Rush. It's f*****g unforgivable to have the game change so radically every time that enemy shows up.It kills me in like one f*****g hit & it has far more health than everything else I've fought before despite also being bigger & faster than everything else too. Whomever came up with that enemy needs to go jack off to medieval torture p**n & get it out of their system.Jesus Christ! I really wish the creators of this game would've just decided whether to make an amazing game or the worst game ever & stuck with it.", 100000000); StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_BEGRUDGING"].AddString("Lead maidens are singlehandedly ruining this game. There's no reason an extremely common random enemy should be tons harder than everything else so far including the floor 2 boss even though Lead Maidens started showing up before that fight. It makes every moment not spent fighting a Lead Maiden pointless because whether or not I win depends 99% on whether or not that bullshit miniboss appears. I've never seen one nonboss singlehandedly ruin a game before but this one is doing it extremely efficiently.Beating one Lead Maiden is harder than beating Rabi - Ribi's True Boss Rush. It's f*****g unforgivable to have the game change so radically every time that enemy shows up.It kills me in like one f*****g hit & it has far more health than everything else I've fought before despite also being bigger & faster than everything else too. Whomever came up with that enemy needs to go jack off to medieval torture p**n & get it out of their system.Jesus Christ! I really wish the creators of this game would've just decided whether to make an amazing game or the worst game ever & stuck with it.", 100000000); StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_FRIENDS"].AddString("Lead maidens are singlehandedly ruining this game. There's no reason an extremely common random enemy should be tons harder than everything else so far including the floor 2 boss even though Lead Maidens started showing up before that fight. It makes every moment not spent fighting a Lead Maiden pointless because whether or not I win depends 99% on whether or not that bullshit miniboss appears. I've never seen one nonboss singlehandedly ruin a game before but this one is doing it extremely efficiently.Beating one Lead Maiden is harder than beating Rabi - Ribi's True Boss Rush. It's f*****g unforgivable to have the game change so radically every time that enemy shows up.It kills me in like one f*****g hit & it has far more health than everything else I've fought before despite also being bigger & faster than everything else too. Whomever came up with that enemy needs to go jack off to medieval torture p**n & get it out of their system.Jesus Christ! I really wish the creators of this game would've just decided whether to make an amazing game or the worst game ever & stuck with it.", 100000000); //StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_BEGRUDGING"].AddString("Wow you have less brain cells than a titan main!", 100000); //StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_ENMITY"].AddString("Wow you have less brain cells than a titan main!", 100000); StringTableManager.CoreTable["#INSULT_NAME"].AddString("titan main", 100000); StringTableManager.CoreTable["#INSULT_NAME"].AddString("gunslinger main", 100000); // = leadMaidan; ETGModConsole.Log("" + StringTableManager.CoreTable["#MASKGUN_ROOMCLEAR_ENMITY"].Count()); //ETGModConsole.Log(StringTableManager.EvaluateReplacementToken("%INSULT")); //ungeon dungeon = GameManager.Instance.Dungeon; //RationItem ration = PickupObjectDatabase.GetById(104).GetComponent<RationItem>(); //this.healVFX = ration.healVFX; //healingAmount = 1; //BulletArmorItem bulletArmor = PickupObjectDatabase.GetById(160).GetComponent<BulletArmorItem>(); //transformSprites = player.AlternateCostumeLibrary; base.Pickup(player); //player.CurrentGun.OnPostFired += this.OnFired; //player.CurrentGun.OnReloadPressed += this.OnReload; }
/// <summary> /// 빈 카드 생성할때. /// </summary> /// <param name="del"></param> public void SetCard(OnClickCard evt) { m_enDispatchCardType = enDispatchCardType.Empty; DestroyCreatureIcon(); if (m_SlotEmpty != null) { m_SlotEmpty.SetActive(true); m_SlotEmptyLabel.text = StringTableManager.GetData(6724); // 터치하여\n임무 시작. if (OnClickCardEvent != null) { OnClickCardEvent = null; } OnClickCardEvent = evt; UIEventListener.Get(m_SlotEmpty).onClick = OnClickEmptyCard; } if (m_SlotDispatch != null) { m_SlotDispatch.SetActive(false); } if (m_SuccessObj != null) { m_SuccessObj.SetActive(false); } if (_BigSuccessObj != null) { _BigSuccessObj.SetActive(false); } }
private void OnRefresh(GameObject go) { if (m_bCheckRefresh == false) { string str = string.Empty; if (m_fElapsedTime >= 1.0f) { // 6582 {0}초 후 사용 가능합니다. str = string.Format(StringTableManager.GetData(6582), (int)m_fElapsedTime); } else if (m_fElapsedTime < 1.0f) { // 6582 {0}초 후 사용 가능합니다. str = string.Format(StringTableManager.GetData(6582), m_fElapsedTime.ToString("F1")); } SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(4300), str); return; } if (go != null) { SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM); } _stGuildRecommendListReq req = new _stGuildRecommendListReq(); CNetManager.Instance.SendPacket(CNetManager.Instance.GuildProxy.GuildRecommendList, req, typeof(_stGuildRecommendListAck)); m_bCheckRefresh = false; }
/// <summary> /// 길드가입 신청 패킷 받음. /// </summary> public void GuildJoinRequest(_stGuildJoinRequestAck stAck) { // 추천길드 목록에서 가입신청 한 길드를 지움. int iCount = m_RecommendGuildList.Count; for (int i = 0; i < iCount; ++i) { GuildListitem item = m_RecommendGuildList[i]; if (item == null) { continue; } if (item.kGuildKey == stAck.kGuildKey) { DestroyImmediate(item.gameObject); m_RecommendGuildList.Remove(item); break; } } GuildListitem JoinRequestItem = UIResourceMgr.CreatePrefab <GuildListitem>(BUNDLELIST.PREFABS_UI_GUILD, m_JoinRequestGrid.transform, "GuildListitem"); JoinRequestItem.Init(this); JoinRequestItem.SetGuildInfo(m_SelectGuildInfo, GuildListitem.enGuildListItem_Type.JoinRequest); m_JoinRequestGuildList.Add(JoinRequestItem); m_JoinRequestGuildCountLabel.text = string.Format("{0} {1} / {2}", StringTableManager.GetData(6244), m_JoinRequestGuildList.Count, m_iGuildWaitingCount); ResetPosition(); }
public void SetRecvData(DATA_GUILDRAID.Enum guildRaidType, _stGuildRaidGetMemberRankListAck guildRaidMemberRankList, DateTime raidEndTime) { CreateMemberRankList(guildRaidMemberRankList); _guildRaidType = guildRaidType; _guildRaidTable = CDATA_GUILDRAID.Get(_guildRaidType); _BossSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_GUILDRAID, _guildRaidTable.RaidBannerImage); _BossNameLabel.text = StringTableManager.GetData(_guildRaidTable.RaidBossName); TimeSpan ts = raidEndTime - TimeManager.Instance.GetServerTime(); _RemainTimeLabel.text = string.Format(StringTableManager.GetData(4915), ts.Hours, ts.Minutes); // 4915 {0}시간 {1}분 _EnterCountLabel.text = string.Format(StringTableManager.GetData(4924), UserInfo.Instance.GuildRaidTicket, _guildRaidEnterMax); // 4924 입장 가능 횟수 : {0} / {1} _EasyIcon.gameObject.SetActive(false); _NormalIcon.gameObject.SetActive(false); _HardIcon.gameObject.SetActive(false); if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Easy) { _EasyIcon.gameObject.SetActive(true); } else if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Normal) { _NormalIcon.gameObject.SetActive(true); } else if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Hard) { _HardIcon.gameObject.SetActive(true); } }
//=================================================================================== // // Default Method // //=================================================================================== public override void Init() { if (_TitleLabel != null) { _TitleLabel.text = StringTableManager.GetData(3494); } _GuildSearchButton.SetLabel(StringTableManager.GetData(6750)); // 6750 길드 검색 if (_MyGuild == null) { _MyGuild = UIResourceMgr.CreatePrefab <MyGuild>(BUNDLELIST.PREFABS_UI_GUILD, transform, "MyGuild"); _MyGuild.Init(this); } if (_GuildList == null) { _GuildList = UIResourceMgr.CreatePrefab <GuildList>(BUNDLELIST.PREFABS_UI_GUILD, transform, "GuildList"); _GuildList.Init(); } if (m_GuildDelegationPopupWindow == null) { m_GuildDelegationPopupWindow = UIResourceMgr.CreatePrefab <GuildDelegation>(BUNDLELIST.PREFABS_UI_GUILD, transform, "GuildDelegation"); m_GuildDelegationPopupWindow.Init(); m_GuildDelegationPopupWindow.CloseUI(); } m_iGuildDelegateCountGold = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_Delegate_Count_Gold).Value; SetMenu(enMyGuildMain_ButtonType.MyGuild); }
private void SetMyGuildInfo(CGuildDetail guildDetail) { m_GuildDeleteButton.SetActive(false); m_GuildOrderCaptainButton.SetActive(false); // 길드장 위임버튼. m_GuildOrderSubCaptainButton.SetActive(false); // 부길드장 임명버튼. m_GuildEmblemSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_ICON_GUILDEMBLEM, string.Format("GuildEmblem{0}", guildDetail.kGuildMark.ToString("D2"))); m_GuildNameLabel.text = guildDetail.kGuildName; DATA_GUILD_MAIN GuildMainData = CDATA_GUILD_MAIN.Get(guildDetail.kGuildLevel); if (GuildMainData != null) { // string num : 12 -> LV m_GuildLevelLabel.text = string.Format("{0} {1}", StringTableManager.GetData(12), GuildMainData.iGuildLv); } CGuildMember captainInfo = null; int iCount = guildDetail.vMembers.Count; for (int i = 0; i < iCount; ++i) { CGuildMember memberInfo = guildDetail.vMembers[i]; if (memberInfo == null) { continue; } if (memberInfo.kMemberState == _enGuildMemberState.eGuildMemberState_Captain) { captainInfo = memberInfo; } if (memberInfo.kCharNo == UserInfo.Instance.CharNo) { m_MyMemberInfo = memberInfo; UserInfo.Instance.GuildKey = guildDetail.kGuildKey; UserInfo.Instance.GuildName = guildDetail.kGuildName; UserInfo.Instance.CharGuildState = m_MyMemberInfo.kMemberState; } } if (captainInfo != null) { m_GuildCaptainLabel.text = captainInfo.kCharName; } SetJoinMethodButton(guildDetail.kJoinMethod); SetNoticeOrDescButton(enNoticeAndDesc.Notice); // 공지사항이 디폴트. if (m_MyMemberInfo != null) { if (m_MyMemberInfo.kMemberState == _enGuildMemberState.eGuildMemberState_Captain) { m_GuildDeleteButton.SetActive(true); m_GuildOrderCaptainButton.SetActive(true); m_GuildOrderSubCaptainButton.SetActive(true); } } }
public static string GetEnemiesString(string key, int index = -1) { if (m_enemiesTable == null) { m_enemiesTable = LoadEnemiesTable(m_currentSubDirectory); } if (m_backupEnemiesTable == null) { m_backupEnemiesTable = LoadEnemiesTable("english_items"); } if (m_enemiesTable.ContainsKey(key)) { if (index == -1) { string weightedString = m_enemiesTable[key].GetWeightedString(); return(StringTableManager.PostprocessString(weightedString)); } return(StringTableManager.PostprocessString(m_enemiesTable[key].GetExactString(index))); } else { // Return key directly instead of "ENEMY_STRING_NOT_FOUND" text. Used to display custom names for glitch enemies without the hassle of messing with the string table. if (!m_backupEnemiesTable.ContainsKey(key)) { return(key); } if (index == -1) { string weightedString2 = m_backupEnemiesTable[key].GetWeightedString(); return(StringTableManager.PostprocessString(weightedString2)); } return(StringTableManager.PostprocessString(m_backupEnemiesTable[key].GetExactString(index))); } }
private IEnumerator IeGuildDeletePopup() { yield return(new WaitForSeconds(0.1f)); //6307 길드원이 남아 있어 길드를 해체할 수 없습니다. SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(4300), StringTableManager.GetData(6307)); }
private void HandleTriggerCollision(SpeculativeRigidbody specRigidbody, SpeculativeRigidbody sourceSpecRigidbody, CollisionData collisionData) { PlayerController player = specRigidbody.GetComponent <PlayerController>(); AIActor aiActor = specRigidbody.GetComponent <AIActor>(); if (player) { if (!player.IsOnFire && player.IsGrounded && !player.IsSlidingOverSurface && player.healthHaver && player.healthHaver.IsVulnerable) { player.IsOnFire = true; player.CurrentFireMeterValue += BraveTime.DeltaTime * 0.5f; player.ApplyEffect(m_GoopDefinition.fireEffect); } } else if (aiActor && aiActor.GetResistanceForEffectType(EffectResistanceType.Fire) < 1f) { float num = 0f; if (aiActor.GetResistanceForEffectType(EffectResistanceType.Fire) < 1f) { num += 1f * BraveTime.DeltaTime; } aiActor.ApplyEffect(m_GoopDefinition.fireEffect); if (num > 0f) { aiActor.healthHaver.ApplyDamage(num, Vector2.zero, StringTableManager.GetEnemiesString("#GOOP", -1), CoreDamageTypes.Fire, DamageCategory.Environment, false, null, false); } } }
protected override void DoShrineEffect(PlayerController player) { base.DoShrineEffect(player); IntVector2?randomAvailableCell = base.transform.position.GetAbsoluteRoom().GetRandomAvailableCell(new IntVector2?(IntVector2.One * 4), new CellTypes?(CellTypes.FLOOR), false, null); IntVector2?intVector = (randomAvailableCell == null) ? null : new IntVector2?(randomAvailableCell.GetValueOrDefault() + IntVector2.One); if (intVector != null) { Chest chest = Chest.Spawn(GameManager.Instance.RewardManager.S_Chest, intVector.Value); chest.lootTable.lootTable = (UnityEngine.Random.value <= 0.5f ? GameManager.Instance.RewardManager.GunsLootTable : GameManager.Instance.RewardManager.ItemsLootTable); chest.ForceUnlock(); } else { Chest chest = Chest.Spawn(GameManager.Instance.RewardManager.S_Chest, base.transform.position.GetAbsoluteRoom().GetBestRewardLocation(new IntVector2(3, 3), RoomHandler.RewardLocationStyle.Original, true) + IntVector2.Up); chest.lootTable.lootTable = (UnityEngine.Random.value <= 0.5f ? GameManager.Instance.RewardManager.GunsLootTable : GameManager.Instance.RewardManager.ItemsLootTable); chest.ForceUnlock(); } SpawnManager.SpawnVFX(GameManager.Instance.Dungeon.sharedSettingsPrefab.DefaultExplosionData.effect, base.sprite.WorldTopCenter + new Vector2(0f, -8f / 16), Quaternion.identity); AkSoundEngine.PostEvent("Play_WPN_grenade_blast_01", base.gameObject); if (this.stoneSreaper != null) { this.stoneSreaper.GetComponent <tk2dBaseSprite>().renderer.enabled = false; } GameUIRoot.Instance.notificationController.DoCustomNotification(StringTableManager.GetString("#SHRINE_SREAPER_HEADER"), StringTableManager.GetString("#SHRINE_SREAPER_TEXT"), SpriteBuilder.itemCollection, spriteId, UINotificationController.NotificationColor.SILVER, false, false); player.gameObject.AddComponent <CursedPlayerBehaviour>(); if (GameManager.HasInstance && GameManager.Instance.Dungeon != null && !GameManager.Instance.Dungeon.CurseReaperActive) { GameManager.Instance.Dungeon.CurseReaperActive = true; GameObject superReaper = PrefabDatabase.Instance.SuperReaper; Vector2 vector = base.sprite.WorldTopCenter - new Vector2(5, 3); Instantiate(superReaper, vector.ToVector3ZUp(0f), Quaternion.identity); } }
/////////////////////////////////////////// /// Awake() /////////////////////////////////////////// void Awake() { string strText = StringTableManager.Get(Key); Text text = GetComponent <Text>(); text.text = strText; }
public void SetGuildInfo(CGuild guild, enGuildListItem_Type type) { m_GuildInfo = guild; m_kGuildKey = m_GuildInfo.kGuildKey; m_GuildMarkSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_ICON_GUILDEMBLEM, string.Format("GuildEmblem{0}", m_GuildInfo.kGuildMark.ToString("D2"))); m_GuildNameLabel.text = m_GuildInfo.kGuildName; m_CaptainNameLabel.text = guild.kGuildCaptainName; DATA_GUILD_MAIN GuildMainData = CDATA_GUILD_MAIN.Get(m_GuildInfo.kGuildLevel); if (GuildMainData != null) { // string num : 12 -> LV m_GuildLevelLabel.text = string.Format("{0} {1}", StringTableManager.GetData(12), GuildMainData.iGuildLv); } if (guild.kJoinMethod == _enGuildJoinMethod.eGuildJoinMethod_Free) { m_JoinMethodLabel.text = StringTableManager.GetData(6233); } else if (guild.kJoinMethod == _enGuildJoinMethod.eGuildJoinMethod_Approval) { m_JoinMethodLabel.text = StringTableManager.GetData(6239); } SetMiddleObj_And_Button(type); }
//=================================================================================== // // Default Method // //=================================================================================== protected override void Awake() { if (m_CloseButton != null) { UIEventListener.Get(m_CloseButton).onClick = OnClickBack; } if (m_DispatchMissionButton != null) { UIEventListener.Get(m_DispatchMissionButton.gameObject).onClick = OnDispatchMissionStart; } if (m_FriendListCloseButton != null) { UIEventListener.Get(m_FriendListCloseButton).onClick = OnDispatchFriendListClose; } m_TitleLabel.text = StringTableManager.GetData(6722); // 6722 파견 m_TitleContentLabel.text = StringTableManager.GetData(6743); // 6743 파견 팀 편성 m_DispatchTeamNoticeLabel.text = StringTableManager.GetData(6744); // 6744 네번째 슬롯을 터치하여 친구의 크리처를 참여시킬 수 있습니다. m_CreatureListTitleLabel.text = StringTableManager.GetData(6745); // 6745 내 크리처 m_FriendListTitleLabel.text = StringTableManager.GetData(6747); // 6747 친구 지원 m_DispatchMissionRewardTitleLabel.text = StringTableManager.GetData(86); // 86 보상 m_DispatchMissionSuccessTitleLabel.text = StringTableManager.GetData(6746); // 6746 임무 대성공 확률 m_DispatchMissionButton.SetLabel(StringTableManager.GetData(6722)); // 6722 파견 }
/// <summary> /// 길드 추방 패킷 받음(길드장 전용). /// </summary> public void GuildOrderLeave(_stGuildOrderLeaveAck stAck) { int iCount = m_GuildDetailInfo.vMembers.Count; for (int i = 0; i < iCount; ++i) { CGuildMember member = m_GuildDetailInfo.vMembers[i]; if (member == null) { continue; } if (member.kCharNo == stAck.kDestCharNo) { // {플레이어 이름}\n님을 길드에서 추방하였습니다.(스트링 ID : 6287) string str = string.Format(StringTableManager.GetData(6287), member.kCharName); SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(4300), str); m_GuildDetailInfo.vMembers.Remove(member); break; } } string szLabeltext = string.Format(StringTableManager.GetData(6254), m_GuildDetailInfo.vMembers.Count, m_GuildDetailInfo.kMaxMemberCount); m_GuildMemberButton.SetLabel(szLabeltext); _MyGuild.GuildOrderLeave(stAck); _guildModifyWindow.GuildOrderLeave(stAck); }
public void Awake() { System.Console.WriteLine("ENEMY OBJECTS"); for (int i = 0; i < EnemyDatabase.Instance.Entries.Count; i++) { var e = EnemyDatabase.Instance.Entries[i]; var name = "[ERROR]"; if (e == null) { name = "[NULL OBJECT]"; } else { try { var o = EnemyDatabase.GetOrLoadByGuid(e.myGuid); var pdn = o.encounterTrackable?.journalData?.PrimaryDisplayName; name = pdn != null?StringTableManager.GetEnemiesString(pdn) : o.ActorName ?? "[NULL NAME]"; } catch { } } Console.WriteLine($"{e.myGuid} {name}"); } }
public override void Init() { _CloseButtonLabel.text = StringTableManager.GetData(6753); // 6753 길드 레이드 _PointTitleLabel.text = StringTableManager.GetData(8666); // 8666 현재 점수 _RaidEasyButtonLabel.text = StringTableManager.GetData(81); // 81 쉬움 _RaidNormalButtonLabel.text = StringTableManager.GetData(82); // 82 보통 _RaidHardButtonLabel.text = StringTableManager.GetData(83); // 83 어려움 _RaidRewardLabel.text = StringTableManager.GetData(8669); // 8669 현재 진행중인 레이드가 아닌 이전 레이드 결과의 보상입니다. _RaidRewardButtonLabel.text = StringTableManager.GetData(8670); // 8670 보상 받기 _BottomNoticeLabel.text = StringTableManager.GetData(8668); // 8668 진척도 보상은 모든 길드원이 공유하며 매일 0시에 초기화 됩니다. _RaidNormalText1.text = StringTableManager.GetData(8766); // 8766 몬스터의 피해량이 증가합니다. _RaidNormalText2.text = StringTableManager.GetData(8767); // 8767 증원되는 몬스터의 수가 증가합니다. _RaidHardText1.text = StringTableManager.GetData(8768); // 8768 몬스터의 피해량이 크게 증가합니다. _RaidHardText2.text = StringTableManager.GetData(8769); // 8769 보스 몬스터의 상태이상 확률이 크게 증가합니다. _RaidHardText3.text = StringTableManager.GetData(8770); // 8770 아군을 방해하는 강력한 몬스터가 추가로 등장합니다. _RaidEasyButtonNew.SetActive(false); _RaidNormalButtonNew.SetActive(false); _RaidHardButtonNew.SetActive(false); }
/// <summary> /// 팀편성창에서 쓰임. /// </summary> /// <param name="ItemInfo"></param> /// <param name="type"></param> public void SetIcon(CreatureItemInfo ItemInfo, enCreatureIcon_Type type) { if (m_ReinforceLevelLabel != null) { m_ReinforceLevelLabel.text = string.Format("{0}{1}", "+", ItemInfo.ForceCount); } if (m_LevelLabel != null) { m_LevelLabel.text = string.Format("{0}{1}", StringTableManager.GetData(12), ItemInfo.Level); } _CreatureTableData = UtilFunc.GetCreatureDataByTID(ItemInfo.Tid); //SetDefaultIcon(ItemInfo.m_Name, ItemInfo.m_icon, UtilFunc.IconSpriteName(ItemInfo.m_enCreatureArmy), ItemInfo.m_Grade); SetDefaultIcon(_CreatureTableData.iCreatureName, ItemInfo.IconName, ItemInfo.CreatureArmyType.ToString(), ItemInfo.Grade, ItemInfo.awake, ItemInfo.Quality); _CreatureKey = ItemInfo.CreatureKey; m_iCreatureTID = ItemInfo.Tid; m_iGrade = ItemInfo.Grade; m_SellCheck = ItemInfo.IsSell; m_Reinforce = ItemInfo.ForceCount; m_szName = ItemInfo.Name; m_szIcon = ItemInfo.IconName; m_iLevel = ItemInfo.Level; m_enCreatureArmy = ItemInfo.CreatureArmyType; m_iSellCost = ItemInfo.SellCost; m_IsNew = ItemInfo.IsNew; m_kLock = ItemInfo.Lock; }
private IEnumerator DispatchMissionStartFail() { yield return(new WaitForSeconds(0.1f)); // 6846 팀에 반드시 자신의 크리처가 포함되어야 합니다. SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(4300), StringTableManager.GetData(6846)); }
//=================================================================================== // // Method // //=================================================================================== public override void Init() { _PreBGM = SoundManager.Instance.currentBGMPlay; SoundManager.Instance.StopBGM(); _TitleLabel.text = StringTableManager.GetData(3486); _AllButtonLabel.text = StringTableManager.GetData(3485); _ExitLabel.text = StringTableManager.GetData(6311); _SkipButtonLabel.text = StringTableManager.GetData(4480); _exitButtonLabel.text = StringTableManager.GetData(2); _reGachaButtonLabel.text = StringTableManager.GetData(8775); // 8775 다시 소환 _ExitLabel.gameObject.SetActive(false); _ExitPanelGameObject.SetActive(false); _SkipButton.SetActive(false); _3DCamera = UIControlManager.instance.Camera3D; _3DCameraOriginPos = _3DCamera.transform.localPosition; _3DCameraOriginRotion = _3DCamera.transform.localRotation; _3DGUITransform = UIControlManager.instance.GUI3DObj.transform; UIControlManager.instance.InActiveWindow(new enUIType[] { WindowType }); UIControlManager.instance.Set3DProduction(false); UIControlManager.instance.ShowLoading(false); }
private void OnClickFriendItem(GameObject go) { if (go != null) { SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM); } for (int i = 0; i < _FriendList.Count; ++i) { DispatchTeamItemFriend friendItem = _FriendList[i]; if (friendItem == null) { continue; } friendItem.SetActiveSelect(false); if (friendItem.gameObject == go) { if (friendItem.bDispatching == true) { // 6747 친구 지원 // 6748 친구의 크리처는 1일 1회만 사용할 수 있습니다. SystemPopupWindow.Instance.SetSystemPopup(enSystemPopupType.Ok, StringTableManager.GetData(6747), StringTableManager.GetData(6748)); if (m_SelectFriend != null) { m_SelectFriend.SetActiveSelect(true); } break; } else { friendItem.SetActiveSelect(true); m_SelectFriend = friendItem; DispatchTeamSlot slot = m_DispatchTeamSlotList[m_DispatchTeamSlotList.Count - 1]; // 친구슬롯. if (slot != null) { if (slot.CreatureIcon != null) { DestroyDispatchTeamCreature(slot); } SetTeamCount(1); CreatureIcon creatureIcon = UIResourceMgr.CreatePrefab <CreatureIcon>(BUNDLELIST.PREFABS_UI_COMMON, slot.SlotObj.transform, "CreatureIcon"); creatureIcon.SetIcon(friendItem.FriendInfo.kCreatureID, enCreatureIcon_Type.DispatchDisplayFriend); creatureIcon.CreatureKey = friendItem.FriendInfo.kFriendCharNo; creatureIcon.AddPanel(m_iPanelDepth); creatureIcon.RemoveBoxCollider(); slot.CreatureIcon = creatureIcon; slot.SetActiveSelect(false); } } } } }