Beispiel #1
0
 public override bool Inputs_OKAY()
 {
     if (Battle)
     {
         Target_Group.SelectTargetWindows(Kernel_bin.MagicData[Contents[CURSOR_SELECT]]);
         Target_Group.ShowTargetWindows();
     }
     else
     if (Memory.State.Characters != null)
     {
         if (!BLANKS[CURSOR_SELECT])
         {
             skipsnd = true;
             init_debugger_Audio.PlaySound(31);
             base.Inputs_OKAY();
             SlotConfirmListener?.Invoke(this, (IGM_Junction.Mode)Menu.IGM_Junction.GetMode());
             if (Menu.IGM_Junction.GetMode().Equals(IGM_Junction.Mode.Mag_Pool_Stat))
             {
                 Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_Stat);
             }
             else if (Menu.IGM_Junction.GetMode().Equals(IGM_Junction.Mode.Mag_Pool_EL_A) || Menu.IGM_Junction.GetMode().Equals(IGM_Junction.Mode.Mag_Pool_EL_D))
             {
                 Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_EL_A);
             }
             else if (Menu.IGM_Junction.GetMode().Equals(IGM_Junction.Mode.Mag_Pool_ST_A) || Menu.IGM_Junction.GetMode().Equals(IGM_Junction.Mode.Mag_Pool_ST_D))
             {
                 Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_ST_A);
             }
             Cursor_Status &= ~Cursor_Status.Enabled;
             Menu.IGM_Junction.Refresh();
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
        public override bool Inputs_CANCEL()
        {
            if (Memory.State.Characters != null)
            {
                base.Inputs_CANCEL();
                if (Battle)
                {
                    Hide();
                    return(true);
                }
                else
                {
                    SlotUndoListener?.Invoke(this, (IGM_Junction.Mode)Menu.IGM_Junction.GetMode());
                    SlotConfirmListener?.Invoke(this, (IGM_Junction.Mode)Menu.IGM_Junction.GetMode());
                    SlotRefreshListener?.Invoke(this, Damageable);
                    switch (SortMode)
                    {
                    case IGM_Junction.Mode.Mag_Pool_Stat:
                        Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_Stat);
                        break;

                    case IGM_Junction.Mode.Mag_Pool_EL_A:
                        Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_EL_A);
                        break;

                    case IGM_Junction.Mode.Mag_Pool_EL_D:
                        Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_EL_D);
                        break;

                    case IGM_Junction.Mode.Mag_Pool_ST_A:
                        Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_ST_A);
                        break;

                    case IGM_Junction.Mode.Mag_Pool_ST_D:
                        Menu.IGM_Junction.SetMode(IGM_Junction.Mode.Mag_ST_D);
                        break;
                    }

                    Cursor_Status &= ~Cursor_Status.Enabled;
                    if (Damageable.GetCharacterData(out Saves.CharacterData c))
                    {
                        Source = c;
                    }

                    return(true);
                }
            }

            return(false);
        }