Exemple #1
0
            public static T Create <T>(int count, int depth, Menu_Base container = null, int?cols = null, int?rows = null) where T : IGMData_Slots <C>, new()
            {
                T r = IGMData.Base.Create <T>(count, depth, container, cols, rows);

                r.Contents = new Kernel_bin.Stat[r.Count];
                return(r);
            }
Exemple #2
0
                public IGMData_PartyItems(Menu_Base container) : base()
                {
                    str_NotFound       = Memory.Strings.Read(Strings.FileID.KERNEL, 30, 28);
                    str_Over100        = Memory.Strings.Read(Strings.FileID.KERNEL, 30, 24);
                    str_Recieved       = Memory.Strings.Read(Strings.FileID.KERNEL, 30, 6);
                    DialogSelectedItem = new byte[] { (byte)FF8TextTagCode.Dialog, (byte)FF8TextTagDialog.SelectedItem };

                    Init(1, 7, container, 1, 1);
                }
 public IGMData_PartyAP(Menu_Base container) : base()
 {
     DialogSelectedGF      = new byte[] { (byte)FF8TextTagCode.Dialog, (byte)FF8TextTagDialog.SelectedGF };
     DialogSelectedNum     = new byte[] { (byte)FF8TextTagCode.Dialog, (byte)FF8TextTagDialog.Number };
     DialogSelectedAbility = new byte[] { (byte)FF8TextTagCode.Dialog, (byte)FF8TextTagDialog.SelectedGFAbility };
     DialogSelectedIcon    = new byte[] { (byte)FF8TextTagCode.Dialog, (byte)FF8TextTagDialog.CustomICON };
     str_Levelup           =
         Memory.Strings.Read(Strings.FileID.KERNEL, 30, 121) +
         DialogSelectedGF + " " +
         Memory.Strings.Read(Strings.FileID.KERNEL, 30, 32);
     str_Learn =
         Memory.Strings.Read(Strings.FileID.KERNEL, 30, 121) +
         DialogSelectedGF + "\n  " +
         Memory.Strings.Read(Strings.FileID.KERNEL, 30, 120) + "\n     " +
         DialogSelectedIcon + " " +
         DialogSelectedAbility +
         Memory.Strings.Read(Strings.FileID.KERNEL, 30, 118);
     str_GF_AP = Memory.Strings.Read(Strings.FileID.KERNEL, 30, 109);
     Leveled   = new Queue <GFs>();
     Init(1, 7, container, 1, 1);
 }
Exemple #4
0
        protected override void Init()
        {
            NoInputOnUpdate = true;
            Size            = new Vector2(881, 606);
            base.Init();
            var tmp = new Menu_Base[3];

            var actions = new Action[]
            {
                () => Data.TryAdd(Mode.All, Base.Create(
                                      new Box {
                    Data = new FF8String(new[] {
                        (byte)FF8TextTagCode.Key,
                        (byte)FF8TextTagKey.Confirm
                    }) +
                           "  " +
                           (Strings.Name.To_confirm),
                    Pos = new Rectangle(0, (int)Size.Y - 78, (int)Size.X, 78), Options = Box_Options.Center | Box_Options.Middle
                })),

                () => tmp[0] = IGMData.PlayerExp.Create(0),
                () => tmp[1] = IGMData.PlayerExp.Create(1),
                () => tmp[2] = IGMData.PlayerExp.Create(2),
                () => Data.TryAdd(Mode.Items, PartyItems.Create(new Rectangle(Point.Zero, Size.ToPoint()))),
                () => Data.TryAdd(Mode.AP, PartyAP.Create(new Rectangle(Point.Zero, Size.ToPoint())))
            };

            Memory.ProcessActions(actions);

            Data.TryAdd(Mode.Exp, PlayerEXP.Create(tmp));
            Data[Mode.Exp].CONTAINER.Pos = new Rectangle(Point.Zero, Size.ToPoint());
            SetMode(Mode.Exp);
            InputFunctions = new Dictionary <Mode, Func <bool> >
            {
                { Mode.Exp, Data[Mode.Exp].Inputs },
                { Mode.Items, Data[Mode.Items].Inputs },
                { Mode.AP, Data[Mode.AP].Inputs }
            };
        }
Exemple #5
0
        protected override void Init()
        {
            NoInputOnUpdate = true;
            Size            = new Vector2(881, 606);
            base.Init();
            Menu_Base[] tmp = new Menu_Base[3];

            List <Task> tasks = new List <Task>
            {
                Task.Run(() => Data.TryAdd(Mode.All, IGMData.Group.Base.Create(
                                               new IGMDataItem.Box {
                    Data = new FF8String(new byte[] {
                        (byte)FF8TextTagCode.Key,
                        (byte)FF8TextTagKey.Confirm
                    }) +
                           "  " +
                           (Strings.Name.To_confirm),
                    Pos = new Rectangle(0, (int)Size.Y - 78, (int)Size.X, 78), Options = Box_Options.Center | Box_Options.Middle
                }))),

                Task.Run(() => tmp[0] = IGMData.PlayerEXP.Create(0)),
                Task.Run(() => tmp[1] = IGMData.PlayerEXP.Create(1)),
                Task.Run(() => tmp[2] = IGMData.PlayerEXP.Create(2)),
                Task.Run(() => Data.TryAdd(Mode.Items, IGMData.PartyItems.Create(new Rectangle(Point.Zero, Size.ToPoint())))),
                Task.Run(() => Data.TryAdd(Mode.AP, IGMData.PartyAP.Create(new Rectangle(Point.Zero, Size.ToPoint())))),
            };

            Task.WaitAll(tasks.ToArray());
            Data.TryAdd(Mode.Exp, IGMData.Group.PlayerEXP.Create(tmp));
            Data[Mode.Exp].CONTAINER.Pos = new Rectangle(Point.Zero, Size.ToPoint());
            SetMode(Mode.Exp);
            InputFunctions = new Dictionary <Mode, Func <bool> >
            {
                { Mode.Exp, Data[Mode.Exp].Inputs },
                { Mode.Items, Data[Mode.Items].Inputs },
                { Mode.AP, Data[Mode.AP].Inputs }
            };
        }
