Page 1 of 1

Numeric class

Posted: Sun Aug 20, 2017 11:17 pm
by r-tea
I wanted to use "numeric_decrease" method for my sliders, but it seems the Numeric class is missing for some reason in current MUIRoyale plugin . Am I right?

Re: Numeric class

Posted: Tue Aug 22, 2017 5:17 pm
by airsoftsoftwair
Yes but I don't think it's necessary to add this because it can easily be emulated by just getting the current level, applying the increase or decrease value, and set it again.

Re: Numeric class

Posted: Tue Aug 22, 2017 10:59 pm
by r-tea
Sure. You you're right.
Btw, the MUI docs say:
MUIA_Numeric_Value
NOTES
This attribute replaces the MUIA_Slider_Level tag of
previous MUI releases. For compatibility reasons,
both have the same hex value. Nevertheless, always
use MUIA_Numeric_Value in new code.
Does it mean the MUIA_Slider_Level can become unsupported one day and the Hollywood's Slider.Level attribute can stop working then?

Re: Numeric class

Posted: Sat Aug 26, 2017 1:40 pm
by airsoftsoftwair
No, MUIA_Numeric_Value is just a synonym for MUIA_Slider_Level. MUI Royale will keep Slider.Level because it doesn't export Numeric class anyway.