Icons.InsertCustomEntries.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using Microsoft.Xna.Framework;
  2. namespace FF8
  3. {
  4. internal partial class Icons
  5. {
  6. protected override void InsertCustomEntries()
  7. {
  8. Entry BG = new Entry
  9. {
  10. X = 0,
  11. Y = 48,
  12. Width = 256,
  13. Height = 16,
  14. CustomPallet = 1,
  15. Fill = Vector2.UnitX,
  16. Tile = Vector2.UnitY,
  17. };
  18. Entry Border_TopLeft = new Entry
  19. {
  20. X = 16,
  21. Y = 0,
  22. Width = 8,
  23. Height = 8,
  24. CustomPallet = 0,
  25. };
  26. Entry Border_Top = new Entry
  27. {
  28. X = 24,
  29. Y = 0,
  30. Width = 8,
  31. Height = 8,
  32. Tile = Vector2.UnitX,
  33. Offset = new Vector2(8, 0),
  34. End = new Vector2(-8, 0),
  35. CustomPallet = 0
  36. };
  37. Entry Border_Bottom = new Entry
  38. {
  39. X = 24,
  40. Y = 16,
  41. Width = 8,
  42. Height = 8,
  43. Tile = Vector2.UnitX,
  44. Snap_Bottom = true,
  45. Offset = new Vector2(8, -8),
  46. End = new Vector2(-8, 0),
  47. CustomPallet = 0
  48. };
  49. Entry Border_TopRight = new Entry
  50. {
  51. X = 32,
  52. Y = 0,
  53. Width = 8,
  54. Height = 8,
  55. Snap_Right = true,
  56. Offset = new Vector2(-8, 0),
  57. CustomPallet = 0
  58. };
  59. Entry Border_Left = new Entry
  60. {
  61. X = 16,
  62. Y = 8,
  63. Width = 8,
  64. Height = 8,
  65. Tile = Vector2.UnitY,
  66. Offset = new Vector2(0, 8),
  67. End = new Vector2(0, -8),
  68. CustomPallet = 0
  69. };
  70. Entry Border_Right = new Entry
  71. {
  72. X = 32,
  73. Y = 8,
  74. Width = 8,
  75. Height = 8,
  76. Tile = Vector2.UnitY,
  77. Snap_Right = true,
  78. Offset = new Vector2(-8, 8),
  79. End = new Vector2(0, -8),
  80. CustomPallet = 0
  81. };
  82. Entry Border_BottomLeft = new Entry
  83. {
  84. X = 16,
  85. Y = 16,
  86. Width = 8,
  87. Height = 8,
  88. Snap_Bottom = true,
  89. Offset = new Vector2(0, -8),
  90. CustomPallet = 0
  91. };
  92. Entry Border_BottomRight = new Entry
  93. {
  94. X = 32,
  95. Y = 16,
  96. Width = 8,
  97. Height = 8,
  98. Snap_Bottom = true,
  99. Snap_Right = true,
  100. Offset = new Vector2(-8, -8),
  101. CustomPallet = 0
  102. };
  103. Entries[ID.Bar_BG] = new EntryGroup(new Entry
  104. {
  105. X = 16,
  106. Y = 24,
  107. Width = 8,
  108. Height = 8,
  109. Tile = Vector2.UnitX,
  110. Fill = Vector2.UnitY,
  111. CustomPallet = 0
  112. });
  113. Entries[ID.Bar_Fill] = new EntryGroup(new Entry
  114. {
  115. X = 0,
  116. Y = 16,
  117. Width = 8,
  118. Height = 8,
  119. Tile = Vector2.UnitX,
  120. Fill = Vector2.UnitY,
  121. Offset = new Vector2(2, 2),
  122. End = new Vector2(-2, 0),
  123. CustomPallet = 5
  124. });
  125. Entries[ID.MenuBorder] = new EntryGroup(Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight);
  126. Entries[ID.Menu_BG_256] = new EntryGroup(BG, Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight);
  127. Entries[ID.Menu_BG_368] = new EntryGroup(BG, new Entry
  128. {
  129. X = 0,
  130. Y = 64,
  131. Offset = new Vector2(255, 0), //offset should be 256 but i had issue with 1 pixel gap should be able to get away with losing one pixel.
  132. Width = 112,
  133. Height = 16,
  134. CustomPallet = 1,
  135. Fill = Vector2.UnitX,
  136. Tile = Vector2.UnitY
  137. }, Border_Top, Border_Left, Border_Right, Border_Bottom, Border_TopLeft, Border_TopRight, Border_BottomLeft, Border_BottomRight);
  138. Entries[ID.DEBUG] = new EntryGroup(
  139. new Entry { X = 128, Y = 24, Width = 7, Height = 8 },
  140. new Entry { X = 65, Y = 8, Width = 6, Height = 8, Offset = new Vector2(7, 0) },
  141. new Entry { X = 147, Y = 24, Width = 6, Height = 8, Offset = new Vector2(13, 0) },
  142. new Entry { X = 141, Y = 24, Width = 6, Height = 8, Offset = new Vector2(19, 0) },
  143. new Entry { X = 104, Y = 16, Width = 6, Height = 8, Offset = new Vector2(25, 0) }
  144. );
  145. }
  146. }
  147. }