protected override void Init() { base.Init(); SIZE[Rows] = SIZE[0]; SIZE[Rows].Y = Y; ITEM[Rows, 2] = new IGMDataItem.Icon { Data = Icons.ID.NUM_, Pos = new Rectangle(SIZE[Rows].X + SIZE[Rows].Width - 45, SIZE[Rows].Y, 0, 0), Scale = new Vector2(2.5f) }; for (int pos = 0; pos < Rows; pos++) { ITEM[pos, 0] = new IGMDataItem.Text { Pos = SIZE[pos] }; ITEM[pos, 0].Hide(); ITEM[pos, 1] = new IGMDataItem.Icon { Data = Icons.ID.JunctionSYM, Pos = new Rectangle(SIZE[pos].X + SIZE[pos].Width - 75, SIZE[pos].Y, 0, 0) }; ITEM[pos, 1].Hide(); ITEM[pos, 2] = new IGMDataItem.Integer { Pos = new Rectangle(SIZE[pos].X + SIZE[pos].Width - 50, SIZE[pos].Y, 0, 0), Spaces = 3 }; ITEM[pos, 2].Hide(); } ITEM[Targets_Window, 0] = IGMData.Target.Group.Create(Damageable); BLANKS[Rows] = true; Cursor_Status &= ~Cursor_Status.Horizontal; Cursor_Status |= Cursor_Status.Vertical; Cursor_Status &= ~Cursor_Status.Blinking; PointerZIndex = Rows - 1; }
protected override void Init() { base.Init(); _helpStr = new FF8String[Count]; for (byte pos = 0; pos < Rows; pos++) { ITEM[pos, 0] = new IGMDataItem.Text(null, SIZE[pos]); ITEM[pos, 1] = new IGMDataItem.Integer(0, new Rectangle(SIZE[pos].X + SIZE[pos].Width - 60, SIZE[pos].Y, 0, 0), numtype: Icons.NumType.sysFntBig, spaces: 3); } ITEM[Count - 1, 2] = new IGMDataItem.Icon(Icons.ID.NUM_, new Rectangle(SIZE[Rows - 1].X + SIZE[Rows - 1].Width - 60, Y, 0, 0), scale: new Vector2(2.5f)); PointerZIndex = Rows - 1; }
protected override void Init() { base.Init(); _helpStr = new FF8String[Count]; for (byte pos = 0; pos < Rows; pos++) { ITEM[pos, 0] = new IGMDataItem.Text { Pos = SIZE[pos] }; ITEM[pos, 1] = new IGMDataItem.Integer { Pos = new Rectangle(SIZE[pos].X + SIZE[pos].Width - 60, SIZE[pos].Y, 0, 0), NumType = Icons.NumType.SysFntBig, Spaces = 3 }; } NUM_ = new IGMDataItem.Icon { Data = Icons.ID.NUM_, Pos = new Rectangle(SIZE[Rows - 1].X + SIZE[Rows - 1].Width - 60, Y, 0, 0), Scale = new Vector2(2.5f) }; PointerZIndex = Rows - 1; }
private void AddGF(ref int pos, GFs g, Font.ColorID color = Font.ColorID.White) { Contents[pos] = g; if (g != GFs.Blank) { ((IGMDataItem.Text)ITEM[pos, 0]).Data = Memory.Strings.GetName(g); ((IGMDataItem.Text)ITEM[pos, 0]).FontColor = color; ((IGMDataItem.Integer)ITEM[pos, 2]).Data = Battle ? Source.GFs[g].CurrentHP() : Source.GFs[g].Level; ShowChild(pos, g); if (Battle) { ITEM[pos, 1].Hide(); } } else { if (ITEM[pos, 0] == null) { ITEM[pos, 0] = new IGMDataItem.Text { Pos = SIZE[pos], FontColor = color } } ; if (ITEM[pos, 1] == null) { ITEM[pos, 1] = new IGMDataItem.Icon { Data = Icons.ID.JunctionSYM, Pos = new Rectangle(SIZE[pos].X + SIZE[pos].Width - 100, SIZE[pos].Y, 0, 0) } } ; if (ITEM[pos, 2] == null) { ITEM[pos, 2] = new IGMDataItem.Integer { Pos = new Rectangle(SIZE[pos].X + SIZE[pos].Width - 50, SIZE[pos].Y, 0, 0), Spaces = 3 } } ; HideChild(pos); } pos++; }
private void addMagic(ref int pos, Kernel_bin.Magic_Data spell, Font.ColorID color = @default) { bool j = false; if (color == @default && Source.Stat_J.ContainsValue(spell.ID)) { //spell is junctioned if (!Battle) { color = junctioned; } j = true; } ITEM[pos, 0] = new IGMDataItem.Text(spell.Name, SIZE[pos], color); ITEM[pos, 1] = j ? new IGMDataItem.Icon(Icons.ID.JunctionSYM, new Rectangle(SIZE[pos].X + SIZE[pos].Width - 75, SIZE[pos].Y, 0, 0)) : null; ITEM[pos, 2] = new IGMDataItem.Integer(Source.Magics[spell.ID], new Rectangle(SIZE[pos].X + SIZE[pos].Width - 50, SIZE[pos].Y, 0, 0), spaces: 3); //makes it so you cannot junction a magic to a stat that does nothing. BLANKS[pos] = color == nostat ? true : false; Contents[pos] = spell.ID; pos++; }