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

Post Reply
User avatar
BrandonReese
Member
Posts: 839
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese
Location: USA

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

by BrandonReese » Post

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).

jmf
Member
Posts: 164
Joined: Mon Nov 05, 2012 18:13
Location: Germany

by jmf » Post

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.
No longer active in minetest.

User avatar
rubenwardy
Moderator
Posts: 6101
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

+100

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

That would be great. Shouldn't become a way to flood the hud and crash clients, though... But yeah that'd be great!
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Calinou
Moderator
Posts: 3162
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

+100 I've been thinking of having at least a GUI "canvas" item for some time now.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Or forcing a formspec-like form to appear without right-clicking a node.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
sfan5
Moderator
Posts: 3892
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

I'm working on something similar: https://github.com/sfan5/minetest/tree/customhud
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

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?

User avatar
sfan5
Moderator
Posts: 3892
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

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
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

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.

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

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/
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

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.

Post Reply

Who is online

Users browsing this forum: runs, WhoAreYou and 2 guests