diff options
author | Wuzzy <almikes@aol.com> | 2015-05-20 00:02:40 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2015-05-20 00:02:40 +0200 |
commit | 9db2fcba34cbe11961e882774fbf1fd63584955d (patch) | |
tree | 125521c69874e6f157816bb5d2c44833d5ea94a6 /API.md | |
parent | 2a35745ec97de034f7eb10e26faff3d48c4c7cc7 (diff) |
Update API.md on icons
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -59,8 +59,9 @@ manually in a reliable way. * `text_color`: A 3-octet number defining the color of the text. The octets denote, in this order red, green and blue and range from `0x00` (complete lack of this component) to `0xFF` (full intensity of this component). Example: `0xFFFFFF` for white. * `label`: A string which is displayed on the HUD bar itself to describe the HUD bar. Try to keep this string short. * `textures`: A table with the following fields: - * `bar`: The file name of the bar image (as string). - * `icon`: The file name of the icon, as string. This field can be `nil`, in which case no icon will be used. + * `bar`: The file name of the bar image (as string). This is only used for the `progress_bar` bar type (see `README.txt`, settings section). + * `icon`: The file name of the icon, as string. For the `progress_bar` type, it is shown as single image left of the bar, for the two statbar bar types, it is used as the statbar icon and will be repeated. This field can be `nil`, in which case no icon will be used, but this is not recommended, because the HUD bar will be invisible if the one of the statbar bar types is used. + * `bgicon`: The file name of the background icon, it is used as the background for the modern statbar mode only. This field can be `nil`, in which case no background icon will be displayed in this mode. * `default_start_value`: If this HUD bar is added to a player, and no initial value is specified, this value will be used as initial current value * `default_max_value`: If this HUD bar is added to a player, and no initial maximum value is specified, this value will be used as initial maximum value * `default_start_hidden`: The HUD bar will be initially start hidden by default when added to a player. Use `hb.unhide_hudbar` to unhide it. |