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


C# IUIObject类代码示例

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


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

示例1: onClick

	void onClick(IUIObject obj)
	{
		if(onClickedHomeButton != null)
			onClickedHomeButton();
			
		Application.LoadLevel(0);
	}
开发者ID:pocdev,项目名称:ar,代码行数:7,代码来源:Home.cs

示例2: onClick

	void onClick(IUIObject obj)
	{
		_panel.Dismiss();
		
		if(onDismissed != null)
			onDismissed();
	}
开发者ID:pocdev,项目名称:solar-sail,代码行数:7,代码来源:DismissPopup.cs

示例3: OnObjectDoubleClick

        protected override void OnObjectDoubleClick(IUIObject obj)
        {
            Location_PropertyPageViewModel loc = obj as Location_PropertyPageViewModel;
            Debug.Assert(loc != null);

            AnnotationOverlay.GoToLocation(loc.modelObj);
        }
开发者ID:abordt,项目名称:Viking,代码行数:7,代码来源:ListLocations.cs

示例4: onClick

	void onClick(IUIObject obj)
	{
		Debug.Log("TOGGLE CLICKED");
		Color tempCameraColor = _cameraText.color;
		_cameraText.SetColor(_targetText.color);
		_targetText.SetColor(tempCameraColor);
	}
开发者ID:pocdev,项目名称:ar,代码行数:7,代码来源:SwipeDetection.cs

示例5: onClick

	void onClick(IUIObject obj)
	{
		if(!animation.IsPlaying(_onClickAnim.animClip.name))
		{
		 	animation.CrossFadeQueued(_onClickAnim.animClip.name,0.3f,QueueMode.PlayNow);
			if(_onClickAnim.audioSource != null)
				_onClickAnim.audioSource.Play();
		}
	}
开发者ID:pocdev,项目名称:ar,代码行数:9,代码来源:MinionAnimationController.cs

示例6: OnObjectDoubleClick

        protected override void OnObjectDoubleClick(IUIObject obj)
        {
            Structure s = obj as Structure;
            Debug.Assert(s != null);

            LocationObj centerLoc = s.Center;
            if(centerLoc != null)
                AnnotationOverlay.GoToLocation(centerLoc);
        }
开发者ID:abordt,项目名称:Viking,代码行数:9,代码来源:ListStructures.cs

示例7: onHit

	void onHit(IUIObject obj)
	{
		Debug.Log("Barrel Hit!");
		Vector3 randForce = Random.Range(0,1) > 0 ? Vector3.right : Vector3.left;
		randForce *= Random.Range(-500.0f,500.0f);
		
		obj.transform.rigidbody.AddForce((obj.transform.rigidbody.velocity + randForce) * -200);
		Destroy(this);
	}
开发者ID:pocdev,项目名称:ar,代码行数:9,代码来源:BarrelHit.cs

示例8: OnAvailListValueChanged

 /// <summary>
 /// Re-sort the list whenever it changes. (Callback)
 /// </summary>
 /// This is called when we click on a kerbal in the list, or when
 /// the red X next to a kerbal in the vessel crew is clicked.
 /// It is, unfortunately, not called when a kerbal is dragged into,
 /// out of, or within the list. The only way to detect that is to
 /// put an InputListener on each of those items, and that doesn't
 /// seem to give us a hook *after* the kerbal has been placed into
 /// the list, which means ATM we're SOL on really detecting drags.
 /// <param name="obj">?</param>
 protected void OnAvailListValueChanged(IUIObject obj)
 {
     try {
         sortBar.SortRoster();
     }
     catch( Exception e ) {
         Debug.LogError("KerbalSorter: Unexpected error in EditorHook: " + e);
     }
 }
开发者ID:Kerbas-ad-astra,项目名称:KerbalSorter,代码行数:20,代码来源:EditorHook.cs

示例9: GenericTreeNode

        public GenericTreeNode(IUIObject Obj)
            : base(Obj.ToString(), Obj.TreeImageIndex, Obj.TreeSelectedImageIndex)
        {
            this.Tag = Obj;
            Obj.AfterSave += new EventHandler(this.OnObjectSave);
            Obj.BeforeDelete += new EventHandler(this.OnObjectDelete);
            Obj.ChildChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(this.OnChildChanged);

            //Add a dummy node only if the object could have child nodes
            if(this.CanHaveChildren)
                this.Nodes.Add("Temporary Child Node");
        }
开发者ID:abordt,项目名称:Viking,代码行数:12,代码来源:GenericTreeNode.cs