Exemple #6
0
        protected override void Init()
        {
            SetMode((Mode)0);
            Size = new Vector2 {
                X = 840, Y = 630
            };

            Menu_Base[] tmp   = new Menu_Base[9];
            List <Task> tasks = new List <Task>
            {
                Task.Run(() => tmp[0] = IGMData_Mag_Stat_Slots.Create()),
                Task.Run(() => tmp[1] = IGMData_Mag_PageTitle.Create()),
                Task.Run(() => tmp[3] = IGMData_Mag_EL_A_D_Slots.Create()),
                Task.Run(() => tmp[2] = IGMData.Pool.Magic.Create()),
                Task.Run(() => tmp[4] = IGMData_Mag_EL_A_Values.Create()),
                Task.Run(() => tmp[5] = IGMData_Mag_EL_D_Values.Create()),
                Task.Run(() => tmp[6] = IGMData_Mag_ST_A_D_Slots.Create()),
                Task.Run(() => tmp[7] = IGMData_Mag_ST_A_Values.Create()),
                Task.Run(() => tmp[8] = IGMData_Mag_ST_D_Values.Create()),
                Task.Run(() => Data.TryAdd(SectionName.CharacterInfo, IGMData_CharacterInfo.Create())),
                Task.Run(() => Data.TryAdd(SectionName.Commands, IGMData.Commands.Create(new Rectangle(615, 150, 210, 192)))),
                Task.Run(() => Data.TryAdd(SectionName.Help, new IGMDataItem.HelpBox {
                    Data = Strings.Description.Junction, Pos = new Rectangle(15, 69, 810, 78), Title = Icons.ID.HELP
                })),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu, IGMData_TopMenu.Create())),
                Task.Run(() => Data.TryAdd(SectionName.Title, new IGMDataItem.Box {
                    Data = Strings.Name.Junction, Pos = new Rectangle(615, 0, 225, 66)
                })),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu_Junction, IGMData_TopMenu_Junction.Create())),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu_Off, IGMData.Group.TopMenu.Create(
                                               new IGMDataItem.Box {
                    Data = Strings.Name.Off, Pos = new Rectangle(0, 12, 169, 54), Options = Box_Options.Center | Box_Options.Middle
                },
                                               IGMData_TopMenu_Off.Create()
                                               ))),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu_Auto, IGMData.Group.TopMenu.Create(
                                               new IGMDataItem.Box {
                    Data = Strings.Name.Auto, Pos = new Rectangle(0, 12, 169, 54), Options = Box_Options.Center | Box_Options.Middle
                },
                                               IGMData_TopMenu_Auto.Create()))),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu_Abilities, IGMData_Abilities_Group.Create(
                                               IGMData.Slots.Command.Create(),
                                               IGMData.Slots.Abilities.Create(),
                                               IGMData_Abilities_CommandPool.Create(),
                                               IGMData_Abilities_AbilityPool.Create()))),
                Task.Run(() => Data.TryAdd(SectionName.TopMenu_GF_Group, IGMData_GF_Group.Create(
                                               IGMData_GF_Junctioned.Create(),
                                               IGMData.Pool.GF.Create(),
                                               new IGMDataItem.Box {
                    Pos = new Rectangle(440, 345, 385, 66)
                }
                                               ))),
                Task.Run(() => Data.TryAdd(SectionName.RemMag, IGMData_ConfirmRemMag.Create(data: Memory.Strings.Read(Strings.FileID.MNGRP, 2, 280), title: Icons.ID.NOTICE, opt1: Strings.Name.Yes, opt2: Strings.Name.No, pos: new Rectangle(180, 174, 477, 216)))),
                Task.Run(() => Data.TryAdd(SectionName.RemAll, IGMData_ConfirmRemAll.Create(data: Memory.Strings.Read(Strings.FileID.MNGRP, 2, 279), title: Icons.ID.NOTICE, opt1: Strings.Name.Yes, opt2: Strings.Name.No, pos: new Rectangle(170, 174, 583, 216)))),
                Task.Run(() => Data.TryAdd(SectionName.ConfirmChanges, IGMData_ConfirmChanges.Create(data: Memory.Strings.Read(Strings.FileID.MNGRP, 0, 73), title: Icons.ID.NOTICE, opt1: Strings.Name.Yes, opt2: Memory.Strings.Read(Strings.FileID.MNGRP, 2, 268), pos: new Rectangle(280, 174, 367, 216)))),
            };

            Task.WaitAll(tasks.ToArray());

            Data.TryAdd(SectionName.Mag_Group, IGMData_Mag_Group.Create(tmp));
            base.Init();
        }
Exemple #7
0
 public IGMData_Slots(int count, int depth, Menu_Base container = null, int?cols = null, int?rows = null) : base(count, depth, container, cols, rows) => Contents = new Kernel_bin.Stat[Count];
Exemple #8
0
 public static T Create <T>(int count, int depth, Menu_Base container = null, int?cols = null, int?rows = null) where T : IGMData_Values, new() =>
 IGMData.Base.Create <T>(count, depth, container, cols, rows);
 public IGMData_Values(int count, int depth, Menu_Base container = null, int?cols = null, int?rows = null) : base(count, depth, container, cols, rows)
 {
 }