The values that can be passed to be application:setScaleMode such as Application.NO_SCALE, Application.CENTER... that are listed in the reference manual don't seem to be defined at runtime. Calling application:setScaleMode(application.NO_SCALE) fails with a type error. Calling print(application.NO_SCALE) gives nil. application:setScaleMode works if you use the string equivalent "noScale" instead.
Not sure if this an error in the documentation or in the code but the two are not consistent.
Also in the reference manual the application object is capitalized (Application) but in the code you need to use the lowercase version (application).
Very confusing for new users like myself.
Comments
So
Basically somewhere in the init code we have something like that:
Now there are instance methods and static methods. Instance methods need an instance to be used and they are written using colon ":"
So you can do this:
I will add it as a bug and will be fixed in next version, for now, you can use plain values as "noScale", "center", etc to change scale mode
Likes: SinisterSoft
https://deluxepixel.com
I just started with Gideros yesterday and I'm liking it a lot so far - especially the ability to so quickly and easily push code to the mobile device over wifi. That is a huge productivity boost.