Deprecated usage of statbar without size!

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

Deprecated usage of statbar without size!

by Wuzzy » Wed Sep 11, 2019 21:03

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
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 4 guests