Beispiel #1
0
 private void OnTriggerClick(GameObject go)
 {
     if (UIKeyTrigger.IsOnlyTouchAndLeftClick())
     {
         this.ListPopulator.itemClicked(go);
     }
 }
Beispiel #2
0
    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;
            }
        }
    }
Beispiel #3
0
 private void OnPress(Boolean isDown)
 {
     if (UIKeyTrigger.IsOnlyTouchAndLeftClick())
     {
         this.ListPopulator.itemIsPressed(this.ItemDataIndex, isDown);
     }
 }
Beispiel #4
0
 private void OnClick()
 {
     if (UIKeyTrigger.IsOnlyTouchAndLeftClick())
     {
         this.ListPopulator.itemClicked(this.ItemDataIndex);
     }
 }
Beispiel #5
0
 private void onClick(GameObject go)
 {
     if (UIKeyTrigger.IsOnlyTouchAndLeftClick())
     {
         UIManager.Battle.VerifyTarget(go.GetComponent <ModelButton>().index);
     }
 }
Beispiel #6
0
 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);
     }
 }
Beispiel #7
0
 protected virtual void OnClick()
 {
     if (!base.gameObject)
     {
         return;
     }
     if (ButtonGroupState.secondaryGroup.Contains(this.GroupName))
     {
         return;
     }
     if (base.enabled && UIKeyTrigger.IsOnlyTouchAndLeftClick())
     {
         this.SetHover(false);
     }
 }