Using overlay for fixed menu?

Hello!
I’m developing an interactive book for kids with the Storyboard API, and I would like to have a fixed menu bar at the bottom of the screen which allows me to switch between pages (storyboard scenes), while still being visible when the page slides. I mean, the menu bar and buttons stay in place and the scene changes behind it.

I’ve build my whole menu in a new scene, and I use overlay to show it, but when I change my page (the main scene), the overlay is hidden and showed back again when the new scene is loaded.

My question is, is there any way to make my overlay “fixed”, so I can change the scene behind it whitout reloading the overlay?

I’ve considered creating the menu in my main.lua file, but this is not too handy since I don’t need to have a menu in every scene (there are some scenes like the menu, settings and games section which do not need that menu bar).

Thanks in advance! [import]uid: 164564 topic_id: 32596 reply_id: 332596[/import]

Isn’t it possible for you to create the menu bar in your main.lua (like you already said) and sort of “connect” a function to it which enables/disables your menubar depending on the currently active scene?. E.g. if scene “settings” is active you disable the menubar using menubar.isVisible = false (don’t know what the best option is for it, started working with Corona/Lua one week ago so…) and if scene “withmenubar” is active you set it to true. I’m doing the same with a backbutton in my header at some scenes and it works so I think it could work here too.

Hope my little experience with Corona can help you. Let me know if it works for you :slight_smile: [import]uid: 189912 topic_id: 32596 reply_id: 129655[/import]

Isn’t it possible for you to create the menu bar in your main.lua (like you already said) and sort of “connect” a function to it which enables/disables your menubar depending on the currently active scene?. E.g. if scene “settings” is active you disable the menubar using menubar.isVisible = false (don’t know what the best option is for it, started working with Corona/Lua one week ago so…) and if scene “withmenubar” is active you set it to true. I’m doing the same with a backbutton in my header at some scenes and it works so I think it could work here too.

Hope my little experience with Corona can help you. Let me know if it works for you :slight_smile: [import]uid: 189912 topic_id: 32596 reply_id: 129655[/import]

Thank you Spanky.
That was one of my options, but at first it seemed a bit “dirty” for me. Anyway if I can’t get any other solution, I’ll apply this one :slight_smile: [import]uid: 164564 topic_id: 32596 reply_id: 129687[/import]

Thank you Spanky.
That was one of my options, but at first it seemed a bit “dirty” for me. Anyway if I can’t get any other solution, I’ll apply this one :slight_smile: [import]uid: 164564 topic_id: 32596 reply_id: 129687[/import]