private void OnMouseUpAsButton() { if (NkInputManager.GetMouseButtonUp(0) && !this.m_bSelectCard) { if (SendPacket.GetInstance().IsBlockSendPacket()) { return; } NrSound.ImmedatePlay("UI_SFX", "BATTLE", "WIN-CARD-SUCCESS", true); this.m_bSelectCard = true; int iSelectIndex = 0; if ("card1" == base.gameObject.name) { iSelectIndex = 0; } if ("card2" == base.gameObject.name) { iSelectIndex = 1; } if ("card3" == base.gameObject.name) { iSelectIndex = 2; } if ("card4" == base.gameObject.name) { iSelectIndex = 3; } if (this.m_pkDlg != null) { this.m_pkDlg.ClickRewardCardButton(iSelectIndex); } } }
public override void Update() { if (this.fTime > Time.realtimeSinceStartup) { return; } if (TsPlatform.IsEditor) { if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(1)) { G_ID g_ID = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID(); if (!NrTSingleton <FormsManager> .Instance.IsMouseOverForm() || g_ID != G_ID.EMOTICON_DLG) { this.Close(); } } } else if (TsPlatform.IsMobile && Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Ended) { G_ID g_ID2 = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID(); if (!NrTSingleton <FormsManager> .Instance.IsMouseOverForm() || g_ID2 != G_ID.EMOTICON_DLG) { this.Close(); } } }
public void InputMouseEvent() { bool flag = false; if (TsPlatform.IsEditor) { if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(1)) { flag = true; G_ID g_ID = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID(); if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm() && g_ID == G_ID.GOOGLEPLAY_DLG) { flag = false; } } } else if (TsPlatform.IsMobile && Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Ended) { flag = true; G_ID g_ID2 = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID(); if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm() && g_ID2 == G_ID.GOOGLEPLAY_DLG) { flag = false; } } if (flag) { this.HideMenu(flag); } }
public override void Update() { if (NrTSingleton <NkCharManager> .Instance.CharacterListSetComplete) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(NrTSingleton <NkCharManager> .Instance.SelectedCharID); if (@char != null) { NrCharUser nrCharUser = @char as NrCharUser; if (nrCharUser != null && nrCharUser.IsShaderRecovery() && NrTSingleton <NkCharManager> .Instance.SelectedCharID != 0) { this.CharacterSelect(nrCharUser, false); } } } if (this.m_CameraAniPlay == null) { return; } E_CHAR_SELECT_STEP e_CHAR_SELECT_STEP = this.m_CameraAniPlay.Update(); if (e_CHAR_SELECT_STEP != E_CHAR_SELECT_STEP.NONE) { this.m_SelectStep = e_CHAR_SELECT_STEP; } E_CHAR_SELECT_STEP selectStep = this.m_SelectStep; if (selectStep != E_CHAR_SELECT_STEP.INTRO) { if (selectStep != E_CHAR_SELECT_STEP.CREATE_SELECT) { if (this.m_CharselInput != null) { NrTSingleton <NrMainSystem> .Instance.m_kInputManager.RemoveInputCommandLayer(this.m_CharselInput); this.m_CharselInput = null; } } else if (this.m_CharselInput == null) { this.m_CharselInput = new CharSelectCommandLayer(); NrTSingleton <NrMainSystem> .Instance.m_kInputManager.AddInputCommandLayer(this.m_CharselInput); } } else if (NkInputManager.GetMouseButtonUp(0)) { if (NrTSingleton <FormsManager> .Instance.IsForm(G_ID.TOASTMSG_DLG)) { NrTSingleton <CCameraAniPlay> .Instance.SkipEvent(); } else { ToastMsgDlg toastMsgDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TOASTMSG_DLG) as ToastMsgDlg; toastMsgDlg.SetMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("24")); } } }
private void OnMouseUpAsButton() { if (NkInputManager.GetMouseButtonUp(0)) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { @char.m_kCharMove.HideMoveMark = true; @char.PickMoveStart(base.gameObject.transform.position.x, base.gameObject.transform.position.y, base.gameObject.transform.position.z); NrTSingleton <NkClientLogic> .Instance.SetPickingEnable(false); } } }
public override void Update() { if (TsPlatform.IsMobile) { if (this.m_FilePercent != null && this.m_Percent != null) { string text = string.Empty; if (this.m_FilePercent.Visible) { text = this.m_FilePercent.Text; } if (this.m_Percent.Visible) { text = text + "\nTotal : " + this.m_Percent.Text; } NrTSingleton <NrUserDeviceInfo> .Instance.SetMovieText(text); } Vector3 mousePosition = Input.mousePosition; if (NkInputManager.GetMouseButton(0) && this.m_v3TouchStart != Vector3.zero && this.m_v3TouchStart != mousePosition) { if (mousePosition != Vector3.zero && this.pRealChar != null && Mathf.Abs(this.m_v2TouchStart.x - mousePosition.x) > 5f) { this.m_fTempAngle = 360f * ((this.m_v2TouchStart.x - mousePosition.x) / (float)Screen.width); Quaternion rotation = Quaternion.Lerp(Quaternion.identity, Quaternion.AngleAxis(this.m_fAngle + this.m_fTempAngle, Vector3.up), Time.time * 0.1f); this.pRealChar.transform.rotation = rotation; } } else if (NkInputManager.GetMouseButtonUp(0)) { if (mousePosition != Vector3.zero && this.pTouchEffectPrefab != null) { this.SetTouchEffcet(new Vector2(mousePosition.x, (float)Screen.height - mousePosition.y)); this.m_v3TouchStart = Vector3.zero; } } else if (NkInputManager.GetMouseButtonDown(0) && mousePosition != Vector3.zero) { this.m_v2TouchStart = new Vector2(mousePosition.x, (float)Screen.height - mousePosition.y); this.m_v3TouchStart = mousePosition; this.m_fAngle = this.pRealChar.transform.rotation.eulerAngles.y; } } }
private void CharacterRotation() { if (this._costumeChar == null) { return; } Vector3 mousePosition = Input.mousePosition; if (NkInputManager.GetMouseButton(0) && this._v3TouchStart != Vector3.zero && this._v3TouchStart != mousePosition) { if (mousePosition != Vector3.zero && Mathf.Abs(this._v2TouchStart.x - mousePosition.x) > 5f) { this._fTempAngle = 360f * ((this._v2TouchStart.x - mousePosition.x) / (float)Screen.width); Quaternion rotation = Quaternion.Lerp(Quaternion.identity, Quaternion.AngleAxis(this._fAngle + this._fTempAngle, Vector3.up), Time.time * 0.1f); this._costumeChar.transform.rotation = rotation; } } else if (NkInputManager.GetMouseButtonUp(0) && mousePosition != Vector3.zero) { this._v3TouchStart = Vector3.zero; } }
private void InputMouse() { if (this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID != 0L) { return; } bool flag = false; if (NkInputManager.GetMouseButton(0) || NkInputManager.GetMouseButton(2)) { flag = true; } if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(2)) { flag = false; } if (flag) { if (this.m_veScrollStart == Vector3.zero) { this.m_veScrollStart = NkInputManager.mousePosition; this.m_SoldierBatch.CastedTarget.CAMERA.SetScrollView(true); } else { Vector3 vector = this.m_veScrollStart - NkInputManager.mousePosition; this.m_SoldierBatch.CastedTarget.CAMERA.CameraScrollMove(vector.x, vector.y); this.m_veScrollStart = NkInputManager.mousePosition; } } if (!flag) { this.m_veScrollStart = Vector3.zero; this.m_SoldierBatch.CastedTarget.CAMERA.SetScrollView(false); } }
public void UpdateMouse3() { if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm()) { if (this.DragMove) { this.SetDragMove(false); } return; } if (!CameraController.EnableControll) { this.SetDragMove(false); return; } bool flag = NkInputManager.GetMouseButtonDown(0) || NkInputManager.GetMouseButtonDown(2); bool flag2 = NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(2); if (flag) { this.Mouse3DownPoint = NkInputManager.mousePosition; this.SetDragMove(true); } if (flag2) { this.SetDragMove(false); } if (this.DragMove) { Vector2 vector = NkInputManager.mousePosition - this.Mouse3DownPoint; this.Mouse3DownPoint = NkInputManager.mousePosition; Vector3 vector2 = new Vector3(-vector.x, 0f, -vector.y); vector2 *= 1E-05f * this.Mouse3Speed; this.SetMovePos(this.GetMovePos() + this.QY * vector2); } }
public override bool Update(INPUT_INFO curInput) { if (!CommonTasks.IsEndOfPrework) { return(false); } this.InputKeyBoard(); bool flag; if (TsPlatform.IsMobile && !TsPlatform.IsEditor) { flag = (curInput.evt == INPUT_INFO.INPUT_EVENT.DRAG && Input.touchCount == 1); } else { flag = (curInput.evt == INPUT_INFO.INPUT_EVENT.DRAG); } if (flag) { this.InputMouse(); } else { if (this.m_veScrollStart != Vector3.zero) { this.m_veScrollStart = Vector3.zero; this.m_Battle.CastedTarget.BattleCamera.SetScrollView(false); } if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(2)) { this.m_Battle.CastedTarget.SetCameraMove(flag); } } this.GridInputMouse(); return(false); }
public void GridInputMouse() { bool mouseButtonUp = NkInputManager.GetMouseButtonUp(0); bool mouseButtonDown = NkInputManager.GetMouseButtonDown(0); if (mouseButtonDown && NrTSingleton <UIManager> .Instance.DragUpUI) { return; } if (mouseButtonUp && NrTSingleton <UIManager> .Instance.DragUpUI) { this.m_SoldierBatch.CastedTarget.InitSelectMoveChar(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.Init(); return; } if (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_CHAT) != null && NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_CHAT).Visible) { return; } if (this.m_SoldierBatch.CastedTarget.IsMessageBox) { return; } SoldierBatchGrid soldierBatchGrid = null; if (NkRaycast.Raycast(this.mc_kPlunderPickLayer)) { GameObject gameObject = NkRaycast.HIT.transform.gameObject; if (null != gameObject) { soldierBatchGrid = gameObject.GetComponent <SoldierBatchGrid>(); if (null != soldierBatchGrid) { eBATTLE_ALLY aLLY = soldierBatchGrid.ALLY; short sTARTPOS_INDEX = soldierBatchGrid.STARTPOS_INDEX; int iNDEX = soldierBatchGrid.INDEX; long solID = soldierBatchGrid.SolID; long personID = soldierBatchGrid.PersonID; int charKind = soldierBatchGrid.CharKind; byte objID = soldierBatchGrid.ObjID; if (aLLY == eBATTLE_ALLY.eBATTLE_ALLY_0) { soldierBatchGrid.SetMODE(E_RENDER_MODE.ACTIVE_SELECT); } if (mouseButtonDown) { if (aLLY != eBATTLE_ALLY.eBATTLE_ALLY_0) { return; } if (solID != 0L && this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID == 0L) { this.SetMakeUpChar(solID, personID, charKind, objID); } } else if (mouseButtonUp) { if (aLLY != eBATTLE_ALLY.eBATTLE_ALLY_0) { if (this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID != 0L) { this.m_SoldierBatch.CastedTarget.InitCharBattlePos(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); } this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.Init(); return; } if (solID != 0L) { if (this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID != solID) { if (this.m_SoldierBatch.CastedTarget.EnableChangePos(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, solID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind) && !this.m_SoldierBatch.CastedTarget.ChangePos(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, solID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind)) { this.m_SoldierBatch.CastedTarget.InitSelectMoveChar(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); } } else { this.m_SoldierBatch.CastedTarget.InitSelectMoveChar(solID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); } this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.Init(); } else { if (!this.m_SoldierBatch.CastedTarget.InsertEmptyGrid((byte)sTARTPOS_INDEX, (byte)iNDEX, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_nObjectid)) { this.m_SoldierBatch.CastedTarget.InitSelectMoveChar(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); } this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.Init(); } } } } } else if (mouseButtonUp) { if (this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID != 0L) { this.m_SoldierBatch.CastedTarget.InitCharBattlePos(this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_SolID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendPersonID, this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.m_FriendCharKind); } this.m_SoldierBatch.CastedTarget.MakeUpCharInfo.Init(); } this.m_SoldierBatch.CastedTarget.SelectGrid = soldierBatchGrid; }
public void MyCharMoveMouse() { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char == null) { return; } if (NkInputManager.GetMouseButton(0) && NkInputManager.GetMouseButton(1)) { NrCharUser nrCharUser = (NrCharUser)@char; if (nrCharUser.GetFollowCharPersonID() > 0L) { if (!(NrTSingleton <FormsManager> .Instance.GetForm(G_ID.DLG_STOPAUTOMOVE) is StopAutoMove)) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.DLG_STOPAUTOMOVE); } return; } if (!this.bMouseCharMove) { nrCharUser.m_kCharMove.MoveStop(true, false); nrCharUser.m_kCharMove.SetIncreaseMove(); } nrCharUser.m_kCharMove.MouseMove(); this.bMouseCharMove = true; } else if (NkInputManager.GetMouseButtonUp(0)) { if (this.bMouseCharMove) { if (@char != null) { @char.m_kCharMove.MoveStop(true, true); @char.m_kCharMove.SendCharMovePacketForKeyBoardMove(true); } this.bMouseCharMove = false; this.SetSafeClickTime(-0.2f); return; } this.UpdateWalkEffect(false); if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm()) { return; } if (!NrTSingleton <NkClientLogic> .Instance.IsPickingEnable()) { NrTSingleton <NkClientLogic> .Instance.SetPickingEnable(true); return; } if (!NrTSingleton <NkClientLogic> .Instance.IsMovable()) { return; } if (this.fSafeClickTime > 0f && Time.time - this.fSafeClickTime < 0.5f) { return; } NrCharUser nrCharUser2 = (NrCharUser)@char; if (nrCharUser2.GetFollowCharPersonID() > 0L) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.DLG_STOPAUTOMOVE); } else { NrCharBase pickChar = NrTSingleton <NkClientLogic> .Instance.GetPickChar(); if (pickChar != null) { if (NrTSingleton <NkClientLogic> .Instance.GetFocusChar() == null) { pickChar.CancelClickMe(); nrCharUser2.m_kCharMove.SetTargetChar(null); } else { pickChar.SetClickMe(); if (!pickChar.IsCharKindATB(32L)) { nrCharUser2.m_kCharMove.SetTargetChar(pickChar); } else { nrCharUser2.m_kCharMove.SetTargetChar(null); } } } else { NrCharBase targetChar = nrCharUser2.m_kCharMove.GetTargetChar(); if (targetChar != null) { targetChar.CancelClickMe(); } nrCharUser2.m_kCharMove.SetTargetChar(null); } nrCharUser2.PickingMove(); } Dlg_Collect dlg_Collect = (Dlg_Collect)NrTSingleton <FormsManager> .Instance.GetForm(G_ID.DLG_COLLECT); if (dlg_Collect != null) { dlg_Collect.OnClose(); } this.fSafeClickTime = 0f; } else if (this.bMouseCharMove) { if (@char != null) { @char.m_kCharMove.MoveStop(true, true); @char.m_kCharMove.SendCharMovePacketForKeyBoardMove(true); } this.bMouseCharMove = false; this.SetSafeClickTime(-0.2f); } }
private void GridInputMouse() { if (this.m_Battle.CastedTarget == null) { return; } if (this.m_Battle.CastedTarget.InputControlTrigger) { return; } if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm()) { return; } if (!this.m_Battle.CastedTarget.IsEnableMouseInput()) { return; } NmBattleGrid nmBattleGrid = null; bool mouseButtonUp = NkInputManager.GetMouseButtonUp(0); bool mouseButtonUp2 = NkInputManager.GetMouseButtonUp(1); if (NkRaycast.Raycast(this.mc_kBattlePickLayer)) { GameObject gameObject = NkRaycast.HIT.transform.gameObject; if (null != gameObject) { nmBattleGrid = gameObject.GetComponent <NmBattleGrid>(); if (null != nmBattleGrid) { eBATTLE_ALLY aLLY = nmBattleGrid.ALLY; short sTARTPOS_INDEX = nmBattleGrid.STARTPOS_INDEX; int iNDEX = nmBattleGrid.INDEX; short bUID = nmBattleGrid.BUID; NkBattleChar charByBUID = NrTSingleton <NkBattleCharManager> .Instance.GetCharByBUID(bUID); Vector3 pOINT = NkRaycast.POINT; BATTLESKILL_BASE bATTLESKILL_BASE = null; int num = 0; if (this.m_Battle.CastedTarget.m_iBattleSkillIndex >= 0 && this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_SKILL) { NkBattleChar nkBattleChar = this.m_Battle.CastedTarget.SelectBattleSkillChar(); if (nkBattleChar == null) { return; } int skillUnique = nkBattleChar.GetSoldierInfo().SelectBattleSkillByWeapon(this.m_Battle.CastedTarget.m_iBattleSkillIndex); bATTLESKILL_BASE = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(skillUnique); if (bATTLESKILL_BASE == null) { return; } this.m_Battle.CastedTarget.GRID_MANAGER.SetSelectBattleSkillGrid(); if (bATTLESKILL_BASE.m_nSkillTargetType == 1 || bATTLESKILL_BASE.m_nSkillTargetType == 2) { num = 1; } else if (bATTLESKILL_BASE.m_nSkillTargetType == 3) { num = 2; } else if (bATTLESKILL_BASE.m_nSkillTargetType == 4) { num = 3; } } if (this.m_Battle.CastedTarget.MyAlly != aLLY) { if (bATTLESKILL_BASE != null) { if ((num == 2 || num == 3) && bUID >= 0) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveBattleSkillGrid(aLLY, sTARTPOS_INDEX, iNDEX, bATTLESKILL_BASE.m_nSkillUnique); } } if (mouseButtonUp) { if (this.m_Battle.CastedTarget.IsEmotionSet) { this.m_Battle.CastedTarget.Send_GS_BATTLE_EMOTICON_REQ(bUID); } else if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_ATTACK_LAND) { this.m_Battle.CastedTarget.Send_AttackLand_Order(pOINT); this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } else if (this.m_Battle.CastedTarget.m_iBattleSkillIndex >= 0 && this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_SKILL) { if (num == 2 || num == 3) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveBattleSkillGrid(aLLY, sTARTPOS_INDEX, iNDEX, bATTLESKILL_BASE.m_nSkillUnique); this.m_Battle.CastedTarget.Send_BattleSkill_Order(this.m_Battle.CastedTarget.m_iBattleSkillIndex, this.m_Battle.CastedTarget.SelectBattleSkillChar(), charByBUID, pOINT, (short)iNDEX); this.m_Battle.CastedTarget.Init_BattleSkill_Input(false); this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } else { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("578"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); } } else if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_SEARCH) { NkBattleChar currentSelectChar = this.m_Battle.CastedTarget.GetCurrentSelectChar(); if (currentSelectChar != null) { } this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } else { if (Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_PLUNDER || Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_INFINITY) { if (Battle.BATTLE.GetCheckTargetBt() && charByBUID != null && charByBUID.GetSoldierInfo().GetHP() > 0 && charByBUID.GetCharKindInfo().GetCharKind() != 916) { Battle.BATTLE.Send_GS_BATTLE_PLUNDER_AGGROADD_REQ(charByBUID.GetBUID()); Battle.BATTLE.ClickCheckTargetBt(); Battle.BATTLE.SetTargetBtDisCount(); NrTSingleton <NkEffectManager> .Instance.AddEffect("FX_ATTACK_TARGET", charByBUID); } } else { NkBattleChar currentSelectChar2 = this.m_Battle.CastedTarget.GetCurrentSelectChar(); if (currentSelectChar2 != null && charByBUID != null) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveAttack(aLLY, sTARTPOS_INDEX, iNDEX, charByBUID); if (charByBUID.GetSoldierInfo().GetHP() > 0) { currentSelectChar2.OrderAttackReq(charByBUID, (short)iNDEX, nmBattleGrid.GetCenter()); } } } this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } } } else { if (bATTLESKILL_BASE != null && (num == 1 || num == 3) && bUID >= 0) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveBattleSkillGrid(aLLY, sTARTPOS_INDEX, iNDEX, bATTLESKILL_BASE.m_nSkillUnique); } if (mouseButtonUp) { if (this.m_Battle.CastedTarget.IsEmotionSet) { this.m_Battle.CastedTarget.Send_GS_BATTLE_EMOTICON_REQ(bUID); } else if (this.m_Battle.CastedTarget.m_iBattleSkillIndex >= 0 && this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_SKILL) { if (num == 1 || num == 3) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveBattleSkillGrid(aLLY, sTARTPOS_INDEX, iNDEX, bATTLESKILL_BASE.m_nSkillUnique); this.m_Battle.CastedTarget.Send_BattleSkill_Order(this.m_Battle.CastedTarget.m_iBattleSkillIndex, this.m_Battle.CastedTarget.SelectBattleSkillChar(), charByBUID, pOINT, (short)iNDEX); this.m_Battle.CastedTarget.Init_BattleSkill_Input(false); this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } } else if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_CHANGEPOS) { NkBattleChar currentSelectChar3 = this.m_Battle.CastedTarget.GetCurrentSelectChar(); if (currentSelectChar3 != null) { int num2 = currentSelectChar3.OrderChangePosReq(sTARTPOS_INDEX, (short)iNDEX); if (num2 < 0) { if (num2 < -1) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("176"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); } else { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("404"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); } } } this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } else if (charByBUID != null) { if (charByBUID.GetTurnState() == eBATTLE_TURN_STATE.eBATTLE_TURN_STATE_ENABLE) { this.m_Battle.CastedTarget.SelectCharacter(bUID); } this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } else { this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; } } else if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_CHANGEPOS) { NkBattleChar currentSelectChar4 = this.m_Battle.CastedTarget.GetCurrentSelectChar(); if (currentSelectChar4 != null) { this.m_Battle.CastedTarget.GRID_MANAGER.ActiveChangePos(nmBattleGrid.ALLY, nmBattleGrid.STARTPOS_INDEX, currentSelectChar4.GetBUID(), (short)iNDEX); } } else { this.m_Battle.CastedTarget.GRID_MANAGER.SetOver(nmBattleGrid); } } } } } if (mouseButtonUp2) { if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_CHANGEPOS) { this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("402"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); } else if (this.m_Battle.CastedTarget.REQUEST_ORDER == eBATTLE_ORDER.eBATTLE_ORDER_SKILL) { this.m_Battle.CastedTarget.REQUEST_ORDER = eBATTLE_ORDER.eBATTLE_ORDER_NONE; this.m_Battle.CastedTarget.Init_BattleSkill_Input(true); } } if (null == nmBattleGrid) { this.m_Battle.CastedTarget.GRID_MANAGER.SetOver(null); if (this.m_Battle.CastedTarget.m_iBattleSkillIndex < 0 && this.m_Battle.CastedTarget.REQUEST_ORDER != eBATTLE_ORDER.eBATTLE_ORDER_SKILL && this.m_Battle.CastedTarget.GetCurrentSelectChar() == null) { this.m_Battle.CastedTarget.GRID_MANAGER.InitAll(); } } }