1
0
Fork 0

Reduce default statbar margin

This commit is contained in:
Wuzzy 2017-07-21 13:40:02 +02:00
parent 082882de1b
commit 56b23ef496
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ else
hb.settings.start_offset_right.y = hb.load_setting("hudbars_start_statbar_offset_right_y", "number", -90)
end
-- Modified in MCL2!
hb.settings.vmargin = hb.load_setting("hudbars_vmargin", "number", 32)
hb.settings.vmargin = hb.load_setting("hudbars_vmargin", "number", 28)
hb.settings.tick = hb.load_setting("hudbars_tick", "number", 0.1)
-- Experimental setting: Changing this setting is not officially supported, do NOT rely on it!

View File

@ -110,7 +110,7 @@ hudbars_start_statbar_offset_right_x (Right HUD statbar x offset) int 25
hudbars_start_statbar_offset_right_y (Right HUD statbar y offset) int -90
# The vertical distance between two HUD bars, in pixels.
hudbars_vmargin (Vertical distance between HUD bars) int 24 0
hudbars_vmargin (Vertical distance between HUD bars) int 28 0
[Performance]
# The of seconds which need to pass before the server updates the default HUD bars

View File

@ -25,7 +25,7 @@ local function set_hud(player)
-- Tweak offset if hudbars mod was found
local rows = math.floor((#hb.get_hudbar_identifiers()-1) / 2) + 1
local vmargin = tonumber(minetest.settings:get("hudbars_vmargin")) or 24
local vmargin = tonumber(minetest.settings:get("hudbars_vmargin")) or 28
off.y = -76 - vmargin*rows
end