本文整理汇总了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);
}
示例2: onClick
void onClick(IUIObject obj)
{
_panel.Dismiss();
if(onDismissed != null)
onDismissed();
}
示例3: OnObjectDoubleClick
protected override void OnObjectDoubleClick(IUIObject obj)
{
Location_PropertyPageViewModel loc = obj as Location_PropertyPageViewModel;
Debug.Assert(loc != null);
AnnotationOverlay.GoToLocation(loc.modelObj);
}
示例4: onClick
void onClick(IUIObject obj)
{
Debug.Log("TOGGLE CLICKED");
Color tempCameraColor = _cameraText.color;
_cameraText.SetColor(_targetText.color);
_targetText.SetColor(tempCameraColor);
}
示例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();
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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");
}
示例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;
}
}
示例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);
}
示例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();
}
}
示例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;
}
示例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();
}
}
示例15: OnLoadButtonClick
public void OnLoadButtonClick(IUIObject obj)
{
EditorSaveToFile();
checkShipsExist = true;
//print("ship count1 ");
//EditorStartPodDialog loadShipWin = FindObjectOfType<EditorStartPodDialog>();
//print("ship count " + loadShipWin.availablePods.Count);
}