Update hudbars from upstream.

This commit is contained in:
Olivier Dragon 2024-11-30 10:01:14 -05:00
parent a1d20011a4
commit 09c112a326
4 changed files with 8 additions and 8 deletions

@ -1 +1 @@
Subproject commit 370233759eb4914a02fa764cdb7ffb9b7a85275b
Subproject commit bd191abfcd38ffd7ad575620d9fd1c6bf1f2f7cf

View File

@ -51,7 +51,7 @@ and unhidden on a per-player basis.
Note this does not yet display the HUD bar.
The HUD bars will be displayed in a “first come, first serve” order. This API does not allow fow a custom order or a way to set it
manually in a reliable way. However, you can use the setting `hudbars_sorting` for this. See the advanced setting menu in Minetest
manually in a reliable way. However, you can use the setting `hudbars_sorting` for this. See the advanced setting menu in Luanti
for more information.
@ -130,7 +130,7 @@ for players.
`nil`; if one of them is `nil`, that means the value is unchanged. If all those values are `nil`, this
function is a no-op.
This function tries to minimize the amount of calls to `hud_change` of the Minetest Lua API
This function tries to minimize the amount of calls to `hud_change` of the Luanti Lua API
(and thus, network traffic), when you only change the value and/or maximum value. In this case,
`hud_change` is only called if it is actually needed, e.g. when the actual length of the bar
or the displayed string changed, so you do not have to worry about it. There is, however, no

View File

@ -1,7 +1,7 @@
# HUD Bars
## Description
This mod changes the HUD of Minetest. It replaces the default health and breath
This mod changes the HUD of Luanti . It replaces the default health and breath
symbols by horizontal colored bars with text showing the number.
Furthermore, it enables other mods to add their own custom bars to the HUD,
@ -12,14 +12,14 @@ position should be displayed correctly on every screen size.
## Current version
The current version is 2.3.6.
It works for Minetest 5.3.0 or later.
It works for Minetest/Luanti 5.3.0 or later.
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
standard.
## Settings
This mod can be configured quite a bit. You can change HUD bar appearance, offsets, ordering, and more.
Use the advanced settings menu in Minetest for detailed configuration.
Use the advanced settings menu in Luanti for detailed configuration.
## API
The API is used to add your own custom HUD bars.

View File

@ -1,12 +1,12 @@
[Appearance]
# Specifies how the value indicators (i.e. health, breah, etc.) look. There are 3 styles
# available. You can choose between the default progress-bar-like bars and the good
# old statbars like you know from vanilla Minetest.
# old statbars like you know from vanilla Luanti.
# These values are possible:
# - progress_bar: A horizontal progress-bar-like bar with a label, showing numerical value
# (current, maximum), and an icon. These bars usually convey the most
# information. This is the default and recommended value.
# - statbar_classic: Classic statbar, like in vanilla Minetest. Made out of up to 20
# - statbar_classic: Classic statbar, like in vanilla Luanti. Made out of up to 20
# half-symbols. Those bars represent the vague ratio between
# the current value and the maximum value. 1 half-symbol stands for
# approximately 5% of the maximum value.