• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# POINTER_INFO类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ClickDelegate

	protected override void ClickDelegate(ref POINTER_INFO pointer) 
    {
		if (isMoving == true)
			return;
		
		if (pointer.evt == GameValues.defaultInputEvent)
		{
			if (CameraControl.I.IsPinching == true)
				return;
			
			if (UserBase.I.CurrentExcercise != null) //if we are doing an excercise dont create a popup
			{
				if (isMoving == false) //create it if we are moving, because if we place a new piece of equipment while excercising we need to be able to place it.
				{
					OneButtonPopup temp= PopupManager.CreatePopup<OneButtonPopup>() as OneButtonPopup;
					temp.titleText.Text = "Woah!";
					temp.messageText.Text = "Already doing " + UserBase.I.CurrentExcercise.displayName;
					temp.cancelButton.Text = "Whoops";
					return;
				}
			}
			
			EquipmentPopup temp2 = PopupManager.CreatePopup<EquipmentPopup>(true) as EquipmentPopup;
			temp2.EquipmentToPopulateListFrom = this;
			temp2.Initialize();
		}
    }
开发者ID:adahera222,项目名称:properme,代码行数:27,代码来源:Item_Equipment.cs


示例17: YesButtonClicked

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


示例18: CoinButtonClickedDelegate

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


示例19: OnInput

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

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

		if (ptr.evt == whenToInvoke)
		{
			if (loadingPanel != null)
			{
				UIPanelManager mgr = (UIPanelManager)loadingPanel.Container;
				if (mgr is UIPanelManager && mgr != null)
				{
					loadingPanel.SetTempTransitionDelegate(LoadSceneDelegate);
					mgr.BringIn(loadingPanel);
				}
				else
				{
					Debug.LogWarning("No panel manager found for panel \"" + loadingPanel.name + "\"!");
				}
			}
			else
				Invoke("LoadScene", delay);
		}
	}
开发者ID:robert-irribarren,项目名称:TraumaOR,代码行数:26,代码来源:UIBtnLoadScene.cs


示例20: ConfirmBtnDelegate

	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);
			}
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:28,代码来源:UIPStoreMsgDlg.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PPos类代码示例发布时间:2022-05-24
下一篇:
C# POINT类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap