예제 #1
0
        public void Cancel()
        {
            if (TargetSystem.Showing)
            {
                TargetSystem.Hide();
                if (ActionMenu.ActiveAction.Options.Count() == 1)
                {
                    ActionMenu.Show();
                    HealthCounter.Show();
                }
                else
                {
                    OptionsListMenu.Show(ActionMenu.ActiveAction.Options);
                }

                /*
                 * ActionMenu.Hide();
                 * OptionsListMenu.Show(ActionMenu.ActiveAction.Options);
                 * ActiveOption = OptionsListMenu.Active;
                 *
                 *  ActiveOption = OptionsListMenu.Active;
                 * OptionsListMenu.Hide();
                 * TargetSystem.Show(ActiveOption);
                 *
                 */
            }
            else if (OptionsListMenu.Showing)
            {
                OptionsListMenu.Hide();
                ActionMenu.Start();
                HealthCounter.Show();
            }
        }
예제 #2
0
 public void MoveTargetUp()
 {
     if (OptionsListMenu.Showing)
     {
         OptionsListMenu.MoveTargetUp();
         ActiveOption = OptionsListMenu.Active;
     }
     if (ActionMenu.Showing)
     {
         ActionMenu.MoveTargetUp();
     }
 }
예제 #3
0
 public void ExecuteFromOptionMenu()
 {
     ActiveOption = OptionsListMenu.Active;
     if (OptionsListMenu.Active is ChangeMemberOption memberOptions)
     {
         SubOptionsListMenu.Show(memberOptions.PartnerOptions);
     }
     else
     {
         OptionsListMenu.Hide();
         TargetSystem.Show(ActiveOption);
     }
 }
예제 #4
0
 public void MoveTargetDown()
 {
     if (SubOptionsListMenu.Showing)
     {
         SubOptionsListMenu.MoveTargetDown();
         ActiveOption = SubOptionsListMenu.Active;
     }
     else if (OptionsListMenu.Showing)
     {
         OptionsListMenu.MoveTargetDown();
         ActiveOption = OptionsListMenu.Active;
     }
     if (ActionMenu.Showing)
     {
         ActionMenu.MoveTargetDown();
     }
 }
예제 #5
0
 public void ShowTargeting(IOption active)
 {
     ActiveOption = active;
     OptionsListMenu.Hide();
     TargetSystem.Show(active);
 }
예제 #6
0
 public void ShowOptionsMenu()
 {
     ActionMenu.Hide();
     OptionsListMenu.Show(ActionMenu.ActiveAction.Options);
     ActiveOption = OptionsListMenu.Active;
 }