private void OnTriggerClick(GameObject go) { if (UIKeyTrigger.IsOnlyTouchAndLeftClick()) { this.ListPopulator.itemClicked(go); } }
protected virtual void OnPress(Boolean isDown) { if (this.KeyCommand != Control.None && UIKeyTrigger.IsOnlyTouchAndLeftClick()) { if (isDown) { UIManager.Input.SendKeyCode(this.KeyCommand, false); PersistenSingleton <HonoInputManager> .Instance.SetInputDownSources(SourceControl.Touch, this.KeyCommand); Singleton <DialogManager> .Instance.PressMesId = PersistenSingleton <UIManager> .Instance.Dialogs.CurMesId; } else { this.isPress = false; Boolean flag = false; if (UICamera.currentTouchID == -1) { flag = true; } else if (UICamera.currentTouchID > -1 && UICamera.currentTouchID < 2) { flag = (!(this.buttonGroupState != (UnityEngine.Object)null) || this.buttonGroupState.ProcessTouch()); } if (flag) { UICamera.Notify(PersistenSingleton <UIManager> .Instance.gameObject, "OnScreenButtonPressed", base.gameObject); } UIManager.Input.ResetKeyCode(); Singleton <DialogManager> .Instance.ReleaseMesId = PersistenSingleton <UIManager> .Instance.Dialogs.CurMesId; } } }
private void OnPress(Boolean isDown) { if (UIKeyTrigger.IsOnlyTouchAndLeftClick()) { this.ListPopulator.itemIsPressed(this.ItemDataIndex, isDown); } }
private void OnClick() { if (UIKeyTrigger.IsOnlyTouchAndLeftClick()) { this.ListPopulator.itemClicked(this.ItemDataIndex); } }
private void onClick(GameObject go) { if (UIKeyTrigger.IsOnlyTouchAndLeftClick()) { UIManager.Battle.VerifyTarget(go.GetComponent <ModelButton>().index); } }
protected virtual void OnDragOver(GameObject draggedObject) { if (!base.gameObject) { return; } if (ButtonGroupState.secondaryGroup.Contains(this.GroupName)) { return; } if (base.enabled && UIKeyTrigger.IsOnlyTouchAndLeftClick() && ButtonGroupState.activeGroup != String.Empty && base.gameObject.GetComponent <UIDragScrollView>() == (UnityEngine.Object)null) { ButtonGroupState.ActiveButtonChanged(base.gameObject, true); } }
protected virtual void OnClick() { if (!base.gameObject) { return; } if (ButtonGroupState.secondaryGroup.Contains(this.GroupName)) { return; } if (base.enabled && UIKeyTrigger.IsOnlyTouchAndLeftClick()) { this.SetHover(false); } }