Numeric class

Discuss GUI programming with the MUI Royale plugin here

Numeric class

Postby 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
r-tea
 
Posts: 59
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland

Re: Numeric class

Postby 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
airsoftsoftwair
 
Posts: 2283
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Numeric class

Postby 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
r-tea
 
Posts: 59
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland

Re: Numeric class

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2283
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to MUI Royale

Who is online

Users browsing this forum: No registered users and 1 guest