Unlisted StatusBar Changes?
One of the basic widget types is the StatusBar (like the experience bar, fills from left to right).
In an addon, I create a StatusBar in the XML like this: Code:
<StatusBar name="MyStatusBar" drawLayer="ARTWORK" minValue="0" maxValue="100" defaultValue="50"> Code:
MyStatusBar:GetValue() In addition, I can literally do this: Code:
MyStatusBar:SetValue(50) ... (edited) ... After a lot of testing, it turns out that the minValue and maxValue set in the XML are being ignored. It works perfectly fine if you call SetMinMaxValue(0,100) from Lua somewhere. Still, any clue what broke this, or why? |
Not sure, may be a bug they will fix. Or perhaps they want LUA to set these attributes now, also I saw you edited and I saw you figured the MinMaxValue thingy I was going to suggest. :p
|
Maybe they had default values for min/max that got removed, thus you need to set them now yourself. min/max could be anything.
|
All times are GMT -6. The time now is 09:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI