当前位置: 首页>>代码示例>>C#>>正文


C# POINTER_INFO类代码示例

本文整理汇总了C#中POINTER_INFO的典型用法代码示例。如果您正苦于以下问题:C# POINTER_INFO类的具体用法?C# POINTER_INFO怎么用?C# POINTER_INFO使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


POINTER_INFO类属于命名空间,在下文中一共展示了POINTER_INFO类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DecreaseValueButtonDelegate

	protected void DecreaseValueButtonDelegate(ref POINTER_INFO pointer)
    {
        if (pointer.evt == GameValues.defaultInputEvent)
        {
			HandleWeightValueChange(-10);
        }
    }
开发者ID:adahera222,项目名称:properme,代码行数:7,代码来源:DeadliftWeightSelectionPopup.cs

示例2: _OkBtnDelegate

	private void _OkBtnDelegate( ref POINTER_INFO ptr)
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{
			if( null == goldField)
				return;
			
			if( true == _isDigit( goldField.Text))
			{
				ulong nGold = Convert.ToUInt64( goldField.Text);
				
				if( nGold <= AsUserInfo.Instance.SavedCharStat.nGold)
					AsCommonSender.SendTradeRegistrationGold( nGold);
				else
					AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(28), eCHATTYPE.eCHATTYPE_SYSTEM);
//					AsMessageManager.Instance.InsertMessage( AsTableManager.Instance.GetTbl_String(28));
			}
			else
			{
//				AsMessageManager.Instance.InsertMessage( AsTableManager.Instance.GetTbl_String(70));
				AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(70), eCHATTYPE.eCHATTYPE_SYSTEM);
			}

			AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
			Close();
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:27,代码来源:UITradePopup_Gold.cs

示例3: FriendButtonClickedDelegate

	void FriendButtonClickedDelegate(ref POINTER_INFO pointer)
	{
		if (pointer.evt == GameValues.defaultInputEvent)	
		{
			ScreenLog.AddMessage("Friend Button Clicked", ScreenLogType.Warning);
		}
	}
开发者ID:adahera222,项目名称:properme,代码行数:7,代码来源:HUD.cs

示例4: OnInput

	public override void OnInput(ref POINTER_INFO ptr)
	{
		if (deleted)
			return;

		base.OnInput(ref ptr);

		if (!m_controlIsEnabled || IsHidden())
			return;

		if (ptr.evt == whenToInvoke)
		{
			if (loadingPanel != null)
			{
				UIPanelManager mgr = (UIPanelManager)loadingPanel.Container;

				// Let us know when the panel is finished coming in:
				loadingPanel.AddTempTransitionDelegate(LoadSceneDelegate);

				if (mgr is UIPanelManager && mgr != null)
				{
					mgr.BringIn(loadingPanel);
				}
				else
				{
					loadingPanel.StartTransition(UIPanelManager.SHOW_MODE.BringInForward);
				}
			}
			else
				Invoke("DoLoadScene", delay);
		}
	}
开发者ID:jordan1818,项目名称:JumpsterProject,代码行数:32,代码来源:UIBtnLoadScene.cs

示例5: onInput

	void onInput(ref POINTER_INFO ptr)
	{
		if(_gestures == null)
			_gestures = GameObject.FindGameObjectWithTag("UserHitbox").GetComponent<Gestures>();
		
		switch(ptr.evt)
		{
			case POINTER_INFO.INPUT_EVENT.PRESS:
				_gestures.onBeginTouch();
				Debug.Log("STARTED TO HOVER!");
				_hovering = true;
				break;
			case POINTER_INFO.INPUT_EVENT.NO_CHANGE:
				if(_hovering)
				{
					_hoverTime += Time.deltaTime;
					if(_hoverTime >= hoverTime)
					{
						_hovering = false;
						_hoverTime = 0;
						doHover();
					}
				}
				break;
			default:
				_hovering = false;
				_hoverTime = 0;
				break;
		}
	}
开发者ID:pocdev,项目名称:solar-sail,代码行数:30,代码来源:Hover.cs

示例6: FaceBookBtnDelegate

	private void FaceBookBtnDelegate( ref POINTER_INFO ptr)
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{
			Debug.Log( "FaceBookBtnDelegate");
			AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);

			if (ArkQuestmanager.instance.CheckHaveOpenUIType(OpenUIType.OPEN_FACEBOOK) != null)
				AsCommonSender.SendClearOpneUI(OpenUIType.OPEN_FACEBOOK);

			if( AsSocialManager.Instance.IsLoginFacebook())
			{
				if( AsSocialManager.Instance.getSessionPermissions())
					AsSocialManager.Instance.PostMessageFacebook( m_strArticle, m_data.nCharUniqKey, m_data.nSubTitleIdx);
				else
					AsSocialManager.Instance.reauthorizeWithPublishPermissions();
			//	AsCommonSender.SendSocialHistoryRegister( m_data.nCharUniqKey, m_data.nSubTitleIdx, ( int)eSOCIAL_HISTORY_PLATFORM.eSOCIAL_HISTORY_PLATFORM_FACEBOOK);
			}
			else
			{
				Debug.Log( "FaceBookBtnDelegate::LoginFacebook()");
				AsSocialManager.Instance.LoginFacebook();
			}
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:25,代码来源:AsGameHistoryItem.cs

