To go back to the original problem: How about a special method to get the MUI version? Something like moai.Get("app", "MuiVersion") ?
But thinking about it some more: What about a completely different but maybe even better approach:
The MUI version itself isn't really the information I want. What I really want to know is if some feature is supported or not. Maybe a feature is not supported because of the installed MUI being too old, but it could also be because of the platform the app is currently running. So it would be great if the developer could query if a feature is supported or not, maybe by calling something like:
moai.DoMethod("app", "isSupported", "button", "icon")
or
moai.DoMethod("app", "isSupported", "listview", "alternate")
or
moai.DoMethod("app", "isSupported", "listviewcolumn", "editable")
or maybe even outside of RapaGUI like
IsSupported("ChangeApplicationIcon")
What do you think?
Get MUI version
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Get MUI version
Too much work for too little gain. MUI versioning is pretty much a mess and then there are the different forks on MorphOS, OS4 and AROS (Zune). It's all rather complicated. MUI Royale, however, does have a function named mui.IsVersion4()