Esempio n. 1
0
            public override bool Inputs_OKAY()
            {
                base.Inputs_OKAY();
                // ReSharper disable once SwitchStatementHandlesSomeKnownEnumValuesWithDefault
                switch ((Items)CURSOR_SELECT)
                {
                case Items.Junction:
                case Items.Magic:
                case Items.Status:
                    IGM.SetMode(Mode.ChooseChar);
                    return(true);

                case Items.Item:
                    Menu.Module.State = MenuModule.Mode.IGM_Items;
                    IGMItems.Refresh();
                    return(true);

                case Items.Battle:
                    BattleMenus.CameFrom();
                    //Menu.Module.State = MenuModule.MainMenuStates.BattleMenu;
                    ModuleBattleDebug.ResetState();
                    Memory.Module = OpenVIII.Module.BattleDebug;
                    BattleMenus.Refresh();
                    FadeIn();
                    return(true);

                case Items.GF:
                    break;

                case Items.Ability:
                    break;

                case Items.Switch:
                    break;

                case Items.Card:
                    break;

                case Items.Config:
                    break;

                case Items.Tutorial:
                    break;

                case Items.Save:
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
                }
                return(false);
            }
Esempio n. 2
0
            public override bool Inputs_OKAY()
            {
                var ret = false;

                if (All)
                {
                    ret = Item.Use(Faces.ID.Blank);
                }
                else if (!BLANKS[CURSOR_SELECT])
                {
                    ret = Item.Use(Contents[CURSOR_SELECT]);
                }
                if (ret)
                {
                    base.Inputs_OKAY();
                    Fill();
                    IGMItems.Refresh(true);
                    return(true);
                }
                return(false);
            }
Esempio n. 3
0
 public override bool Inputs_CANCEL()
 {
     base.Inputs_CANCEL();
     IGMItems.SetMode(Mode.SelectItem);
     return(true);
 }
Esempio n. 4
0
 private static void Inputs_Okay_UseItem() => IGMItems?.SetMode(Mode.SelectItem);