本文整理汇总了C#中IUIObject类的典型用法代码示例。如果您正苦于以下问题:C# IUIObject类的具体用法?C# IUIObject怎么用?C# IUIObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUIObject类属于命名空间,在下文中一共展示了IUIObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: SliderMoved
// Is called when the optional slider control
// is moved.
public void SliderMoved(IUIObject slider)
{
ScrollListTo_Internal(((UISlider)slider).Value);
}
开发者ID:nbolabs,项目名称:KnifeLi,代码行数:6,代码来源:UIScrollList.cs
示例17: OnSaveButtonClick
public void OnSaveButtonClick(IUIObject obj)
{
EditorSaveToFile();
}
开发者ID:erendrake,项目名称:AGExt,代码行数:4,代码来源:Editor.cs
示例18: ChangeVolume
void ChangeVolume(IUIObject volumeSlider)
{
Save.Set(PlayerPrefsKeys.VOLUME.ToString(), soundVolumeSlider.Value, true);
}
开发者ID:uptopgames,项目名称:Minesweeper,代码行数:4,代码来源:Options.cs
示例19: DidClick
// Called by a list button when it is clicked
public void DidClick(IUIObject item)
{
lastClickedControl = item;
if (scriptWithMethodToInvoke != null)
scriptWithMethodToInvoke.Invoke(methodToInvokeOnSelect, 0);
if (changeDelegate != null)
changeDelegate(this);
}
开发者ID:nbolabs,项目名称:KnifeLi,代码行数:10,代码来源:UIScrollList.cs
示例20: AddControl
/// <summary>
/// Adds a control to be processed by the screen.
/// </summary>
/// <param name="obj">The control to be processed.</param>
public void AddControl(IUIObject obj)
{
if (obj == null)
return;
controls.Add(obj);
obj.AddInputDelegate(InputProcessor);
}
开发者ID:raxter,项目名称:6-Fold-Mass-Production,代码行数:12,代码来源:UIVirtualScreen.cs
注:本文中的IUIObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论