示例#1
0
 protected override void Init()
 {
     base.Init();
     Hide();
     ITEM[0, 0]     = new IGMDataItem.Box(Memory.Strings.Read(Strings.FileID.KERNEL, 30, 21), new Rectangle(SIZE[0].X, SIZE[0].Y, SIZE[0].Width, 78), Icons.ID.INFO, options: Box_Options.Middle);
     ITEM[0, 1]     = new IGMDataItem.Box(null, new Rectangle(SIZE[0].X + 140, SIZE[0].Y + 189, 475, 78), Icons.ID.ITEM, options: Box_Options.Middle);                      // item name
     ITEM[0, 2]     = new IGMDataItem.Box(null, new Rectangle(SIZE[0].X + 615, SIZE[0].Y + 189, 125, 78), Icons.ID.NUM_, options: Box_Options.Middle | Box_Options.Center); // item count
     ITEM[0, 3]     = new IGMDataItem.Box(null, new Rectangle(SIZE[0].X, SIZE[0].Y + 444, SIZE[0].Width, 78), Icons.ID.HELP, options: Box_Options.Middle);                  // item description
     ITEM[0, 4]     = new IGMData.Dialog.Small(null, SIZE[0].X + 232, SIZE[0].Y + 315, Icons.ID.NOTICE, Box_Options.Center | Box_Options.Middle, SIZE[0]);                  // Couldn't find any items
     ITEM[0, 5]     = new IGMData.Dialog.Small(null, SIZE[0].X + 230, SIZE[0].Y + 291, Icons.ID.NOTICE, Box_Options.Center, SIZE[0]);                                       // over 100 discarded
     ITEM[0, 6]     = new IGMData.Dialog.Small(null, SIZE[0].X + 232, SIZE[0].Y + 315, Icons.ID.NOTICE, Box_Options.Center, SIZE[0]);                                       // Recieved item
     Cursor_Status |= (Cursor_Status.Hidden | (Cursor_Status.Enabled | Cursor_Status.Static));
 }
示例#2
0
 protected override void Init()
 {
     Contents = new Damageable[Count];
     base.Init();
     for (int pos = 0; pos < Count; pos++)
     {
         ITEM[pos, 0] = new IGMDataItem.Box {
             Title = Icons.ID.STATUS
         };
         ITEM[pos, 1] = new IGMDataItem.Icon {
             Data = Icons.ID.Lv, Palette = 13
         };
         ITEM[pos, 2] = new IGMDataItem.Integer {
             Palette = 2, Faded_Palette = 0, Padding = 1, Spaces = 3
         };
         ITEM[pos, 3] = new IGMDataItem.Icon {
             Data = Icons.ID.HP2, Palette = 13
         };
         ITEM[pos, 4] = new IGMDataItem.Integer {
             Palette = 2, Faded_Palette = 0, Padding = 1, Spaces = 4
         };
         ITEM[pos, 5] = new IGMDataItem.Icon {
             Data = Icons.ID.Slash_Forward, Palette = 13
         };
         ITEM[pos, 6] = new IGMDataItem.Integer {
             Palette = 2, Faded_Palette = 0, Padding = 1, Spaces = 4
         };
         ITEM[pos, 7] = new IGMDataItem.Text {
         };
         ITEM[pos, 8] = new IGMDataItem.Integer {
             Palette = 2, Faded_Palette = 0, Padding = 1, Spaces = 9
         };
         ITEM[pos, 9] = new IGMDataItem.Icon {
             Data = Icons.ID.P, Palette = 2
         };
         ITEM[pos, 10] = new IGMDataItem.Integer {
             Palette = 2, Faded_Palette = 0, Padding = 1, Spaces = 9
         };
         ITEM[pos, 11] = new IGMDataItem.Icon {
             Data = Icons.ID.P, Palette = 2
         };
         for (int i = 0; i < Depth; i++)
         {
             ITEM[pos, i].Hide();
         }
     }
 }
示例#3
0
            private void ReInitCharacter(sbyte pos, Damageable damageable)
            {
                if (SIZE != null)
                {
                    if (damageable != null)
                    {
                        Contents[pos] = damageable;
                        float yoff = 6;

                        ITEM[pos, 0] = new IGMDataItem.Box(damageable.Name, title: Icons.ID.STATUS);
                        Tuple <Rectangle, Point, Rectangle> dims = DrawBox(SIZE[pos], ((IGMDataItem.Box)ITEM[pos, 0]).Data, options: Box_Options.SkipDraw);
                        Rectangle r = dims.Item3;
                        ((IGMDataItem.Box)ITEM[pos, 0]).Pos = dims.Item1;
                        CURSOR[pos] = dims.Item2;

                        r = dims.Item3;
                        r.Offset(184, yoff);
                        ITEM[pos, 1] = new IGMDataItem.Icon(Icons.ID.Lv, r, 13);

                        r = dims.Item3;
                        r.Offset((229), yoff);
                        ITEM[pos, 2] = new IGMDataItem.Integer(damageable.Level, r, 2, 0, 1, 3);

                        r = dims.Item3;
                        r.Offset(304, yoff);
                        ITEM[pos, 3] = new IGMDataItem.Icon(Icons.ID.HP2, r, 13);

                        r = dims.Item3;
                        r.Offset((354), yoff);
                        ITEM[pos, 4] = new IGMDataItem.Integer(damageable.CurrentHP(), r, 2, 0, 1, 4);

                        r = dims.Item3;
                        r.Offset(437, yoff);
                        ITEM[pos, 5] = new IGMDataItem.Icon(Icons.ID.Slash_Forward, r, 13);

                        r = dims.Item3;

                        r.Offset((459), yoff);
                        ITEM[pos, 6] = new IGMDataItem.Integer(damageable.MaxHP(), r, 2, 0, 1, 4);

                        if ((Memory.State.TeamLaguna || Memory.State.SmallTeam) && Damageable.GetCharacterData(out Saves.CharacterData c))
                        {
                            BLANKS[pos] = false;
                            r           = dims.Item3;
                            r.Offset(145, 36);
                            FF8String s = Strings[Items.CurrentEXP] + "\n" + Strings[Items.NextLEVEL];
                            ITEM[pos, 7] = new IGMDataItem.Text(s, r);

                            r = dims.Item3;
                            r.Offset((340), 42);
                            ITEM[pos, 8] = new IGMDataItem.Integer(checked ((int)c.Experience), r, 2, 0, 1, 9);

                            r = dims.Item3;
                            r.Offset(520, 42);
                            ITEM[pos, 9] = new IGMDataItem.Icon(Icons.ID.P, r, 2);

                            r = dims.Item3;
                            r.Offset((340), 75);
                            ITEM[pos, 10] = new IGMDataItem.Integer(c.ExperienceToNextLevel, r, 2, 0, 1, 9);

                            r = dims.Item3;
                            r.Offset(520, 75);
                            ITEM[pos, 11] = new IGMDataItem.Icon(Icons.ID.P, r, 2);
                        }
                        else
                        {
                            for (int i = 7; i < Depth; i++)
                            {
                                ITEM[pos, i] = null;
                            }
                        }
                    }
                    else
                    {
                        ITEM[pos, 0] = new IGMDataItem.Box(pos: SIZE[pos]);
                        BLANKS[pos]  = true;
                        for (int i = 1; i < Depth; i++)
                        {
                            ITEM[pos, i] = null;
                        }
                    }
                }
            }