using Microsoft.Xna.Framework; namespace FF8 { public partial class Icons { protected override void InsertCustomEntries() { Entry BG = new Entry { X = 0, Y = 48, Width = 256, Height = 16, CustomPallet = 1, Fill = Vector2.UnitX, Tile = Vector2.UnitY, }; Entry Border_TopLeft = new Entry { X = 16, Y = 0, Width = 8, Height = 8, CustomPallet = 0, }; Entry Border_Top = new Entry { X = 24, Y = 0, Width = 8, Height = 8, Tile = Vector2.UnitX, Offset = new Vector2(8, 0), End = new Vector2(-8, 0), CustomPallet = 0 }; Entry Border_Bottom = new Entry { X = 24, Y = 16, Width = 8, Height = 8, Tile = Vector2.UnitX, Snap_Bottom = true, Offset = new Vector2(8, -8), End = new Vector2(-8, 0), CustomPallet = 0 }; Entry Border_TopRight = new Entry { X = 32, Y = 0, Width = 8, Height = 8, Snap_Right = true, Offset = new Vector2(-8, 0), CustomPallet = 0 }; Entry Border_Left = new Entry { X = 16, Y = 8, Width = 8, Height = 8, Tile = Vector2.UnitY, Offset = new Vector2(0, 8), End = new Vector2(0, -8), CustomPallet = 0 }; Entry Border_Right = new Entry { X = 32, Y = 8, Width = 8, Height = 8, Tile = Vector2.UnitY, Snap_Right = true, Offset = new Vector2(-8, 8), End = new Vector2(0, -8), CustomPallet = 0 }; Entry Border_BottomLeft = new Entry { X = 16, Y = 16, Width = 8, Height = 8, Snap_Bottom = true, Offset = new Vector2(0, -8), CustomPallet = 0 }; Entry Border_BottomRight = new Entry { X = 32, Y = 16, Width = 8, Height = 8, Snap_Bottom = true, Snap_Right = true, Offset = new Vector2(-8, -8), CustomPallet = 0 }; Entries[ID.Bar_BG] = new EntryGroup(new Entry { X = 16, Y = 24, Width = 8, Height = 8, Tile = Vector2.UnitX, Fill = Vector2.UnitY, CustomPallet = 0 }); Entries[ID.Bar_Fill] = new EntryGroup(new Entry { X = 0, Y = 16, Width = 8, Height = 8, Tile = Vector2.UnitX, Fill = Vector2.UnitY, Offset = new Vector2(2, 2), End = new Vector2(-2, 0), CustomPallet = 5 }); Entries[ID.MenuBorder] = new EntryGroup(Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight); Entries[ID.Menu_BG_256] = new EntryGroup(BG, Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight); Entries[ID.Menu_BG_368] = new EntryGroup(BG, new Entry { X = 0, Y = 64, Offset = new Vector2(256, 0), //offset should be 256 but i had issue with 1 pixel gap should be able to get away with losing one pixel. Width = 112, Height = 16, CustomPallet = 1, Fill = Vector2.UnitX, Tile = Vector2.UnitY }, Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight); Entries[ID.DEBUG] = new EntryGroup( new Entry { X = 128, Y = 24, Width = 7, Height = 8, Offset = new Vector2(4,0) }, new Entry { X = 65, Y = 8, Width = 6, Height = 8, Offset = new Vector2(7+4, 0) }, new Entry { X = 147, Y = 24, Width = 6, Height = 8, Offset = new Vector2(13+4, 0) }, new Entry { X = 141, Y = 24, Width = 6, Height = 8, Offset = new Vector2(19+4, 0) }, new Entry { X = 104, Y = 16, Width = 6, Height = 8, Offset = new Vector2(25+4, 0) } ); Entry P_ = (Entry)Entries[ID.Size_08x08_P_][0].Clone(); P_.Offset.X += Entries[ID.COMMAND][0].Width + 4; P_.CustomPallet = 2; Entry _1 = (Entry)Entries[ID.Num_8x8_1_1][0].Clone(); _1.Offset.X += P_.Offset.X + P_.Width + 2; _1.CustomPallet = 7; Entry _2 = (Entry)Entries[ID.Num_8x8_1_2][0].Clone(); _2.Offset.X += P_.Offset.X + P_.Width + 2; _2.CustomPallet = 7; Entries[ID.COMMAND_PG1] = new EntryGroup(Entries[ID.COMMAND][0], P_, _1); Entries[ID.COMMAND_PG2] = new EntryGroup(Entries[ID.COMMAND][0], P_, _2); P_ = (Entry)Entries[ID.Size_08x08_P_][0].Clone(); P_.Offset.X += Entries[ID.ABILITY][0].Width + 8; P_.CustomPallet = 2; _1 = (Entry)Entries[ID.Num_8x8_1_1][0].Clone(); _1.Offset.X += P_.Offset.X + P_.Width + 2; _1.CustomPallet = 7; _2 = (Entry)Entries[ID.Num_8x8_1_2][0].Clone(); _2.Offset.X += P_.Offset.X + P_.Width + 2; _2.CustomPallet = 7; Entry _3 = (Entry)Entries[ID.Num_8x8_1_3][0].Clone(); _3.Offset.X += P_.Offset.X + P_.Width + 2; _3.CustomPallet = 7; Entry _4 = (Entry)Entries[ID.Num_8x8_1_4][0].Clone(); _4.Offset.X += P_.Offset.X + P_.Width + 2; _4.CustomPallet = 7; Entries[ID.ABILITY_PG1] = new EntryGroup(Entries[ID.ABILITY][0], P_, _1); Entries[ID.ABILITY_PG2] = new EntryGroup(Entries[ID.ABILITY][0], P_, _2); Entries[ID.ABILITY_PG3] = new EntryGroup(Entries[ID.ABILITY][0], P_, _3); Entries[ID.ABILITY_PG4] = new EntryGroup(Entries[ID.ABILITY][0], P_, _4); P_ = (Entry)Entries[ID.Size_08x08_P_][0].Clone(); P_.Offset.X += Entries[ID.GF][0].Width + 8; P_.CustomPallet = 2; _1 = (Entry)Entries[ID.Num_8x8_1_1][0].Clone(); _1.Offset.X += P_.Offset.X + P_.Width + 2; _1.CustomPallet = 7; _2 = (Entry)Entries[ID.Num_8x8_1_2][0].Clone(); _2.Offset.X += P_.Offset.X + P_.Width + 2; _2.CustomPallet = 7; _3 = (Entry)Entries[ID.Num_8x8_1_3][0].Clone(); _3.Offset.X += P_.Offset.X + P_.Width + 2; _3.CustomPallet = 7; _4 = (Entry)Entries[ID.Num_8x8_1_4][0].Clone(); _4.Offset.X += P_.Offset.X + P_.Width + 2; _4.CustomPallet = 7; Entries[ID.GF_PG1] = new EntryGroup(Entries[ID.GF][0], P_, _1); Entries[ID.GF_PG2] = new EntryGroup(Entries[ID.GF][0], P_, _2); Entries[ID.GF_PG3] = new EntryGroup(Entries[ID.GF][0], P_, _3); Entries[ID.GF_PG4] = new EntryGroup(Entries[ID.GF][0], P_, _4); } } }