Esempio n. 1
0
 private bool Undo()
 {
     SlotUndoListener?.Invoke(this, (IGM_Junction.Mode)(Menu.IGM_Junction.GetMode()));
     if (Memory.State.Characters != null && Damageable.GetCharacterData(out Saves.CharacterData c))
     {
         Source = c;
     }
     return(true);
 }
Esempio n. 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);
        }