Example #1
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    AV.Sound.Play(31);
                    base.Inputs_OKAY();
                    if (Damageable.GetCharacterData(out var c))
                    {
                        c.RemoveAll();
                    }
                    Junction.Data[SectionName.RemAll].Hide();
                    Junction.Data[SectionName.TopMenu_Off].Hide();
                    Junction.SetMode(Mode.TopMenu);
                    ((IGMData.Base)Junction.Data[SectionName.TopMenu]).CURSOR_SELECT = 0;
                    Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }
            public override bool Inputs_OKAY()
            {
                if (Damageable.GetCharacterData(out var c))
                {
                    switch (CURSOR_SELECT)
                    {
                    case 0:
                        c.AutoATK();
                        break;

                    case 1:
                        c.AutoDEF();
                        break;

                    case 2:
                        c.AutoMAG();
                        break;

                    default: return(false);
                    }
                }
                skipsnd = true;
                AV.Sound.Play(31);
                Inputs_CANCEL();
                Junction.Refresh();
                return(true);
            }
Example #3
0
 public override void Inputs_Menu()
 {
     skipdata = true;
     base.Inputs_Menu();
     skipdata = false;
     if (Contents[CURSOR_SELECT] == Stat.None && Damageable.GetCharacterData(out var c))
     {
         c.StatJ[Contents[CURSOR_SELECT]] = 0;
         Junction.Refresh();
     }
 }
Example #4
0
            public override bool Inputs_OKAY()
            {
                var ret = base.Inputs_OKAY();

                FadeIn();
                switch (_choice)
                {
                case Items.Junction:
                    Menu.Module.State = MenuModule.Mode.IGM_Junction;
                    Junction.Refresh(_contents[CURSOR_SELECT], true);
                    return(true);
                }
                return(ret);
            }
Example #5
0
 public override bool Inputs_OKAY()
 {
     if (Contents[CURSOR_SELECT] != Kernel.Abilities.None && !BLANKS[CURSOR_SELECT] && Damageable.GetCharacterData(out var c))
     {
         skipsnd = true;
         AV.Sound.Play(31);
         base.Inputs_OKAY();
         var target = ((IGMData.Base)Junction.Data[SectionName.TopMenu_Abilities]).CURSOR_SELECT - 4;
         c.Abilities[target] = Contents[CURSOR_SELECT];
         Junction.SetMode(Mode.Abilities);
         Junction.Refresh(); // can be more specific if you want to find what is being changed.
         return(true);
     }
     return(false);
 }
Example #6
0
            public override void Inputs_Menu()
            {
                skipdata = true;
                base.Inputs_Menu();
                skipdata = false;

                if (Commands != null && Damageable.GetCharacterData(out var c))
                {
                    if (CURSOR_SELECT < Commands.Count)
                    {
                        c.Commands[CURSOR_SELECT - 1] = Kernel.Abilities.None;
                        Junction.Data[SectionName.TopMenu_Abilities].Refresh();
                        Junction.Data[SectionName.Commands].Refresh();
                    }
                    else
                    {
                        c.Abilities[CURSOR_SELECT - Commands.Count] = Kernel.Abilities.None;
                        Junction.Refresh();
                    }
                }
            }
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    AV.Sound.Play(31);
                    base.Inputs_OKAY();
                    if (Damageable.GetCharacterData(out var c))
                    {
                        c.RemoveMagic();
                    }
                    Inputs_CANCEL();
                    Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }