Add better game name gui that doesn't interfere with chat or debug info

This commit is contained in:
oilboi 2020-04-06 10:14:17 -04:00
parent 1f7a306aeb
commit 47eb770da9
5 changed files with 10 additions and 22 deletions

View File

@ -49,6 +49,7 @@
- Make snow falling node
- Add creative mode
- Add trap chest and sticky piston
- Added in Et QtFunny font info
---

BIN
crafter version.xcf Normal file

Binary file not shown.

View File

@ -1,29 +1,15 @@
--[[
--map
running - set fov set_fov(fov, is_multiplier) set_breath(value)
sneaking --set eye offset
]]--
crafter_version = 0.03
minetest.register_on_joinplayer(function(player)
--add in info
player:hud_set_flags({minimap=true})
--add in version info
player:hud_add({
hud_elem_type = "text",
position = {x=0,y=0},
text = "Crafter Alpha "..crafter_version,
number = 000000,
alignment = {x=1,y=1},
offset = {x=2, y=2},
})
player:hud_add({
hud_elem_type = "text",
position = {x=0,y=0},
text = "Crafter Alpha "..crafter_version,
number = 0xffffff,
alignment = {x=1,y=1},
offset = {x=0, y=0},
hud_elem_type = "image",
position = {x=1,y=0},
scale = {x=0.75,y=0.75},
text = "version.png",
--number = 000000,
--alignment = {x=-1,y=0},
offset = {x=-180, y=19},
})
end)

View File

@ -0,0 +1 @@
font used - https://www.fontspace.com/et-qtfunny-font-f9592 (Public Domain)

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB