Example #1
0
	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());
		}
	}
	private void OkBtnDelegate( ref POINTER_INFO ptr )
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{	
			AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
			body_CS_STORAGE_COUNT_UP data = new body_CS_STORAGE_COUNT_UP();
			AsCommonSender.Send(data.ClassToPacketBytes());
			Close();
		}
	}