示例7: DetectSwipe

	void DetectSwipe (ref POINTER_INFO ptr) {
		if (ptr.active && !swiped) {
			Debug.Log (title + ": ptr.active && !swiped");
			if (swipeOnYAxis) {
				if (ptr.origPos.y - ptr.devicePos.y < -swipeThreshold) {
					Debug.Log (title + ": Swipe Detected! UP");

					swiped = true;
				}
				if (ptr.origPos.y - ptr.devicePos.y > swipeThreshold) {
					Debug.Log (title + ": Swipe Detected! DOWN");

					swiped = true;
				}
			} else {
				if (ptr.origPos.x - ptr.devicePos.x > swipeThreshold) {
					Debug.Log (title + ": Swipe Detected! LEFT");
					_toggle.SetToggleState(0);
					_toggle.soundToPlay.Play();
					swiped = true;
				}
				if (ptr.origPos.x - ptr.devicePos.x < -swipeThreshold) {
					Debug.Log (title + ": Swipe Detected! RIGHT");
					_toggle.SetToggleState(1);
					_toggle.soundToPlay.Play();
					swiped = true;
				}
			}
		}
		if (ptr.evt == POINTER_INFO.INPUT_EVENT.RELEASE || ptr.evt == POINTER_INFO.INPUT_EVENT.RELEASE_OFF) {
			swiped = false;
//			Debug.Log (title + ": Swiped = " + swiped);
		}
	}
开发者ID:pocdev,项目名称:ar,代码行数:34,代码来源:SwipeDetection.cs

