Page 1 of 1

[Feature Request] Multiple Status Bars or Allow LUA to draw HUD

PostPosted: Fri Dec 21, 2012 20:11
by BrandonReese
I think it would be great to be able to register multiple status bars in lua. We only have a health bar now, but I know people are working on a hunger mod and such. If we had the option to register a status bar, and use lua to update the status bar that could open up a lot of new options. We could have a combination of health bar, hunger bar, stamina bar, air bar (for when your under water), or any other bar people can think of.

Or the other option I thought would be to hand over the entire drawing of the HUD to Lua, that way mods could change the look or position of the HUD, as well as add new items to the HUD (compass, clock, armor slots). I wonder how many mods could be improved by drawing on the player screen (drowning, hunger, and compass come to mind).

PostPosted: Fri Dec 21, 2012 21:05
by jmf
That would be epic.
Thousands of mods could be integrated with a nice look.
I just think of magic powers with mana and stuff.
Nice idea, should be implemented.

PostPosted: Sat Dec 22, 2012 16:40
by rubenwardy
+100

PostPosted: Sat Dec 22, 2012 17:04
by Zeg9
That would be great. Shouldn't become a way to flood the hud and crash clients, though... But yeah that'd be great!

PostPosted: Sat Dec 22, 2012 17:58
by Calinou
Zeg9 wrote:That would be great. Shouldn't become a way to flood the hud and crash clients, though... But yeah that'd be great!


It's so easy to crash clients using a mod already... :P

PostPosted: Sat Dec 22, 2012 18:00
by kaeza
+100 I've been thinking of having at least a GUI "canvas" item for some time now.

PostPosted: Sun Dec 23, 2012 20:05
by rarkenin
Or forcing a formspec-like form to appear without right-clicking a node.

PostPosted: Fri Dec 28, 2012 12:46
by sfan5
I'm working on something similar: https://github.com/sfan5/minetest/tree/customhud

PostPosted: Sun Dec 30, 2012 15:54
by dannydark
sfan5 wrote:I'm working on something similar: https://github.com/sfan5/minetest/tree/customhud


Oh nice :D have you done anything else with it recently?

PostPosted: Mon Dec 31, 2012 10:58
by sfan5
dannydark wrote:
sfan5 wrote:I'm working on something similar: https://github.com/sfan5/minetest/tree/customhud


Oh nice :D have you done anything else with it recently?

Not much, I need help implementing it into the Lua API

PostPosted: Thu Jan 03, 2013 20:17
by 0gb.us
Calinou wrote:It's so easy to crash clients using a mod already... :P


Define a node that is solid, but has a liquid draw-type. Clients will crash every time they log in, but the server won't even flinch.

PostPosted: Thu Jan 03, 2013 21:34
by rarkenin
0gb.us wrote:
Calinou wrote:It's so easy to crash clients using a mod already... :P


Define a node that is solid, but has a liquid draw-type. Clients will crash every time they log in, but the server won't even flinch.


This shou;d be fixed ASAP/

PostPosted: Fri Jan 04, 2013 15:45
by 4aiman
sfan5 wrote:I'm working on something similar: https://github.com/sfan5/minetest/tree/customhud

That's great! I think that should be pushed to the master branch! :)

Could you possibly look into not only adding ability to draw smth, but also the ability to "textout" smth?
It would be great to output realworld time that way for example.