Mercurial > touhou-doc
diff 06/anm.xml @ 10:d0e992b282a0
Fix anm XML format to be consistant with ecl.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 23 Aug 2011 23:42:34 +0200 |
parents | 6d47bfc23c64 |
children | 79dfd9765a67 |
line wrap: on
line diff
--- a/06/anm.xml +++ b/06/anm.xml @@ -13,7 +13,7 @@ <num>1</num> <name>set_sprite</name> <params> - <param type="S">Sprite number.</param> + <param type="S" name="number" unit="sprite"/> </params> <desc>Displays a certain sprite, or change from the previous sprite.</desc> </op> @@ -22,8 +22,8 @@ <num>2</num> <name>set_scale</name> <params> - <param type="f" default="in the sprite section">X factor.</param> - <param type="f" default="in the sprite section">Y factor.</param> + <param type="f" name="sx" default="in the sprite section"/> + <param type="f" name="sy" default="in the sprite section"/> </params> <desc>Resizes the current sprite.</desc> </op> @@ -32,7 +32,7 @@ <num>3</num> <name>set_alpha</name> <params> - <param type="S">alpha (0 to 255)</param> + <param type="S" name="alpha" values="0 to 255"/> </params> </op> @@ -40,10 +40,10 @@ <num>4</num> <name>set_color</name> <params> - <param type="c">g</param> - <param type="c">b</param> - <param type="c">r</param> - <param type="c">padding</param> + <param type="c" name="green"/> + <param type="c" name="blue"/> + <param type="c" name="red"/> + <param type="c" name="padding"/> </params> </op> @@ -51,7 +51,7 @@ <num>5</num> <name>jump</name> <params> - <param type="S">absolute offset within the script of the instruction to jump to</param> + <param type="S" name="offset">absolute offset within the script of the instruction to jump to</param> </params> <desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc> </op> @@ -66,9 +66,9 @@ <num>9</num> <name>set_3d_rotation</name> <params> - <param type="f">-x</param> - <param type="f">y</param> - <param type="f">-z</param> + <param type="f" name="-x">Warning: negative!</param> + <param type="f" name="y"/> + <param type="f" name="-z">Warning: negative!</param> </params> <desc>Set a rotation for the current object.</desc> </op> @@ -77,9 +77,9 @@ <num>10</num> <name>set_3d_rotation_speed</name> <params> - <param type="f">-x</param> - <param type="f">y</param> - <param type="f">-z</param> + <param type="f" name="-x">Warning: negative!</param> + <param type="f" name="y"/> + <param type="f" name="-z">Warning: negative!</param> </params> </op> @@ -87,8 +87,8 @@ <num>11</num> <name>set_scale_speed</name> <params> - <param type="f">sx speed</param> - <param type="f">sy speed</param> + <param type="f" name="sx_speed"/> + <param type="f" name="sy_speed"/> </params> </op> @@ -96,8 +96,8 @@ <num>12</num> <name>fade</name> <params> - <param type="f">new_alpha</param> - <param type="S">duration</param> + <param type="f" name="new_alpha"/> + <param type="S" name="duration" unit="frames"/> </params> </op> @@ -119,48 +119,48 @@ <num>16</num> <name>set_random_sprite</name> <params> - <param type="S">id of the first sprite</param> - <param type="S">number of sprites</param> + <param type="S" name="first" unit="sprite"/> + <param type="S" name="number"/> </params> - <desc>Select a sprite in the [[id, id+number)) range.</desc> + <desc>Select a sprite in the [first, first+number) range.</desc> </op> <op> <num>17</num> <params> - <param type="f"></param> - <param type="f"></param> - <param type="f"></param> + <param type="f"/> + <param type="f"/> + <param type="f"/> </params> </op> <op> <num>18</num> <params> - <param type="f"></param> - <param type="f"></param> - <param type="S"></param> - <param type="S"></param> + <param type="f"/> + <param type="f"/> + <param type="S"/> + <param type="S"/> </params> </op> <op> <num>19</num> <params> - <param type="f"></param> - <param type="f"></param> - <param type="S"></param> - <param type="S"></param> + <param type="f"/> + <param type="f"/> + <param type="S"/> + <param type="S"/> </params> </op> <op> <num>20</num> <params> - <param type="f"></param> - <param type="f"></param> - <param type="f"></param> - <param type="S"></param> + <param type="f"/> + <param type="f"/> + <param type="f"/> + <param type="S"/> </params> </op> @@ -171,14 +171,14 @@ <op> <num>22</num> <params> - <param type="S"></param> + <param type="S"/> </params> </op> <op> <num>23</num> <name>set_bottom_left_as_origin</name> - <desc>Set the sprite's bottom-left corner as its origin (otherwise, the sprite's origin is its center). + <desc>Set the sprite's bottom-left corner as its origin (otherwise, the sprite's origin is its center).<br/> This parameter effectively translates the sprite by (width / 2., height / 2., 0.) once every other sprite operation has been executed.</desc> </op> @@ -189,14 +189,14 @@ <op> <num>25</num> <params> - <param type="S"></param> + <param type="S"/> </params> </op> <op> <num>26</num> <params> - <param type="S"></param> + <param type="S"/> </params> </op> @@ -204,7 +204,7 @@ <num>27</num> <name>shift_texture_x</name> <params> - <param type="f">dx</param> + <param type="f" name="dx" unit="pixels"/> </params> <desc>Add dx to the x coordinates of the texture, causing the texture to "move".</desc> </op> @@ -213,7 +213,7 @@ <num>28</num> <name>shift_texture_y</name> <params> - <param type="f">dy</param> + <param type="f" name="dy" unit="pixels"/> </params> <desc>Add dy to the y coordinates of the texture, causing the texture to "move".</desc> </op> @@ -221,7 +221,7 @@ <op> <num>29</num> <params> - <param type="S"></param> + <param type="S"/> </params> </op> @@ -229,9 +229,9 @@ <num>30</num> <name>scale_in</name> <params> - <param type="f">new_sx</param> - <param type="f">new_sy</param> - <param type="S">duration</param> + <param type="f" name="new_sx"/> + <param type="f" name="new_sy"/> + <param type="S" name="duration" unit="frames"/> </params> <desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc> </op> @@ -239,7 +239,7 @@ <op> <num>31</num> <params> - <param type="S"></param> + <param type="S"/> </params> </op> </opcodes>