Deprecated usage of statbar without size!

Post Reply
User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Deprecated usage of statbar without size!

by Wuzzy » Post

Deprecated usage of statbar without size!
I get this warning in console when I try to add a statbar without specifying the size argument.

Why is it deprecated? It doesn't make sense. Docs say this:
* `size`: If used, will force full-image size to this value (override texture
pack image size)
Which implies that it's OK to be nil.

So I'm getting mixed messages here … Is it now OK to use nil for size or not?

MT version: 5.0.1

Calicelechat
New member
Posts: 8
Joined: Wed Oct 11, 2023 07:08
GitHub: Calicelechat
IRC: Calice
In-game: Calice

Re: Deprecated usage of statbar without size!

by Calicelechat » Post

Hi, sorry but I don't have the slightest idea, but I'm looking for how to make a statbar???

User avatar
Blockhead
Member
Posts: 1684
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Deprecated usage of statbar without size!

by Blockhead » Post

Calicelechat wrote:
Fri Dec 15, 2023 10:01
Hi, sorry but I don't have the slightest idea, but I'm looking for how to make a statbar???
Use HUD Bars by Wuzzy.. the OP (original poster) of this thread. DuckDuckGo gives me a link to HUD Bars when I search "minetest statbar".

This thread dates back to 2019. It's typically not polite to revive old dead threads unless you have an answer or a very important update.

@Wuzzy, well now that the thread has been necro'd anyway, did you figure out the answer in the last 4 years? According to what I could find on Codeberg, apparently not, or, it is somehow related to UI scaling (how does that make sense?)
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Deprecated usage of statbar without size!

by Wuzzy » Post

No, there is no solution to the issue yet. And frankly, now I think it actually makes more sense to add progress bar support to the engine instead. The way HUD Bars implemented the progress bars was always based on a hack (it still is).

Calicelechat
New member
Posts: 8
Joined: Wed Oct 11, 2023 07:08
GitHub: Calicelechat
IRC: Calice
In-game: Calice

Re: Deprecated usage of statbar without size!

by Calicelechat » Post

Thank you very much for your response, I will take inspiration from Better HUD for my mod.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests