Numeric class

Discuss GUI programming with the MUI Royale plugin here
Post Reply
User avatar
r-tea
Posts: 78
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Numeric class

Post by r-tea » Sun Aug 20, 2017 11:17 pm

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: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Numeric class

Post by airsoftsoftwair » Tue Aug 22, 2017 5:17 pm

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: 78
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: Numeric class

Post by r-tea » Tue Aug 22, 2017 10:59 pm

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: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Numeric class

Post by airsoftsoftwair » Sat Aug 26, 2017 1:40 pm

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