battle.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <screen name="BattleUi" script="engine/scripts/battle/battle_ui.lua" visible="false">
  2. <widget name="Container" width="40%" height="40%" x="0" y="0" align="left" valign="top" scale="2.5 2.5" visible="true">
  3. <widget name="Message" x="5%" y="2%" width="90%" height="24" visible="true">
  4. <prototype name="Window" />
  5. <text_area name="Name" x="12" y="6" width="100%" height="100%" font="FFVIIFont" text_name="BattleUiDebugExit" visible="true" />
  6. </widget>
  7. <widget name="Help" x="0%" y="75%-24" width="100%" height="24" visible="true">
  8. <prototype name="Window" />
  9. </widget>
  10. <widget name="Bottom" x="0%" y="75%" width="100%" height="25%" visible="true">
  11. <widget name="Left" x="0%" y="0%" width="40%" height="100%" visible="true">
  12. <prototype name="Window" />
  13. <text_area name="LabelName" scale="0.5 0.5" x="5%" y="-2" colour="0.9 0.9 0.9" font="FFVIIMenuFont" text_name="BattleUiName" visible="true" />
  14. <text_area name="LabelBarrier" scale="0.5 0.5" x="68%" y="-2" colour="0.9 0.9 0.9" font="FFVIIMenuFont" text_name="BattleUiBarrier" visible="true" />
  15. </widget>
  16. <widget name="Right" x="40%" y="0%" width="60%" height="100%" visible="true">
  17. <prototype name="Window" />
  18. <text_area name="LabelHp" scale="0.5 0.5" x="3%" y="-2" font="FFVIIMenuFont" text_name="BattleUiHp" visible="true" />
  19. <text_area name="LabelMp" scale="0.5 0.5" x="40%" y="-2" font="FFVIIMenuFont" text_name="BattleUiMp" visible="true" />
  20. <text_area name="LabelLimit" scale="0.5 0.5" x="59%" y="-2" font="FFVIIMenuFont" text_name="BattleUiLimit" visible="true" />
  21. <text_area name="LabelTime" scale="0.5 0.5" x="77%" y="-2" font="FFVIIMenuFont" text_name="BattleUiTime" visible="true" />
  22. </widget>
  23. <widget name="Character1" x="2%" y="12%" width="96%" height="30%" visible="true">
  24. <prototype name="BattleCharacter" />
  25. </widget>
  26. <widget name="Character2" x="2%" y="42%" width="96%" height="30%" visible="true">
  27. <prototype name="BattleCharacter" />
  28. </widget>
  29. <widget name="Character3" x="2%" y="72%" width="96%" height="30%" visible="true">
  30. <prototype name="BattleCharacter" />
  31. </widget>
  32. <widget name="Commands" x="22%" y="5%" width="60" height="95%" visible="false">
  33. <prototype name="Window" />
  34. <text_area name="Cmd1" x="10" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  35. <text_area name="Cmd2" x="10" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  36. <text_area name="Cmd3" x="10" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  37. <text_area name="Cmd4" x="10" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  38. <text_area name="Cmd5" x="70" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  39. <text_area name="Cmd6" x="70" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  40. <text_area name="Cmd7" x="70" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  41. <text_area name="Cmd8" x="70" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  42. <text_area name="Cmd9" x="130" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  43. <text_area name="Cmd10" x="130" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  44. <text_area name="Cmd11" x="130" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  45. <text_area name="Cmd12" x="130" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  46. <sprite name="Cursor" image="icons/cursor.png" x="132" y="99" width="24" height="16" visible="true">
  47. <animation name="Position1" length="0" x="0:-15" y="0:0%+7" />
  48. <animation name="Position2" length="0" x="0:-15" y="0:22%+7" />
  49. <animation name="Position3" length="0" x="0:-15" y="0:44%+7" />
  50. <animation name="Position4" length="0" x="0:-15" y="0:66%+7" />
  51. <animation name="Position5" length="0" x="0:35" y="0:0%+7" />
  52. <animation name="Position6" length="0" x="0:35" y="0:22%+7" />
  53. <animation name="Position7" length="0" x="0:35" y="0:44%+7" />
  54. <animation name="Position8" length="0" x="0:35" y="0:66%+7" />
  55. <animation name="Position9" length="0" x="0:80" y="0:0%+7" />
  56. <animation name="Position10" length="0" x="0:80" y="0:22%+7" />
  57. <animation name="Position11" length="0" x="0:80" y="0:44%+7" />
  58. <animation name="Position12" length="0" x="0:80" y="0:66%+7" />
  59. </sprite>
  60. </widget>
  61. <!-- Change (left of the commands) and Defend (right of them) have a window with one option each. -->
  62. <widget name="Change" x="22%-56" y="5%" width="56" height="30%" visible="false">
  63. <prototype name="Window" />
  64. <text_area name="Text" x="10" y="4" width="100%-5" height="100%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  65. <sprite name="Cursor" image="icons/cursor.png" x="-15" y="5" width="24" height="16" visible="true" />
  66. </widget>
  67. <widget name="Defend" x="22%+120" y="5%" width="56" height="30%" visible="false">
  68. <prototype name="Window" />
  69. <text_area name="Text" x="10" y="4" width="100%-5" height="100%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  70. <sprite name="Cursor" image="icons/cursor.png" x="-15" y="5" width="24" height="16" visible="true" />
  71. </widget>
  72. <!-- Coin: window to choose the gil to throw. -->
  73. <widget name="Coin" x="32%" y="5%" width="150" height="62%" visible="false">
  74. <prototype name="Window" />
  75. <text_area name="Title" x="10" y="0%+5" width="100%-5" height="30%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  76. <text_area name="Amount" x="10" y="28%+5" width="100%-5" height="30%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  77. <text_area name="Step" x="10" y="56%+5" width="100%-5" height="30%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  78. </widget>
  79. <widget name="List" x="32%" y="5%" width="120" height="95%" visible="false">
  80. <prototype name="Window" />
  81. <text_area name="List1" x="10" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" visible="true" />
  82. <text_area name="List2" x="10" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" visible="true" />
  83. <text_area name="List3" x="10" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" visible="true" />
  84. <text_area name="List4" x="10" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" visible="true" />
  85. <!-- The magic list has a row for each materia: the modifiers (in purple) and up to four
  86. spells. The window is made wider by the script when it is shown (see MAGIC_LIST_WIDTH). The first column fits
  87. three characters, and each of the others 10. -->
  88. <text_area name="ListTag1" x="8" y="0%+5" width="30" height="25%" font="FFVIIFont" visible="false" />
  89. <text_area name="ListTag2" x="8" y="22%+5" width="30" height="25%" font="FFVIIFont" visible="false" />
  90. <text_area name="ListTag3" x="8" y="44%+5" width="30" height="25%" font="FFVIIFont" visible="false" />
  91. <text_area name="ListTag4" x="8" y="66%+5" width="30" height="25%" font="FFVIIFont" visible="false" />
  92. <text_area name="ListA1" x="42" y="0%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  93. <text_area name="ListA2" x="42" y="22%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  94. <text_area name="ListA3" x="42" y="44%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  95. <text_area name="ListA4" x="42" y="66%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  96. <text_area name="ListB1" x="106" y="0%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  97. <text_area name="ListB2" x="106" y="22%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  98. <text_area name="ListB3" x="106" y="44%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  99. <text_area name="ListB4" x="106" y="66%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  100. <text_area name="ListC1" x="170" y="0%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  101. <text_area name="ListC2" x="170" y="22%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  102. <text_area name="ListC3" x="170" y="44%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  103. <text_area name="ListC4" x="170" y="66%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  104. <text_area name="ListD1" x="234" y="0%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  105. <text_area name="ListD2" x="234" y="22%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  106. <text_area name="ListD3" x="234" y="44%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  107. <text_area name="ListD4" x="234" y="66%+5" width="64" height="25%" font="FFVIIFont" visible="false" />
  108. <sprite name="Cursor" image="icons/cursor.png" x="132" y="99" width="24" height="16" visible="true">
  109. <animation name="Position1" length="0" x="0:-15" y="0:0%+7" />
  110. <animation name="Position2" length="0" x="0:-15" y="0:22%+7" />
  111. <animation name="Position3" length="0" x="0:-15" y="0:44%+7" />
  112. <animation name="Position4" length="0" x="0:-15" y="0:66%+7" />
  113. <animation name="Position1_1" length="0" x="0:19" y="0:0%+7" />
  114. <animation name="Position1_2" length="0" x="0:83" y="0:0%+7" />
  115. <animation name="Position1_3" length="0" x="0:147" y="0:0%+7" />
  116. <animation name="Position1_4" length="0" x="0:211" y="0:0%+7" />
  117. <animation name="Position2_1" length="0" x="0:19" y="0:22%+7" />
  118. <animation name="Position2_2" length="0" x="0:83" y="0:22%+7" />
  119. <animation name="Position2_3" length="0" x="0:147" y="0:22%+7" />
  120. <animation name="Position2_4" length="0" x="0:211" y="0:22%+7" />
  121. <animation name="Position3_1" length="0" x="0:19" y="0:44%+7" />
  122. <animation name="Position3_2" length="0" x="0:83" y="0:44%+7" />
  123. <animation name="Position3_3" length="0" x="0:147" y="0:44%+7" />
  124. <animation name="Position3_4" length="0" x="0:211" y="0:44%+7" />
  125. <animation name="Position4_1" length="0" x="0:19" y="0:66%+7" />
  126. <animation name="Position4_2" length="0" x="0:83" y="0:66%+7" />
  127. <animation name="Position4_3" length="0" x="0:147" y="0:66%+7" />
  128. <animation name="Position4_4" length="0" x="0:211" y="0:66%+7" />
  129. </sprite>
  130. </widget>
  131. <widget name="Target" x="42%" y="5%" width="160" height="95%" visible="false">
  132. <prototype name="Window" />
  133. <text_area name="L1" x="10" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  134. <text_area name="L2" x="10" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  135. <text_area name="L3" x="10" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  136. <text_area name="L4" x="10" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  137. <sprite name="Separator" x="80" y="10%" width="1" height="80%" colour="0.1 0.1 0.1" visible="true" />
  138. <text_area name="R1" x="90" y="0%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  139. <text_area name="R2" x="90" y="22%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  140. <text_area name="R3" x="90" y="44%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  141. <text_area name="R4" x="90" y="66%+5" width="100%-5" height="25%" font="FFVIIFont" text_name="BattleUiHp" visible="true" />
  142. <sprite name="Cursor" image="icons/cursor.png" x="-15" y="0%+7" width="24" height="16" visible="true">
  143. <animation name="Position1_1" length="0" x="0:-15" y="0:0%+7" />
  144. <animation name="Position1_2" length="0" x="0:-15" y="0:22%+7" />
  145. <animation name="Position1_3" length="0" x="0:-15" y="0:44%+7" />
  146. <animation name="Position1_4" length="0" x="0:-15" y="0:66%+7" />
  147. <animation name="Position2_1" length="0" x="0:65" y="0:0%+7" />
  148. <animation name="Position2_2" length="0" x="0:65" y="0:22%+7" />
  149. <animation name="Position2_3" length="0" x="0:65" y="0:44%+7" />
  150. <animation name="Position2_4" length="0" x="0:65" y="0:66%+7" />
  151. </sprite>
  152. <widget name="CursorAllLeft" x="0" y="0" width="100%" hieght="100%" visible="false">
  153. <sprite name="CursorAllLeft1" image="icons/cursor.png" x="-15" y="0%+7" width="24" height="16" visible="true"/>
  154. <sprite name="CursorAllLeft2" image="icons/cursor.png" x="-15" y="22%+7" width="24" height="16" visible="true"/>
  155. <sprite name="CursorAllLeft3" image="icons/cursor.png" x="-15" y="44%+7" width="24" height="16" visible="true"/>
  156. <sprite name="CursorAllLeft4" image="icons/cursor.png" x="-15" y="66%+7" width="24" height="16" visible="true"/>
  157. </widget>
  158. <widget name="CursorAllRight" x="0" y="0" width="100%" hieght="100%" visible="false">
  159. <sprite name="CursorAllRight1" image="icons/cursor.png" x="65" y="0%+7" width="24" height="16" visible="true"/>
  160. <sprite name="CursorAllRight2" image="icons/cursor.png" x="65" y="22%+7" width="24" height="16" visible="true"/>
  161. <sprite name="CursorAllRight3" image="icons/cursor.png" x="65" y="44%+7" width="24" height="16" visible="true"/>
  162. <sprite name="CursorAllRight4" image="icons/cursor.png" x="65" y="66%+7" width="24" height="16" visible="true"/>
  163. </widget>
  164. </widget>
  165. </widget>
  166. </widget>
  167. </screen>