public void ResultProcess(body_SC_STORAGE_COUNT_UP_RESULT _result) { AsMessageBox popup = null; switch(_result.eResult) { case eRESULTCODE.eRESULT_SUCC: //popup = AsNotify.Instance.MessageBox("", AsTableManager.Instance.GetTbl_String(347)); m_LineOpen = (int)_result.nExtendCount + s_DefaultLine; //m_PageOpen = m_LineOpen / s_StorageLineCount; SetPageOpen( m_LineOpen / s_StorageLineCount ); if(m_LineOpen % s_StorageLineCount == 0) AsHudDlgMgr.Instance.storageDlg.page.SetPage(m_PageOpen - 1); else AsHudDlgMgr.Instance.storageDlg.page.SetPage(m_PageOpen); AsHudDlgMgr.Instance.storageDlg.PlayLineEffect(curLineOpen); AsHudDlgMgr.Instance.storageDlg.PageLock(); AsHudDlgMgr.Instance.storageDlg.ResetSlotItmes(); break; case eRESULTCODE.eRESULT_FAIL_STORAGE_UP_MAX_COUNT: popup = AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(218)); // popup = AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(325)); break; case eRESULTCODE.eRESULT_FAIL_STORAGE_UP_NEED_GOLD: // cash store required AsHudDlgMgr.Instance.OpenNeedSphereDlg(); // string text = AsTableManager.Instance.GetTbl_String(209); // text = string.Format(text, Color.yellow.ToString() + record.Value + "G" + Color.white.ToString()); // AsNotify.Instance.MessageBox( "Addition", text, // null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_ERROR); break; case eRESULTCODE.eRESULT_FAIL: popup = AsNotify.Instance.MessageBox("", AsTableManager.Instance.GetTbl_String(325)); break; } if(popup != null) AsHudDlgMgr.Instance.storageDlg.MessageBoxPopup(popup); }
private void ReceiveStorageCountUpResult(byte[] _packet) { body_SC_STORAGE_COUNT_UP_RESULT data = new body_SC_STORAGE_COUNT_UP_RESULT(); data.PacketBytesToClass(_packet); ItemMgr.HadItemManagement.Storage.ResultProcess(data); Debug.Log("ReceiveStorageCountUpResult: result = " + data.eResult); }