Exemple #1
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);
        }
Exemple #2
0
 public void Generate_Preview(bool skipundo = false)
 {
     if (Stat != Kernel_bin.Stat.None && CURSOR_SELECT < Contents.Length)
     {
         Cursor_Status |= Cursor_Status.Enabled;
         if (Source.Stat_J[Stat] != Contents[CURSOR_SELECT])
         {
             if (!skipundo)
             {
                 Undo();
                 skipundo = false;
             }
             Source.JunctionSpell(Stat, Contents[CURSOR_SELECT]);
             SlotRefreshListener?.Invoke(this, Damageable);
         }
     }
 }