VisualGearTypes.wiki
changeset 2213 bed46cba92ef
parent 2212 cfa171e6d226
child 2214 46d72748f62a
equal deleted inserted replaced
2212:cfa171e6d226 2213:bed46cba92ef
    83 This is shown at the end of a turn to show the total damage received by each hedgehog in that turn, or when a hedgehog drowned.
    83 This is shown at the end of a turn to show the total damage received by each hedgehog in that turn, or when a hedgehog drowned.
    84 But this visual gear is also very useful to show an arbitrary whole number on the screen.
    84 But this visual gear is also very useful to show an arbitrary whole number on the screen.
    85 
    85 
    86 By default, it is white and moves upwards a few pixels before it disappears. Set `dX` and `dY` to 0 to disable movement. If this visual gear was spawned below the water line (`Y>WaterLine`), it will disappear as soon  `Y-10<WaterLine` is `true`.
    86 By default, it is white and moves upwards a few pixels before it disappears. Set `dX` and `dY` to 0 to disable movement. If this visual gear was spawned below the water line (`Y>WaterLine`), it will disappear as soon  `Y-10<WaterLine` is `true`.
    87 
    87 
    88  * `Angle`: Scale ratio. `0` or `1` = 100%
    88  * `Angle`: Scale ratio (only has an effect if `Frame` is non-zero). `0` or `1` = 100%
    89  * `Frame`: If `0`, its position is relative to the landscape. If non-zero, it will align to the screen instead
    89  * `Frame`: If `0`, its position is relative to the landscape. If non-zero, it will align to the screen instead
    90  * `State`: Number to display (must be a whole number)
    90  * `State`: Number to display (must be a whole number)
    91  * `Timer`: Expiration timer
    91  * `Timer`: Expiration timer
    92  * `Tint`: Color of number and border
    92  * `Tint`: Color of number and border
    93  * `Scale`: Unused. Use `Angle` for scaling instead.
    93  * `Scale`: Unused. Use `Angle` for scaling instead
    94 
    94 
    95 == `vgtSmallDamageTag` ==
    95 == `vgtSmallDamageTag` ==
    96 NOTE: Due to a bug, this cannot currently be used in Lua scripts.
    96 NOTE: Due to a bug, this cannot currently be used in Lua scripts.
    97 
    97 
    98 Damage indicator, displays a damage value. Hedgewars uses this as the "small" damage tag used to instantly show damage of a single hit.
    98 Damage indicator, displays a damage value. Hedgewars uses this as the "small" damage tag used to instantly show damage of a single hit.