Example #1
0
 public Item(Rectangle pos, bool battle, int count = 4) : base(count + 1, 3, new IGMDataItem.Box(pos: pos, title: Icons.ID.ITEM), count, 198 / count + 1)
 {
     Battle = battle;
     if (battle)
     {
         ITEM[Targets_Window, 0] = new BattleMenus.IGMData_TargetGroup(Damageable);
     }
 }
Example #2
0
 protected override void Init()
 {
     base.Init();
     for (int i = 0; i < Rows; i++)
     {
         ITEM[i, 0] = new IGMDataItem.Text(null, SIZE[i]);
     }
     ITEM[Rows, 0] = new BattleMenus.IGMData_TargetGroup(Damageable, false);
     PointerZIndex = 0;
 }
Example #3
0
        protected override void Init()
        {
            base.Init();
            SIZE[Rows]    = SIZE[0];
            SIZE[Rows].Y  = Y;
            ITEM[Rows, 2] = new IGMDataItem.Icon(Icons.ID.NUM_, new Rectangle(SIZE[Rows].X + SIZE[Rows].Width - 45, SIZE[Rows].Y, 0, 0), scale: new Vector2(2.5f));

            ITEM[Targets_Window, 0] = new BattleMenus.IGMData_TargetGroup(Damageable);
            BLANKS[Rows]            = true;
            Cursor_Status          &= ~Cursor_Status.Horizontal;
            Cursor_Status          |= Cursor_Status.Vertical;
            Cursor_Status          &= ~Cursor_Status.Blinking;
            PointerZIndex           = Rows - 1;
        }
Example #4
0
 protected override void Init()
 {
     base.Init();
     ITEM[_Draw, 0]          = new IGMDataItem.Text(Memory.Strings.Read(Strings.FileID.KERNEL, 0, 12), SIZE[_Draw]);
     ITEM[Cast, 0]           = new IGMDataItem.Text(Memory.Strings.Read(Strings.FileID.KERNEL, 0, 18), SIZE[Cast]);
     ITEM[Targets_Window, 0] = new BattleMenus.IGMData_TargetGroup(Damageable, false);
     Cursor_Status           = Cursor_Status.Enabled;
     OKAY_Actions            = new Dictionary <int, Func <bool> >
     {
         { _Draw, Inputs_OKAY_Draw },
         { Cast, Inputs_OKAY_Cast },
     };
     PointerZIndex = 0;
 }
Example #5
0
 /// <summary>
 /// Things fixed at startup.
 /// </summary>
 protected override void Init()
 {
     BLANKS[Limit_Arrow] = true;
     base.Init();
     ITEM[Blue_Pool, 0] = new Pool.BlueMagic(new Rectangle(X + 50, Y - 20, 300, 192), Damageable, true);
     ITEM[Blue_Pool, 0].Hide();
     ITEM[Mag_Pool, 0] = new IGMData.Pool.Magic(new Rectangle(X + 50, Y - 20, 300, 192), Damageable, true);
     ITEM[Mag_Pool, 0].Hide();
     ITEM[Item_Pool, 0] = new IGMData.Pool.Item(new Rectangle(X + 50, Y - 22, 400, 194), true);
     ITEM[Item_Pool, 0].Hide();
     ITEM[Targets_Window, 0] = new BattleMenus.IGMData_TargetGroup(Damageable);
     commands       = new Kernel_bin.Battle_Commands[Rows];
     PointerZIndex  = Limit_Arrow;
     nonbattleWidth = Width;
 }