Numeric class

Discuss GUI programming with the MUI Royale plugin here
Post Reply
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Numeric class

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Numeric class

Post 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.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Numeric class

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Numeric class

Post 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.
Post Reply