mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Make size/position of potion HUD more MC like
This commit is contained in:
parent
88f253bf66
commit
4aabd7d9e7
@ -35,13 +35,13 @@ local function potions_init_icons(player)
|
|||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
icon_ids[name] = {}
|
icon_ids[name] = {}
|
||||||
for e=1, EFFECT_TYPES do
|
for e=1, EFFECT_TYPES do
|
||||||
local x = -7 + -38 * e
|
local x = -52 * e - 2
|
||||||
local id = player:hud_add({
|
local id = player:hud_add({
|
||||||
hud_elem_type = "image",
|
hud_elem_type = "image",
|
||||||
text = "blank.png",
|
text = "blank.png",
|
||||||
position = { x = 1, y = 0 },
|
position = { x = 1, y = 0 },
|
||||||
offset = { x = x, y = 272 },
|
offset = { x = x, y = 3 },
|
||||||
scale = { x = 2, y = 2 },
|
scale = { x = 3, y = 3 },
|
||||||
alignment = { x = 1, y = 1 },
|
alignment = { x = 1, y = 1 },
|
||||||
z_index = 100,
|
z_index = 100,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user