Search found 2862 matches

by airsoftsoftwair
Sun Mar 17, 2019 5:57 pm
Forum: Hollywood bugs
Topic: Possible bug with Hollywood player for Android
Replies: 12
Views: 372

Re: Possible bug with Hollywood player for Android

That's much too big for me to examine. Please cut it down to a minimal sample that demonstrates the issue...
by airsoftsoftwair
Sun Mar 17, 2019 11:29 am
Forum: SDK
Topic: Array and plugin functions
Replies: 3
Views: 534

Re: Array and plugin functions

lua_tonumber() is part of LuaBase. The other two are macros and are defined like this in Lua 5.0.2: #define lua_isnil(L,n) (lua_type(L,n) == LUA_TNIL) #define lua_pop(L,n) lua_settop(L, -(n)-1) Be careful to use Lua 5.0.2 when importing macros because that's what Hollywood uses. Newer versions can b...
by airsoftsoftwair
Sat Mar 16, 2019 6:32 pm
Forum: SDK
Topic: Array and plugin functions
Replies: 3
Views: 534

Re: Array and plugin functions

Sure, this is possible, e.g something like this. static int MyFunc(lua_State *L) { int n, done; for(n = 0, done = 0; !done; n++) { lua_rawgeti(L, 1, n); if(lua_isnil(L, -1)) done = 1; else printf("Value at index %d is %.14g\n", n, lua_tonumber(L, -1)); lua_pop(L, 1); } return 0; } MyFunc() expects a...
by airsoftsoftwair
Sat Mar 16, 2019 6:26 pm
Forum: Hollywood bugs
Topic: Possible bug with Hollywood player for Android
Replies: 12
Views: 372

Re: Possible bug with Hollywood player for Android

Can you post a very short example program which demonstrates the issue?
by airsoftsoftwair
Fri Mar 15, 2019 7:45 pm
Forum: MUI Royale
Topic: Single id for several objects
Replies: 5
Views: 325

Re: Single id for several objects

Ok, then you should be easily able to imitate this behaviour using MUI Royale's mui.Notify() function. This allows you to manually add or remove notifications to a MUI object.
by airsoftsoftwair
Fri Mar 15, 2019 7:43 pm
Forum: Newbie questions
Topic: Help for SQLite
Replies: 1
Views: 136

Re: Help for SQLite

The plugin is based on LuaSQLite3, so this might help:
http://lua.sqlite.org/index.cgi/doc/tip ... lite3.wiki
by airsoftsoftwair
Thu Mar 14, 2019 9:59 pm
Forum: MUI Royale
Topic: Knob object
Replies: 4
Views: 195

Re: Knob object

Well, there's lots of MUI functionality not covered by MUI Royale, e.g. implementing custom classes is impossible as well. I chose not support custom classes because it requires lots of knowledge about MUI and improper use could easily lead to crashes and unpredictable crashes all over. But concerni...
by airsoftsoftwair
Thu Mar 14, 2019 9:56 pm
Forum: MUI Royale
Topic: Single id for several objects
Replies: 5
Views: 325

Re: Single id for several objects

To be exact, the trick is that in E I am able to handle several objects via single notification. I don't understand how this should work in E. If you have five different sliders, you need to install notifications on all of them. I don't see how just copying pointer addresses should do that job, i.e...
by airsoftsoftwair
Tue Mar 12, 2019 10:32 pm
Forum: MUI Royale
Topic: Single id for several objects
Replies: 5
Views: 325

Re: Single id for several objects

Hmm, I don't really understand what's going on in your program but no, you can't use the same id for multiple objects. However, you can always free an object using mui.FreeObject() and then the id will be available again...
by airsoftsoftwair
Tue Mar 12, 2019 10:28 pm
Forum: Showcase
Topic: Coque!
Replies: 2
Views: 239

Re: Coque!

Nice!