Exemple #1
0
 private void OnDeselect(object sender, EventArgs e)
 {
     if (selected)
     {
         ActionPoint.HighlightAP(false);
         selected = false;
     }
 }
Exemple #2
0
 public override void OnClick(Click type)
 {
     if (!CheckClick())
     {
         return;
     }
     if (type == Click.MOUSE_RIGHT_BUTTON || type == Click.TOUCH)
     {
         ActionMenu.Instance.CurrentAction = this;
         MenuManager.Instance.ShowMenu(MenuManager.Instance.PuckMenu);
         selected = true;
         ActionPoint.HighlightAP(true);
     }
 }
Exemple #3
0
 public override void OnClick(Click type)
 {
     if (GameManager.Instance.GetEditorState() == GameManager.EditorStateEnum.SelectingAction)
     {
         GameManager.Instance.ObjectSelected(this);
         return;
     }
     if (GameManager.Instance.GetEditorState() != GameManager.EditorStateEnum.Normal)
     {
         return;
     }
     if (GameManager.Instance.GetGameState() != GameManager.GameStateEnum.ProjectEditor)
     {
         Notifications.Instance.ShowNotification("Not allowed", "Editation of action only allowed in project editor");
         return;
     }
     if (type == Click.MOUSE_RIGHT_BUTTON || (type == Click.TOUCH && !(ControlBoxManager.Instance.UseGizmoMove || ControlBoxManager.Instance.UseGizmoRotate)))
     {
         ActionMenu.Instance.CurrentAction = this;
         MenuManager.Instance.ShowMenu(MenuManager.Instance.PuckMenu);
         selected = true;
         ActionPoint.HighlightAP(true);
     }
 }
Exemple #4
0
 public override void CloseMenu()
 {
     selected = false;
     ActionPoint.HighlightAP(false);
     ActionParametersMenu.Instance.Hide();
 }