示例8: OnEventBtnClick

	void OnEventBtnClick( ref POINTER_INFO ptr)
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{
			DestroyWindow();
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:7,代码来源:ReturnBonusWindow.cs

示例9: MiracleBtnDelegate

	private void MiracleBtnDelegate( ref POINTER_INFO ptr )
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{	
			AsSoundManager.Instance.PlaySound( "Sound/Interface/S6110_EFF_MiracleBuy_Popup", Vector3.zero, false);

			if( AsUserInfo.Instance.nMiracle < costMiracle )
			{
				string title = AsTableManager.Instance.GetTbl_String(1412);
				string content = AsTableManager.Instance.GetTbl_String(368);
				
				//KB
				if (AsGameMain.useCashShop == true)
					AsNotify.Instance.MessageBox(title, content, this, "OpenCashShop", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION);
				else
					AsNotify.Instance.MessageBox(title, content, AsNotify.MSG_BOX_TYPE.MBT_OK);
			}
			else
			{
				cosSynthesisDlg.ExcuteUpgrade( 0 , costMiracle );
			}

			Close ();
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:25,代码来源:AsSynthesisUpgradePopup.cs

示例10: OKBtnDelegate

	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);
			CloseDlg();

			//	send request reward server
			if( rewardType == eDesignationRewardType.Normal )
			{
				body_CS_SUBTITLE_INDEX_REWARD subtitleIndexReward = new body_CS_SUBTITLE_INDEX_REWARD( designationID );
				byte[] data = subtitleIndexReward.ClassToPacketBytes();
				AsNetworkMessageHandler.Instance.Send( data);
			}
			else if( rewardType == eDesignationRewardType.Accrue )
			{
				int nLastReceiveRewardRankPoint = AsDesignationRankRewardManager.Instance.LastReceiveRewardRankPoint;
				DesignationRankRewardData nextRankRewardData = AsDesignationRankRewardManager.Instance.GetNextRankRewardData (nLastReceiveRewardRankPoint);

				body_CS_SUBTITLE_ACCRUE_REWARD subtitleAccrueReward = new body_CS_SUBTITLE_ACCRUE_REWARD( nextRankRewardData.id );
				byte[] data = subtitleAccrueReward.ClassToPacketBytes();
				AsNetworkMessageHandler.Instance.Send( data);
			}

			AsDesignationManager.Instance.SendRequestReward = true;
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:27,代码来源:AsDesignationRewardDlg.cs

示例11: DoNeccessaryInput

	// Necessary input processing that is required
	// if the control is disabled:
	protected void DoNeccessaryInput(ref POINTER_INFO ptr)
	{
		switch (ptr.evt)
		{
			case POINTER_INFO.INPUT_EVENT.NO_CHANGE:
				if (list != null && ptr.active)
					list.ListDragged(ptr);
				break;
			case POINTER_INFO.INPUT_EVENT.DRAG:
				if (list != null && !ptr.isTap)
					list.ListDragged(ptr);
				break;
			case POINTER_INFO.INPUT_EVENT.TAP:
			case POINTER_INFO.INPUT_EVENT.RELEASE:
			case POINTER_INFO.INPUT_EVENT.RELEASE_OFF:
				if (list != null)
					list.PointerReleased();
				break;
		}

		// Apply any mousewheel scrolling to our list:
		if (list != null && ptr.inputDelta.z != 0 && ptr.type != POINTER_INFO.POINTER_TYPE.RAY)
		{
			list.ScrollWheel(ptr.inputDelta.z);
		}

		if (Container != null)
		{
			ptr.callerIsControl = true;
			Container.OnInput(ptr);
		}
	}
开发者ID:jordan1818,项目名称:JumpsterProject,代码行数:34,代码来源:UIListItem.cs

示例12: OnInput

	public override void OnInput(ref POINTER_INFO ptr)
	{
		base.OnInput(ref ptr);

		if (!m_controlIsEnabled)
		{
			return;
		}

		switch(ptr.evt)
		{
			case POINTER_INFO.INPUT_EVENT.PRESS:
				// Save this input point:
				prevPoint = GetLocalInputPoint(ptr.ray);
				break;

			case POINTER_INFO.INPUT_EVENT.DRAG:
				inputPoint = GetLocalInputPoint(ptr.ray);

				dist = inputPoint.x - prevPoint.x;

				// Save this as our previous point:
				prevPoint = inputPoint;

				newPos = transform.localPosition;
				newPos.x = Mathf.Clamp(newPos.x + dist, origPos.x, origPos.x + maxScrollPos);

				transform.localPosition = newPos;
				prevPoint.x = Mathf.Clamp(prevPoint.x, origPos.x - colliderExtent, origPos.x + colliderExtent + maxScrollPos);

				// Inform the slider that we've moved:
				slider.ScrollKnobMoved(this, GetScrollPos());
				break;
		}
	}
开发者ID:juliancruz87,项目名称:Ataraxia,代码行数:35,代码来源:UIScrollKnob.cs

示例13: ButtonInputProcess

    void ButtonInputProcess( ref POINTER_INFO ptr)
    {
        if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
        {
			if (AsUserInfo.Instance.IsDied())
				return;

			AsChatFullPanel.Instance.Close();
			
            ArkQuest wantedQuest = ArkQuestmanager.instance.GetWantedQuest();

            if( wantedQuest != null)
            {
                if (AsEntityManager.Instance.UserEntity.GetProperty<bool>(eComponentProperty.SHOP_OPENING) == true)
                    AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(365));
                else
                {
                    AsHudDlgMgr.Instance.OpenQuestAcceptUI(wantedQuest.GetQuestData(), true);
                    CancelBlink();
                }
            }
            else
                Debug.Log( "wanted quest is null");
        }
    }
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:25,代码来源:QuestWantedBtnControll.cs

示例14: LearnBtnDelegate

	private void LearnBtnDelegate( ref POINTER_INFO ptr )
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{		
			if( false != AsHudDlgMgr.Instance.productionDlg.isOpenMessageBox )
				return;
			
			
			string strTitle = AsTableManager.Instance.GetTbl_String( 126 );
			
			//m_sbLearn.Remove( 0, m_sbLearn.Length );
			//m_sbLearn.Append( string.Format( AsTableManager.Instance.GetTbl_String( 262 ), GetName(getProductTechType) ) );
			//m_sbLearn.Append( GetTypeString( getProductTechType ) );
			//m_sbLearn.Append( "\n" );
			//m_sbLearn.Append( Color.red );
			//m_sbLearn.Append( AsTableManager.Instance.GetTbl_String( 1334 ) );
			
			
			//string strText = string.Format( AsTableManager.Instance.GetTbl_String( 262 ), GetName(getProductTechType) ) + "\n" + 
			//	Color.red.ToString() + AsTableManager.Instance.GetTbl_String( 1334 );			
			
			AsHudDlgMgr.Instance.productionDlg.SetMessageBox( AsNotify.Instance.MessageBox( strTitle, GetTypeString( getProductTechType ), this, "SendLearn", 
				AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION) ); 
			
			AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);							
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:27,代码来源:ProductionTechItemDef.cs

示例15: ReturnToGymButtonDelegate

	void ReturnToGymButtonDelegate(ref POINTER_INFO pointer)
	{
		if (pointer.evt == GameValues.defaultInputEvent)	
		{
			LevelManager.LoadNewLevel("PersonalGym");
		}
	}
开发者ID:adahera222,项目名称:properme,代码行数:7,代码来源:CompetitionArea.cs


注:本文中的POINTER_INFO类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。