void ConfirmBtnDelegate( ref POINTER_INFO ptr ) { if(CheckMsgBoxPopUp() == true) return; if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) { AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false); if(textContent_.text == "") { // string name = AsUserInfo.Instance.GetCurrentUserEntity().GetProperty<string>(eComponentProperty.NAME); // textContent_.text = string.Format(AsTableManager.Instance.GetTbl_String(1231), name); } if(AsTableManager.Instance.TextFiltering_PStoreContent(textContent_.text) == true) { AsPStoreManager.Instance.SetContentText(textContent_.text); AsPStoreManager.Instance.Request_Modify(); Close(); ClearMsgBox(); } else { m_MsgBox = AsNotify.Instance.MessageBox("", AsTableManager.Instance.GetTbl_String(364), this, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_ERROR); } } }
private void UpdateTouch() { if( true == AsGameMain.isPopupExist) return; if( ( 0 >= Input.touchCount) || ( 1 != slot.ScreenIndex)) return; switch( Input.GetTouch(0).phase) { case TouchPhase.Began: { if( false == AsUtil.PtInCollider( Camera.mainCamera, collider, Input.GetTouch(0).position)) break; isTouched = true; } break; case TouchPhase.Ended: { if( ( true == isTouched) && ( true == AsUtil.PtInCollider( Camera.mainCamera, collider, Input.GetTouch(0).position))) { if( null != msgBox) break; msgBox = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(366), AsTableManager.Instance.GetTbl_String(8), this, "OnCancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); } isTouched = false; } break; } }
// weapon's overraped is 1 void BuyItemOnlyOne( string _itemId, string _itemName, string _itemPrice, int _itemSlot) { quantityMsgBox.QuantityInfo = new StoreQuantityInfo( _itemName, _itemId, _itemPrice, _itemSlot, 1); string szMessage = string.Format( AsTableManager.Instance.GetTbl_String( 249), _itemName, 1); messageBox = ShowAskDealMessageBox( AsTableManager.Instance.GetTbl_String( 126), szMessage, "Deal"); }
public void SetMsgBox( AsMessageBox _msg) { if( null != m_msgBox) { GameObject.DestroyObject( m_msgBox.gameObject); } m_msgBox = _msg; }
public void SetMessageBox( AsMessageBox _box ) { if( null != m_messageBox ) { GameObject.Destroy(m_messageBox.gameObject); } m_messageBox = _box; }
public void SetTempMsgBox( AsMessageBox _msg ) { if( null != m_tempMsgBox ) { m_tempMsgBox.Close(); m_tempMsgBox = null; } m_tempMsgBox = _msg; }
void Start() { m_msgboxRequestWait = ( new GameObject( "msgboxRequestWait")).AddComponent<AsMessageBox>(); m_msgboxRequestChoice = ( new GameObject( "msgboxRequestChoice")).AddComponent<AsMessageBox>(); m_userPlayer = ( new GameObject( "userPlayer")).AddComponent<AsUserEntity>(); m_otherPlayer = ( new GameObject( "otherPlayer")).AddComponent<AsUserEntity>(); if( null != m_msgboxRequestWait) m_msgboxRequestWait.Destroy_Only(); if( null != m_msgboxRequestChoice) m_msgboxRequestChoice.Destroy_Only(); }
void Start() { m_msgboxIndunMatchingCancel = ( new GameObject( "msgboxIndunMatchingCancel")).AddComponent<AsMessageBox>(); CloseIndunMatchingCancelMsgBox(); m_msgboxIndunMatchingError = ( new GameObject( "msgboxIndunMatchingError")).AddComponent<AsMessageBox>(); CloseIndunMatchingErrorMsgBox(); m_msgboxIndunMatchingError_Cash = ( new GameObject( "msgboxIndunMatchingError_Cash")).AddComponent<AsMessageBox>(); CloseIndunMatchingErrorMsgBox_Cash(); m_msgboxIndunExit = ( new GameObject( "msgboxIndunExit")).AddComponent<AsMessageBox>(); CloseIndunExitMsgBox(); }
protected void QuantityOK() { Item item = ItemMgr.ItemManagement.GetItem( System.Convert.ToInt32( quantityMsgBox.QuantityInfo.itemID)); if( null == item) return; string szMessage = string.Empty; m_sbTemp.Length = 0; m_sbTemp.Append( ItemMgr.GetGradeColor( item.ItemData.grade)); m_sbTemp.Append( quantityMsgBox.QuantityInfo.itemName); m_sbTemp.Append( Color.white); if( nowState == StoreState.QUANTITY_BUY) szMessage = string.Format( AsTableManager.Instance.GetTbl_String( 249), m_sbTemp.ToString(), quantityMsgBox.NowItemCount); else if( nowState == StoreState.QUANTITY_SELL) szMessage = string.Format( AsTableManager.Instance.GetTbl_String( 250), m_sbTemp.ToString(), quantityMsgBox.NowItemCount); messageBox = ShowAskDealMessageBox( AsTableManager.Instance.GetTbl_String( 126), szMessage, "Deal"); }
void Start() { m_msgboxRegistrationItemCancel = ( new GameObject( "msgboxRegistrationItemCancel")).AddComponent<AsMessageBox>(); m_msgboxTradeCancel = ( new GameObject( "msgboxTradeCancel")).AddComponent<AsMessageBox>(); m_msgboxTradeError = ( new GameObject( "msgboxTradeError")).AddComponent<AsMessageBox>(); if( null != m_msgboxRegistrationItemCancel) m_msgboxRegistrationItemCancel.Close(); if( null != m_msgboxTradeCancel) m_msgboxTradeCancel.Close(); if( null != m_msgboxTradeError) m_msgboxTradeError.Close(); btnClose.SetInputDelegate( _CloseBtnDelegate); btnTradeOk.SetInputDelegate( _OkBtnDelegate); btnTradeCancel.SetInputDelegate( _CancelBtnDelegate); btnLockR.SetInputDelegate( _LockBtnDelegate); // btnGoldR.SetInputDelegate( _GoldBtnDelegate); AsLanguageManager.Instance.SetFontFromSystemLanguage( textNameL); AsLanguageManager.Instance.SetFontFromSystemLanguage( textLockL); // AsLanguageManager.Instance.SetFontFromSystemLanguage( textGoldL); AsLanguageManager.Instance.SetFontFromSystemLanguage( textNameR); AsLanguageManager.Instance.SetFontFromSystemLanguage( textLockR); // AsLanguageManager.Instance.SetFontFromSystemLanguage( textGoldR); AsLanguageManager.Instance.SetFontFromSystemLanguage( m_TextTitle); AsLanguageManager.Instance.SetFontFromSystemLanguage( m_TextCancel); AsLanguageManager.Instance.SetFontFromSystemLanguage( m_TextOk); AsLanguageManager.Instance.SetFontFromSystemLanguage( m_TextGuide); m_TextTitle.Text = AsTableManager.Instance.GetTbl_String( 1116); m_TextCancel.Text = AsTableManager.Instance.GetTbl_String( 1151); m_TextOk.Text = m_color_disable.ToString() + AsTableManager.Instance.GetTbl_String( 1297); m_TextGuide.Text = AsTableManager.Instance.GetTbl_String( 1710); textLockL.Text = AsTableManager.Instance.GetTbl_String( 856); textLockR.Text = AsTableManager.Instance.GetTbl_String( 856); }
public void MessageBoxPopup(AsMessageBox _popup) { m_Popup = _popup; }
public void OpenReallyRemoveItemDlg( int islotIndex, int iCount) { if( true == AsHudDlgMgr.Instance.IsOpenTrade || true == AsHudDlgMgr.Instance.IsOpenEnchantDlg || true == AsHudDlgMgr.Instance.IsOpenStrengthenDlg || true == AsHudDlgMgr.Instance.IsOpenSynthesisDlg || AsPStoreManager.Instance.UnableActionByPStore() == true) { AsHudDlgMgr.Instance.SetMsgBox( AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(1410), null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE)); return; } m_iReallyRemoveItemSlotIndex = islotIndex; m_iReallyRemoveItemCount = iCount; m_curReallyRemoveItemDlg = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(1099), AsTableManager.Instance.GetTbl_String(6), this, "ReallyRemoveItem", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); }
public void GuiInputClickUp( Ray inputRay) { if( false == IsUseInput() || AsHudDlgMgr.Instance.IsOpenPStoreGoodsBox == true) //$ yde return; if( true == this.removeItemDlg.IsOpen()) { removeItemDlg.GuiInputUp( inputRay); return; } if( null != m_ClickDownBuySlot && true == m_bMovePageEnable) { if( m_ClickDownBuySlot == GetClickBuySlot( inputRay)) { //2014.05.16 dopamin //if( true == AsUtil.CheckGuestUser()) // return; m_curReallyRemoveItemDlg = AsNotify.Instance.CashMessageBox( ItemMgr.HadItemManagement.Inven.GetInvenAddSphereCost( ItemMgr.HadItemManagement.Inven.getExtendPageCount/5), AsTableManager.Instance.GetTbl_String(1632), AsTableManager.Instance.GetTbl_String(1351), this, "SendInventoryOpen",AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false); m_bMovePageEnable = false; return; } } if( null != moveItemSlot.slotItem && null != m_ClickDownItemSlot) { if( m_ClickDownItemSlot.IsIntersect( inputRay)) { if( m_ClickDownItemSlot.slotIndex == moveItemSlot.slotIndex) { SetRestoreSlot(); } else { if( true == AsHudDlgMgr.Instance.IsDontMoveState) { if( AsHudDlgMgr.Instance.IsOpenPStore == false) { if (true == m_ClickDownItemSlot.isMoveLock) { SetRestoreSlot(); } else { PlayDorpSound(moveItemSlot.slotItem.realItem.item); AsCommonSender.SendMoveItem(moveItemSlot.slotIndex, m_ClickDownItemSlot.slotIndex); moveItemSlot.DeleteSlotItem(); } } else { if( IsRectBuySlots ( inputRay)) { int iStartIndex = Inventory.useInvenSlotBeginIndex + page.curPage * Inventory.useInvenSlotNumInPage; if( iStartIndex > moveItemSlot.slotIndex) moveItemSlot.DeleteSlotItem(); else SetRestoreSlot(); } else { SetRestoreSlot(); } } } } } else { bool bExistSlot = false; bExistSlot = IsItemExistNowSlot( inputRay); if( false == bExistSlot) { if( true == AsQuickSlotManager.Instance.SetMoveInvenSlotInItemSlot( inputRay, moveItemSlot)) { SetRestoreSlot(); } else if( ( true == AsHudDlgMgr.Instance.IsOpenPlayerStatus && false == AsHudDlgMgr.Instance.playerStatusDlg.isOtherUser) && true == AsHudDlgMgr.Instance.playerStatusDlg.IsRect( inputRay)) { Item.eITEM_TYPE tempType = moveItemSlot.slotItem.realItem.item.ItemData.GetItemType(); if( Item.eITEM_TYPE.CosEquipItem == tempType) SendDClickCosEquipItem( moveItemSlot.slotItem.realItem); else if( Item.eITEM_TYPE.EquipItem == tempType) SendClickEquipItem( moveItemSlot.slotItem.realItem, inputRay); SetRestoreSlot(); } else if( AsHudDlgMgr.Instance.IsOpenEnchantDlg && true == AsHudDlgMgr.Instance.enchantDlg.IsRect( inputRay)) { AsHudDlgMgr.Instance.enchantDlg.SetItemInSlot( moveItemSlot.slotItem.realItem, inputRay); SetRestoreSlot(); } else if( AsHudDlgMgr.Instance.IsOpenStrengthenDlg && true == AsHudDlgMgr.Instance.strengthenDlg.IsEquipRect( inputRay)) { AsHudDlgMgr.Instance.strengthenDlg.ResetUIInvenItem( moveItemSlot.slotItem.realItem); SetRestoreSlot(); } else if( AsHudDlgMgr.Instance.IsOpenedPostBox) { AsPostBoxDlg postBox = AsHudDlgMgr.Instance.postBoxDlgObj.GetComponentInChildren<AsPostBoxDlg>(); Debug.Assert( null != postBox); if( true == postBox.SetMoveInvenSlotInItemSlot( inputRay, moveItemSlot)) { SetRestoreSlot(); AsHudDlgMgr.Instance.invenDlg.ApplySlotMoveLock(); } else { SetRestoreSlot(); } } else // < ilmeda, 20120917 if( true == AsHudDlgMgr.Instance.IsOpenTrade && true == AsHudDlgMgr.Instance.tradeDlg.IsRect( inputRay) && false == m_ClickDownItemSlot.isMoveLock) { AsHudDlgMgr.Instance.SendMoveItem_InvenToTrade( moveItemSlot.slotItem.realItem); SetRestoreSlot(); } // ilmeda, 20120917 > // else if( true == AsHudDlgMgr.Instance.IsOpenSynthesisDlg && true == AsHudDlgMgr.Instance.m_SynthesisDlg.IsRect( inputRay) && false == m_ClickDownItemSlot.isMoveLock) // { // AsHudDlgMgr.Instance.m_SynthesisDlg.SetSlotItem( moveItemSlot.slotItem.realItem); // SetRestoreSlot(); // ApplySlotMoveLock(); // } //$ yde -20130118 else if( true == AsHudDlgMgr.Instance.IsOpenSynEnchantDlg && AsHudDlgMgr.Instance.m_SynEnchantDlg.SetInputUpRealItem( moveItemSlot.slotItem.realItem, inputRay ) ) { SetRestoreSlot(); ApplySlotMoveLock(); } else if( true == AsHudDlgMgr.Instance.IsOpenSynCosDlg && AsHudDlgMgr.Instance.m_SynCosDlg.SetInputUpRealItem( moveItemSlot.slotItem.realItem, inputRay ) ) { SetRestoreSlot(); ApplySlotMoveLock(); } else if( true == AsHudDlgMgr.Instance.IsOpenSynOptionDlg && AsHudDlgMgr.Instance.m_SynOptionDlg.SetInputUpRealItem( moveItemSlot.slotItem.realItem, inputRay ) ) { SetRestoreSlot(); ApplySlotMoveLock(); } else if( true == AsHudDlgMgr.Instance.IsOpenSynDisDlg && AsHudDlgMgr.Instance.m_SynDisDlg.SetInputUpRealItem( moveItemSlot.slotItem.realItem, inputRay ) ) { SetRestoreSlot(); ApplySlotMoveLock(); } else if( true == AsHudDlgMgr.Instance.IsOpenStorage && true == AsHudDlgMgr.Instance.storageDlg.IsRect( inputRay) && AsHudDlgMgr.Instance.storageDlg.CheckPageOpened() == true)// & false == m_ClickDownItemSlot.isMoveLock) { AsHudDlgMgr.Instance.SendMoveItem_InvenToStorage( inputRay, moveItemSlot); SetRestoreSlot(); } else if( ePStoreState.User_Standby == AsPStoreManager.Instance.storeState && true == AsHudDlgMgr.Instance.pstoreDlg.IsRect( inputRay)) { AsHudDlgMgr.Instance.pstoreDlg.SendMoveItem_InvenToPStore( inputRay, moveItemSlot); SetRestoreSlot(); } else if( null != AsPetManager.Instance.PetSynthesisDlg && true == AsPetManager.Instance.PetSynthesisDlg.IsRect( inputRay)) { AsPetManager.Instance.PetSynthesisDlg.SetClickRealItem(moveItemSlot.slotItem.realItem); SetRestoreSlot(); ApplySlotMoveLock(); } else { SetRestoreSlot(); } } } } else if( null != m_ClickDownItemSlot && true == m_ClickDownItemSlot.IsIntersect( inputRay)) { if( m_iClickDownItemSlotIndex == m_ClickDownItemSlot.slotIndex) { if( m_bVisivleToolTip == true) OpenTooltip(); } } #if NEW_PAGE else if( true == m_bMovePageEnable) { if( true == page.IsPageeRectIntersect( inputRay)) { Vector2 vec2Direction = Vector2.zero; vec2Direction.x = inputRay.origin.x; vec2Direction.y = inputRay.origin.y; vec2Direction = vec2Direction - m_vec2DownPosition; if( dragPageMoveDistance < vec2Direction.magnitude) { if( 0 > Vector2.Dot( Vector2.right, vec2Direction.normalized)) { NextPage(); } else { PrePage(); } m_bMovePageEnable = false; } } } #endif m_bMovePageEnable = false; }
public void OpenSkillResetSucceeded() { string strTitle = AsTableManager.Instance.GetTbl_String(123); string strMsg = AsTableManager.Instance.GetTbl_String(122); m_SkillResetMessageBox = AsNotify.Instance.MessageBox( strTitle, strMsg, this, "OnMsgBox_SkillReset_Succeeded", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); }
public void ConfirmIndunCountItem(ePotency_Type potencyType, AS_CS_CHAR_ATTACK_NPC data, ItemData itemData, int nSkillTableID) { m_IndunCountItemBuff = data; string strItemName = AsTableManager.Instance.GetTbl_String( itemData.nameId); string strTitle = AsTableManager.Instance.GetTbl_String( 126); string strMsg = ""; if( ePotency_Type.NormalHardPlayCount == potencyType) { strMsg = string.Format( AsTableManager.Instance.GetTbl_String( 2774), strItemName); } else if( ePotency_Type.HellPlayCount == potencyType) { Tbl_SkillLevel_Record record = AsTableManager.Instance.GetTbl_SkillLevel_Record( nSkillTableID); if( null != record) { int nIndunID = (int)( record.listSkillLevelPotency[0].Potency_IntValue); Tbl_InDun_Record indunRecord = AsTableManager.Instance.GetInDunRecord( nIndunID); if( null != indunRecord) { string strIndunName = AsTableManager.Instance.GetTbl_String( indunRecord.Name); strMsg = string.Format( AsTableManager.Instance.GetTbl_String( 2775), strItemName, strIndunName); } } } else if( ePotency_Type.HellPlayCountAll == potencyType) { strMsg = string.Format( AsTableManager.Instance.GetTbl_String( 2776), strItemName); } m_IndunCountItemMsgBox = AsNotify.Instance.MessageBox( strTitle, strMsg, this, "OnMsgBox_IndunCountItem_Ok", "OnMsgBox_IndunCountItem_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); }
public void ConfirmSkillReset(RealItem _curSkillResetRealItem = null) { if( true == TargetDecider.CheckCurrentMapIsIndun()) { AsMyProperty.Instance.AlertNotInIndun(); return; } if( true == TargetDecider.CheckCurrentMapIsArena()) { AsMyProperty.Instance.AlertNotInPvp(); return; } m_CurSkillResetRealItem = _curSkillResetRealItem; string strTitle = AsTableManager.Instance.GetTbl_String(123); string strMsg = AsTableManager.Instance.GetTbl_String(121); m_SkillResetMessageBox = AsNotify.Instance.MessageBox(strTitle, strMsg, this, "OnMsgBox_SkillReset_Ok", "OnMsgBox_SkillReset_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); }
void OnMsgBox_SkillReset_Ok() { //m_SkillResetMessageBox.Close(); if( false == SkillBook.Instance.CheckSkillBookReset()) { if( m_ClickDownItemSlot != null ) { m_ClickDownItemSlot.slotItem.realItem.SendUseItem(); } else if( m_CurSkillResetRealItem != null ) { m_CurSkillResetRealItem.SendUseItem(); } } else { string strTitle = AsTableManager.Instance.GetTbl_String(123); string strMsg = AsTableManager.Instance.GetTbl_String(120); m_SkillResetMessageBox = AsNotify.Instance.MessageBox( strTitle, strMsg, this, "OnMsgBox_SkillReset_Err", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); } }
public void OpenPatchErrorMsgBox() { if( null != m_msgboxPatchError) return; string strTitle = m_AssetbundleParser.GetPatcherString( 1); string strMsg = m_AssetbundleParser.GetPatcherString( 3); string strOk = m_AssetbundleParser.GetPatcherString( 5); string strCancel = m_AssetbundleParser.GetPatcherString( 6); m_msgboxPatchError = AsNotify.Instance.MessageBox( strTitle, strMsg, strOk, strCancel, this, "OnMsgBox_PatchError_Ok", "OnMsgBox_PatchError_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION, false, false); m_fMsgBoxTimer = Time.realtimeSinceStartup; }
public void SetSlotItem( int iSlotIndex, RealItem realItem) { int iBeginSlotIndex = invenslots[0].slotIndex; int iIndex = iSlotIndex - iBeginSlotIndex; if( iIndex < 0 || iIndex >= invenslots.Length) return; invenslots[iIndex].DeleteSlotItem(); if( null != realItem) { invenslots[iIndex].CreateSlotItem( realItem, slotItemParent.transform); } else if( null != moveItemSlot.slotItem) { if( null != moveItemSlot.slotItem.realItem) { if( moveItemSlot.slotItem.realItem.getSlot == iSlotIndex) moveItemSlot.DeleteSlotItem(); } } if( null != m_curReallyRemoveItemDlg && iSlotIndex == m_iReallyRemoveItemSlotIndex) { m_curReallyRemoveItemDlg.Close(); m_curReallyRemoveItemDlg = null; } if( null != removeItemDlg && true == removeItemDlg.IsOpen() && iSlotIndex == m_iReallyRemoveItemSlotIndex) removeItemDlg.Close(); DetachFocusImg(); }
public void SetSlotItem( int iSlotIndex ) { if( m_iReallyRemoveItemSlotIndex == iSlotIndex && null != m_curReallyRemoveItemDlg ) { m_curReallyRemoveItemDlg.Close(); m_curReallyRemoveItemDlg = null; m_iReallyRemoveItemSlotIndex = 0; m_iReallyRemoveItemCount = 0; } }
private void SendCharacterCreate() { //$yde if( true == AsEntityManager.Instance.ModelLoading) return; CloseAllAlertDlg(); string name = nameField.Text; if( 0 == name.Length) { if( null == msgBox) msgBox = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(1406), AsTableManager.Instance.GetTbl_String(1407), null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_ERROR); return; } byte[] bytesName = Encoding.UTF8.GetBytes( name); if( false == AsUtil.CheckCharacterName( name)) { string title = AsTableManager.Instance.GetTbl_String(128); string msg = AsTableManager.Instance.GetTbl_String(129); if( null == m_CharNameErrDlg) m_CharNameErrDlg = AsNotify.Instance.MessageBox( title, msg, null, null, AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); return; } body_CG_CHAR_CREATE charCreate = new body_CG_CHAR_CREATE(); charCreate.nSlot = AsGameMain.createCharacterSlot; System.Buffer.BlockCopy( bytesName, 0, charCreate.szCharName, 0, bytesName.Length); charCreate.eRace = (eRACE)curRace; charCreate.eClass = (eCLASS)curJob; charCreate.eGender = (eGENDER)curGender; charCreate.nHairIndex = curHairStyle; charCreate.nHairColor = curHairColor; charCreate.nBodyIndex = curBodyColor; charCreate.nPointIndex = curPointColor; charCreate.nGloveIndex = curGloveColor; byte[] data = charCreate.ClassToPacketBytes(); AsNetworkMessageHandler.Instance.Send( data); }
public void CloseTempMsgBox() { if( null != m_tempMsgBox ) { m_tempMsgBox.Close(); m_tempMsgBox = null; } m_tempRealItem = null; }
// // close dialog public void Close() { ClearSlot(); DetachFocusImg(); moveItemSlot.DeleteSlotItem(); ResetMoveSlot(); SetClickDownSlot(null); CloseStorageQuantityDlg(); CloseStorageAdditionDlg(); ResetSlotMoveLock(); if(AsHudDlgMgr.Instance.IsOpenInven == true) AsHudDlgMgr.Instance.CloseInven(); if( null != m_curReallyRemoveItemDlg ) { m_curReallyRemoveItemDlg.Close(); m_curReallyRemoveItemDlg = null; } if( null!=m_Popup) { m_Popup.Close(); m_Popup = null; } }
public void OpenReallyRemoveItemDlg(int islotIndex, int iCount ) { // if( true == AsHudDlgMgr.Instance.IsDontMoveState) // return; m_iReallyRemoveItemSlotIndex = islotIndex; m_iReallyRemoveItemCount = iCount; m_curReallyRemoveItemDlg = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(1099), AsTableManager.Instance.GetTbl_String(6), this, "ReallyRemoveItem", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); }
private void MakingBtnDelegate( ref POINTER_INFO ptr) { if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) { if( false == AsHudDlgMgr.Instance.IsOpenProductionDlg) return; if (true == AsCommonSender.isSendItemProductRegister) return; byte nslotidx = AsHudDlgMgr.Instance.productionDlg.GetCanUseProgIndex(); if( byte.MaxValue == nslotidx) { if( null == m_msgBox ) { m_msgBox = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(267), null, string.Empty, AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE); } return; } AsHudDlgMgr.Instance.productionItemId = m_record.getItemID; if( false == m_isRandomItem ) { AsHudDlgMgr.Instance.productionRandItem = false; } else { AsHudDlgMgr.Instance.productionRandItem = true; } AsCommonSender.SendItemProduct( nslotidx, m_record.getIndex); AsEntityManager.Instance.UserEntity.HandleMessage( new Msg_MoveStopIndication()); AsSoundManager.Instance.PlaySound( "Sound/PC/Common/Se_Common_Production_Start", Vector3.zero, false); } }
void StorageAdditionDlg() { int iIndex = 120 + ItemMgr.HadItemManagement.Storage.pageOpen; Tbl_GlobalWeight_Record _record = AsTableManager.Instance.GetTbl_GlobalWeight_Record(iIndex); if( null== _record) { Debug.LogError("StorageDlg::StorageAdditionDlg()[ not find GetTbl_GlobalWeight_Record : " + iIndex ); return; } AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false); long cash = (long)_record.Value; string title = AsTableManager.Instance.GetTbl_String(1632); string content = AsTableManager.Instance.GetTbl_String(1371); m_Popup = AsNotify.Instance.CashMessageBox(cash, title, content, this, "OnAdditionConfirm", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); }
private void CloseAllAlertDlg() { AsNotify.Instance.CloseAllMessageBox(); msgBox = null; m_CharNameErrDlg = null; }
void OnAdditionConfirm() { int iIndex = 120 + ItemMgr.HadItemManagement.Storage.pageOpen; long cash = (long)AsTableManager.Instance.GetTbl_GlobalWeight_Record(iIndex).Value; if(AsUserInfo.Instance.nMiracle < cash) { // string title = AsTableManager.Instance.GetTbl_String(1412); string content = AsTableManager.Instance.GetTbl_String(264); if (AsGameMain.useCashShop == true) m_Popup = AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), content, this, "OpenCashShop", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); else m_Popup = AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), content, AsNotify.MSG_BOX_TYPE.MBT_OK); } else { body_CS_STORAGE_COUNT_UP data = new body_CS_STORAGE_COUNT_UP(); AsCommonSender.Send(data.ClassToPacketBytes()); } }
// < Recive public void TradeRequest(ushort requestSessionID) { if( false == _isUserPlayer( requestSessionID)) { m_userPlayer = _GetUserEntityBySessionId( AsUserInfo.Instance.GamerUserSessionIdx); if( false == _isUserPlayerTradePossible()) { AsCommonSender.SendTradeResponse( false, requestSessionID); return; } } m_requestSessionID = requestSessionID; if( _isUserPlayer( requestSessionID)) { string title = AsTableManager.Instance.GetTbl_String(1104); //string msgRequest = _GetUserName( m_responseSessionID) + AsTableManager.Instance.GetTbl_String( 21); string msgRequest = string.Format( AsTableManager.Instance.GetTbl_String( 21), _GetUserName( m_responseSessionID)); //m_msgboxRequestWait = AsNotify.Instance.MessageBox( title, msgRequest, this, "OnMsgBox_TradeRequest_Cancel", "OnMsgBox_TradeRequest_Cancel", AsNotify.MSG_BOX_TYPE.MBT_CANCEL, AsNotify.MSG_BOX_ICON.MBI_NOTICE); m_msgboxRequestWait = AsNotify.Instance.MessageBox( title, msgRequest, AsNotify.MSG_BOX_TYPE.MBT_CANCEL, AsNotify.MSG_BOX_ICON.MBI_NOTICE); m_msgboxRequestWait.SetOkDelegate = OnMsgBox_TradeRequest_Cancel; m_msgboxRequestWait.SetCancelDelegate = OnMsgBox_TradeRequest_Cancel; m_userPlayer = _GetUserEntityBySessionId( m_requestSessionID); m_otherPlayer = _GetUserEntityBySessionId( m_responseSessionID); } else { if (AsHudDlgMgr.Instance.IsOpenCashStore || AsHudDlgMgr.Instance.IsOpenNpcStore) { AsCommonSender.SendTradeResponse(false, m_requestSessionID); return; } string title = AsTableManager.Instance.GetTbl_String(1105); //string msgResponse = _GetUserName( m_requestSessionID) + AsTableManager.Instance.GetTbl_String( 22); string msgResponse = string.Format( AsTableManager.Instance.GetTbl_String( 22), _GetUserName( m_requestSessionID)); //m_msgboxRequestChoice = AsNotify.Instance.MessageBox( title, msgResponse, this, "OnMsgBox_TradeResponse_Ok", "OnMsgBox_TradeResponse_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); m_msgboxRequestChoice = AsNotify.Instance.MessageBox( title, msgResponse, AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION); m_msgboxRequestChoice.SetOkDelegate = OnMsgBox_TradeResponse_Ok; m_msgboxRequestChoice.SetCancelDelegate = OnMsgBox_TradeResponse_Cancel; m_userPlayer = _GetUserEntityBySessionId( AsUserInfo.Instance.GamerUserSessionIdx); m_otherPlayer = _GetUserEntityBySessionId( m_requestSessionID); } }
// close dialog public bool Close() { QuestTutorialMgr.Instance.ProcessQuestTutorialMsg( new QuestTutorialMsgInfo( QuestTutorialMsg.CLOSE_INVENTORY, 0)); ClearSlot(); DetachFocusImg(); moveItemSlot.DeleteSlotItem(); ResetMoveSlot(); SetClickDownSlot( null); CloseRemoveItemDlg(); if( null != m_curReallyRemoveItemDlg) { m_curReallyRemoveItemDlg.Close(); m_curReallyRemoveItemDlg = null; } if( null != removeItemDlg && true == removeItemDlg.IsOpen()) removeItemDlg.Close(); AsHudDlgMgr.Instance.SetNewInvenImg( false); for( int i = 0; i < ItemMgr.HadItemManagement.Inven.newReceiveItemslots.Length; ++i) { ItemMgr.HadItemManagement.Inven.newReceiveItemslots[i] = false; } ItemMgr.HadItemManagement.Inven.isNewReceiveItems = false; CloseTempMsgBox(); //$yde AsPetManager.Instance.InventoryClosed(); return true; }