From 47eb770da9c031d46eeb0605d73bfb104714a899 Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Mon, 6 Apr 2020 10:14:17 -0400 Subject: [PATCH] Add better game name gui that doesn't interfere with chat or debug info --- README.md | 1 + crafter version.xcf | Bin 0 -> 21932 bytes mods/player/init.lua | 30 ++++++++-------------------- mods/player/textures/attributes.txt | 1 + mods/player/textures/version.png | Bin 0 -> 6259 bytes 5 files changed, 10 insertions(+), 22 deletions(-) create mode 100644 crafter version.xcf create mode 100644 mods/player/textures/attributes.txt create mode 100644 mods/player/textures/version.png diff --git a/README.md b/README.md index aae5372..c2f5c11 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ - Make snow falling node - Add creative mode - Add trap chest and sticky piston +- Added in Et QtFunny font info --- diff --git a/crafter version.xcf b/crafter version.xcf new file mode 100644 index 0000000000000000000000000000000000000000..8a67ca9c4735a4dcc7d652dae727dc8ff468ecc8 GIT binary patch literal 21932 zcmeHP%WoUi8b67#lQ@pkG)Y6tqo*#xEy#)8N0N#(xe!rQiAv>B9?Pjcb_V$o*%O+u zado9D!4};MJH+Ph?!Rz#(Y>215MqJE0uUP(EI@z+`{DP^nPX4fu{~#ON+M>W&%bZZ zoagsAbI!~+DH)X=zLziZH?z4MV{GIb{9FLh@g8UfG%|vpStA1Pip1@OjHM85Gif(HSJyS61dY%lCm(4m7J74FT`AW_?x95sh7q<=c5tGY4%^V~O*AaccebO=^ z5+{!6Cjy`N%E9j({6!%Bw#tByJtWd6zZaPNR^Z&{0v~)z;3?;v|4*E!X`Z)_7@M`8 z>_U&Rm^I6y)}sozhP-J|l*I#J!iw1C{bJ0TaN1Kr8q*ZYQJJ9pG01EdPGPLfH>Nrz$d+Itpd4?zdik5z0Q;9OxxW)wwjN>}jPiZm)Baim1M;<=6pt zqnJfI-cCv>_DPPR$v(5!K;g&^N+8r(d$rfi5-I&&OC-x2%o_iO8lqTLkq*=_VO_wk z>t6EiWv37MJ#Vs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/player/init.lua +++ b/mods/player/init.lua @@ -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) diff --git a/mods/player/textures/attributes.txt b/mods/player/textures/attributes.txt new file mode 100644 index 0000000..972d3b1 --- /dev/null +++ b/mods/player/textures/attributes.txt @@ -0,0 +1 @@ +font used - https://www.fontspace.com/et-qtfunny-font-f9592 (Public Domain) \ No newline at end of file diff --git a/mods/player/textures/version.png b/mods/player/textures/version.png new file mode 100644 index 0000000000000000000000000000000000000000..7564b6b277c9b62abc0cc69cb316f1a81927736c GIT binary patch literal 6259 zcmV-(7>wtMP)dQ@0+Qek%> zaB^>EX>4U6ba`-PAZ2)IW&i+q+NGLnawNAAg#Y&`d<47;I1W$%B76fM-(U93uC%gj z%i*OsB!@HIKvh;gKt1Olf4|S)_*ZgCPpQ`1Xf5!sj55;Xn;t&@=KB~!c^}_@`+UEP zzdrxu^nFv}sm#~>`LVa}^Lit%iQm_C|9p*;=j-n-G|u-I>(^h*?}bwT-r)QEj~nIq zxk1?93(fC^a{Au6e12ZvJGas8m#uxT7y9>^{`q|LP_m^~TeQMsNx`fQzV9g%qi$OZ zy`F~NSJ&q{fBgCR@zTVa(#bK0_pyIgnLnSC&+2+_={Noyxnh4 zf43ql-|y1r`JWdu5BHZ%_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