mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Reduce default statbar margin
This commit is contained in:
parent
082882de1b
commit
56b23ef496
@ -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!
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user