76 Displays an ammo icon. |
76 Displays an ammo icon. |
77 |
77 |
78 * `Frame`: !AmmoType ID of ammo to display (see [AmmoTypes]) |
78 * `Frame`: !AmmoType ID of ammo to display (see [AmmoTypes]) |
79 |
79 |
80 == `vgtHealthTag` == |
80 == `vgtHealthTag` == |
81 A health tag for hedgehogs. But with a few changes, this is also useful to display arbitray numbers on the screen. |
81 A health/damage tag for hedgehogs. It shows a whole number surrounded by a simple border. `dX` and `dY` can be used for moving it around. |
|
82 |
|
83 This is shown at the end of a turn to show the total damage received by each hedgehog in that turn. |
|
84 But this visual gear is also very useful to show an arbitrary whole number on the screen. |
|
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. |
82 |
87 |
83 * `Angle`: Scale ratio. `1` = 100% |
88 * `Angle`: Scale ratio. `1` = 100% |
84 * `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 |
85 * `State`: Number to display |
90 * `State`: Number to display (must be a whole number) |
86 * `Timer`: Expiration timer |
91 * `Timer`: Expiration timer |
|
92 * `Tint`: Color of number and border |
87 |
93 |
88 == `vgtSmallDamageTag` == |
94 == `vgtSmallDamageTag` == |
89 NOTE: Due to a bug, this cannot currently be used in Lua scripts. |
95 NOTE: Due to a bug, this cannot currently be used in Lua scripts. |
90 |
96 |
91 Damage indicator, displays a damage value. Looks similar to `vgtHealthTag`, but is smaller. |
97 Damage indicator, displays a damage value. Hedgewars uses this as the "small" damage tag used to instantly show damage of a single hit. |
92 |
98 |
93 The parameters are the same as for `vgtHealthTag`. |
99 Looks and behaves similar to `vgtHealthTag`, but is slightly smaller. The parameters are the same as for `vgtHealthTag`. |
94 |
100 |
95 == `vgtSpeechBubble` == |
101 == `vgtSpeechBubble` == |
96 Displays a speech bubble with text. In Lua, you cannot change the text after this has been created. Use `HogSay` in Lua to spawn a speech bobble properly. |
102 Displays a speech bubble with text. In Lua, you cannot change the text after this has been created. Use `HogSay` in Lua to spawn a speech bobble properly. |
97 |
103 |
98 * `Frame`: ID of the gear to which the speech bubble belongs |
104 * `Frame`: ID of the gear to which the speech bubble belongs |