Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Customizable Parameter Window

in Suggestions Posts: 79

After playing around with Shade for a while, I realised that it would be great to have a way to actually use the parameter window Codea has in an app. I'm aware of the fact that it is meant to be used for prototyping, however in "real" apps it could also prove to be rather useful if there was some additional functionality. Here are some suggestions:
- Choose whether to show output window or not / select height of output window
- Option to choose a number in a way similar to how parameter.text works (like in Shade)
- Change width/height of slider
- Choose colours for slider, text, etc.
- Lists (e.g. in Shade you can select from a variety of models to use when using "Prop")
- Multiple buttons/... next to each other (e.g. in Shade you have x and y values next to each other)
- Change width, colour, opacity of the parameter window
- Optional Swipe gesture to open parameter window
- Maybe there could be an option to have the parameter on the right side or both instead of just left
- When using parameter.clear there is a short delay until the new parameters are shown. Maybe have the option to show the new parameters immediately.

So in general it would be useful to have more control over the appearance of the parameter window and the additional functionality Shade uses. Using parameters is simply the easiest way to add a graphical user interface in Codea and although it is meant for prototyping I think it could actually become rather powerful (or at least make prototyping much more convenient).

Comments

  • SimeonSimeon Admin Mod
    Posts: 5,054

    We've been talking about replacing Codea's sidebar entirely with the new one from Shade. So I think this is a great idea :smile:

  • Posts: 79

    @Simeon That sounds fantastic! :smile:

  • Posts: 79

    @Simeon Just wanted to ask whether you have made some progress on this :)

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Leon not yet — I've been quite busy getting our new app, Shade, ready for release. I'll be back on Codea after we launch that.

  • Posts: 79

    @Simeon Sorry for my late response. Best of luck launching Shade, it really looks amazing!

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Leon no worries, now that Shade is out I can start on the next Codea update

  • Posts: 79

    @Simeon Hi, just wanted to ask whether you have made any progress yet.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Leon I'm back on Codea but working on getting the universal (i.e., iPad + iPhone) version out.

    Here's the current roadmap

    v2.8 - Next release due soon, iPad only, mostly internal changes to start support compact iPhone layout and bug fixes

    v3.0 - Universal release

    v3.x - Start looking at new sidebar for runtime, adopting iOS 13 APIs (multi-window on iPad, context menus, etc)

    v4.0 - New renderer based on Metal with a new API

  • Posts: 79

    @Simeon Thanks for the info! Definitely looks promising, especially the Universal release :smile:
    Just one last question: Codea was exposed to the file system of iOS some time ago. Any chance that Apps written in Codea might get access to the file system as well?

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Leon Codea doesn't actually get access to the file system. It can only access its own local documents and those documents it has explicitly created.

    The only way for Codea to access outside of its sandbox is if a user directly attempts to open a Codea project from the Files app from outside of Codea's directory. iOS takes this as permission for Codea to "see" the file and at that point we can read it.

    The other way is to present the user with a document picker and allow them to select a file for reading.

  • Posts: 79

    @Simeon Sorry, I guess what I wrote didn't really make sense.
    What I meant to ask was, whether it is possible for Codea-made apps to show certain files and/or their dedicated folders in the files app similar to Codea. This could be pretty useful to import photos etc.

    Or is it entirely possible to add this to a Codea-project in Xcode?

    It is certainly not a feature a lot of people need, but especially for apps it could be quite interesting.

  • JohnJohn Admin Mod
    Posts: 579

    @Leon A standalone Codea generated app should be able to access the Documents directory via "Documents:" assets. You can also make addons and they can do anything that a regular app can as long as you create Lua bindings to support it.

Sign In or Register to comment.