mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
Update to HUD Bar 1.8.0
This commit is contained in:
parent
68be63ffbe
commit
53b5754359
@ -11,7 +11,7 @@ this mod will place them accordingly.
|
|||||||
position should be displayed correctly on every screen size.
|
position should be displayed correctly on every screen size.
|
||||||
|
|
||||||
## Current version
|
## Current version
|
||||||
The current version is 1.7.1.
|
The current version is 1.8.0.
|
||||||
|
|
||||||
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
||||||
standard.
|
standard.
|
||||||
@ -34,6 +34,7 @@ Translations:
|
|||||||
|
|
||||||
* German: Wuzzy
|
* German: Wuzzy
|
||||||
* Portuguese: BrunoMine
|
* Portuguese: BrunoMine
|
||||||
|
* Turkish: admicos
|
||||||
|
|
||||||
This program is free software. It comes without any warranty, to
|
This program is free software. It comes without any warranty, to
|
||||||
the extent permitted by applicable law. You can redistribute it
|
the extent permitted by applicable law. You can redistribute it
|
||||||
|
@ -86,13 +86,16 @@ hb.settings.autohide_breath = hb.load_setting("hudbars_autohide_breath", "bool",
|
|||||||
local sorting = minetest.setting_get("hudbars_sorting")
|
local sorting = minetest.setting_get("hudbars_sorting")
|
||||||
if sorting ~= nil then
|
if sorting ~= nil then
|
||||||
hb.settings.sorting = {}
|
hb.settings.sorting = {}
|
||||||
|
hb.settings.sorting_reverse = {}
|
||||||
for k,v in string.gmatch(sorting, "(%w+)=(%w+)") do
|
for k,v in string.gmatch(sorting, "(%w+)=(%w+)") do
|
||||||
hb.settings.sorting[k] = tonumber(v)
|
hb.settings.sorting[k] = tonumber(v)
|
||||||
|
hb.settings.sorting_reverse[tonumber(v)] = k
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sorting = ""
|
sorting = ""
|
||||||
hb.settings.sorting = { ["health"] = 0, ["hunger"] = 1, ["armor"] = 2, ["saturation"] = 3, ["breath"] = 4, ["exhaustion"] = 5 }
|
hb.settings.sorting = { ["health"] = 0, ["hunger"] = 1, ["armor"] = 2, ["saturation"] = 3, ["breath"] = 4, ["exhaustion"] = 5 }
|
||||||
end
|
end
|
||||||
|
|
||||||
hb.settings.sorting_reverse = {}
|
hb.settings.sorting_reverse = {}
|
||||||
for k,v in string.gmatch(sorting, "(%w+)=(%w+)") do
|
for k,v in string.gmatch(sorting, "(%w+)=(%w+)") do
|
||||||
hb.settings.sorting_reverse[tonumber(v)] = k
|
hb.settings.sorting_reverse[tonumber(v)] = k
|
||||||
@ -238,7 +241,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
|
|||||||
local bar_image, bar_size
|
local bar_image, bar_size
|
||||||
if hb.settings.bar_type == "progress_bar" then
|
if hb.settings.bar_type == "progress_bar" then
|
||||||
bar_image = textures.bar
|
bar_image = textures.bar
|
||||||
bar_size = nil
|
bar_size = {x=2, y=16}
|
||||||
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
||||||
bar_image = textures.icon
|
bar_image = textures.icon
|
||||||
bar_size = {x=24, y=24}
|
bar_size = {x=24, y=24}
|
||||||
|
3
mods/HUD/hudbars/locale/tr.txt
Normal file
3
mods/HUD/hudbars/locale/tr.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Health = Can
|
||||||
|
Breath = Nefes
|
||||||
|
%s: %d/%d = %s: %d/%d
|
Loading…
Reference in New Issue
Block a user