Radio ID

Discuss GUI programming with the RapaGUI plugin here

Radio ID

Postby ilbarbax » Sun Nov 20, 2016 11:29 pm

It seems that the Radio class does not accept the ID attribute.
At least I need to change from code the label of the different radio options: I thought was possible to do something like this:

In the xml file I would have
<radio id="ps_radio_dist" notify="active">
<item ID="km_label" >km</item>
<item ID="miles_label">Miles</item>
</radio>

The I would like to change them from code with
moai.Set("km_label", "text", "Kilometers")
moai.Set("miles_label", "text", "Feet")

but it seems it is not allowed
ilbarbax
 
Posts: 77
Joined: Thu Apr 01, 2010 6:41 pm

Re: Radio ID

Postby airsoftsoftwair » Tue Nov 22, 2016 11:47 pm

MUI doesn't support this at the moment because MUIA_Radio_Entries can only be set at initialization time, not at runtime. Go to http://muidev.de and file an enhancement request. If MUI supports it, I can add support for it as well.
User avatar
airsoftsoftwair
 
Posts: 2233
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to RapaGUI

Who is online

Users browsing this forum: No registered users and 2 guests

cron