示例10: scrollList_OnClick

	public void scrollList_OnClick(IUIObject obj)
	{
		Transform parentTransform = list.LastClickedControl.transform.parent;
		parentTransform.FindChild("RadioButton").GetComponent<UIRadioBtn>().Value = true;
		
		if(parentTransform == previouslyClickedTransform)
		{
			LaunchButtonController.Instance.onClick(null);
		}
		else
		{
			previouslyClickedTransform = parentTransform;
		}
	}
开发者ID:pocdev,项目名称:ar,代码行数:14,代码来源:ScrollListController.cs

示例11: ItemChanged

	private void ItemChanged( IUIObject obj)
	{
		IUIListObject data = (IUIListObject)obj;
		curDot.transform.position = dots[ data.Index].transform.position;
		Debug.Log( "Item index : " + data.Index);
		selIndex = data.Index;
		
		AsIntroNoticeDlgItem dlgItem = data.gameObject.GetComponent<AsIntroNoticeDlgItem>();
		Debug.Assert( null != dlgItem);
		if( string.Empty == dlgItem.data)
			detailBtn.SetControlState( UIButton.CONTROL_STATE.DISABLED);
		else
			detailBtn.SetControlState( UIButton.CONTROL_STATE.NORMAL);
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:14,代码来源:AsIntroNoticeDlg.cs

示例12: onPressed

	void onPressed(IUIObject obj)
	{
		_isPlaying = !_isPlaying;
		
		if(_isPlaying)
		{
			Debug.Log("PLAYING ANIMS");
			_scrubListener.startAnim(animationSpeed);
			_zoomPinch.resetScale();
		}
		else
		{
			Debug.Log("PAUSING ANIMS");			
			_scrubListener.stopAnim();
		}
	}
开发者ID:pocdev,项目名称:solar-sail,代码行数:16,代码来源:PlayButton.cs

示例13: Show

        protected static VikingForm Show(Dictionary<IUIObject, VikingForm> FormTable, System.Type FormType, IUIObject Object, System.Windows.Forms.Form ParentForm)
        {
            Debug.Assert(Object != null, "Cannot display properties for null object");
            if (Object == null)
                return null;

            VikingForm ShownForm;

            //return PropertySheetForm.Show(Object.Row, ParentForm);
            if (FormTable.ContainsKey(Object))
            {
                ShownForm = FormTable[Object] as VikingForm;
                ShownForm.Focus();
                return ShownForm;
            }

            return null;
        }
开发者ID:abordt,项目名称:Viking,代码行数:18,代码来源:VikingForm.cs

示例14: onClick

	public void onClick(IUIObject obj)
	{
		UIRadioBtn selectedRadioButton = (UIRadioBtn)RadioBtnGroup.GetSelected(0);
		
		if(selectedRadioButton == null)
			return;
		
		string levelName = selectedRadioButton.transform.parent.name;
		levelName = levelName.Substring(0,levelName.IndexOf('('));
		
		Debug.Log(string.Format("levelname is {0}",levelName.ToLower()));
				
		if(_toggle.StateName == "Camera")
		{
			_loadingLogo.enabled = true;
			_noPreviewAvailable.enabled = false;
			ImagePreview.Instance.Hide();
			
			if(levelName.ToLower() == "fandango")
			{
				Handheld.PlayFullScreenMovie("http://poc.bentlight.com/_content/fandango/Fandango/Fandango.mp4");
			}
			else if(levelName.ToLower() == "standalone")
			{
				string URL = (Application.platform == RuntimePlatform.OSXEditor) ? "http://www.google.com" : "POCARStandalone://";
				Application.OpenURL(URL);
			}
			else
			{
				StartCoroutine(doLevelLoad(levelName));
			}
		}
		else
		{
			_loadingLogo.enabled = false;
			ImagePreview.Instance.Show();
			_panelManager.MoveForward();
		}
		
	}
开发者ID:pocdev,项目名称:ar,代码行数:40,代码来源:LaunchButtonController.cs

示例15: OnLoadButtonClick

 public void OnLoadButtonClick(IUIObject obj)
 {
     EditorSaveToFile();
     checkShipsExist = true;
     //print("ship count1 ");
     //EditorStartPodDialog loadShipWin = FindObjectOfType<EditorStartPodDialog>();
     //print("ship count " + loadShipWin.availablePods.Count);
 }
开发者ID:erendrake,项目名称:AGExt,代码行数:8,代码来源:Editor.cs


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