Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct2 + wizCanvas #41

Open
TheWyrm opened this issue Nov 1, 2014 · 8 comments
Open

Construct2 + wizCanvas #41

TheWyrm opened this issue Nov 1, 2014 · 8 comments

Comments

@TheWyrm
Copy link

TheWyrm commented Nov 1, 2014

Hi there,

I use a non-programming development environment called Constuct2 (https://www.scirra.com/construct2). Which allows exporting multiple wrappers such as PhoneGap. At present there is a bit of a performance hole for iOS7 and earlier and I was wondering if WizCanvas could help bridge the gap. So I have used the IntelXDK and have easily managed to import your plugin into a Cordova project. Therefore, would it be possible to get some help\instructions on what to do next?

I am willing to provide an example project and any more information that is required. I am also perfectly happy to accept that the kind of conversion that would be required is difficult in which case I would drop this line of inquiry. If successful I would write a tutorial for the rest of the C2 community who I am sure would be very appreciative.

@aogilvie
Copy link
Contributor

@TheWyrm Hi there,

Therefore, would it be possible to get some help\instructions on what to do next?

What do you want to do next? Seems like you have it integrated in the Cordova project so just build it?

I'd love to see a tutorial for C2 and wizCanvas!!

@TheWyrm
Copy link
Author

TheWyrm commented Nov 10, 2014

Well I have just imported the wizCanvas plugin. Is that all I have to do to to integrate it? I mean should it just work? or do have to initiate it or write code to use it? If it does just work then that would be amazing.

@TheWyrm TheWyrm closed this as completed Nov 10, 2014
@TheWyrm
Copy link
Author

TheWyrm commented Nov 13, 2014

@aogilvie Sorry just realized I should have added the at username for you to get notified that I have responded.

@TheWyrm TheWyrm reopened this Nov 13, 2014
@TheWyrm
Copy link
Author

TheWyrm commented Nov 13, 2014

Also managed to close it... I am such a noob! :)

@TheWyrm
Copy link
Author

TheWyrm commented Nov 16, 2014

@aogilvie So my response was "Well I have just imported the wizCanvas plugin. Is that all I have to do to to integrate it? I mean should it just work? or do have to initiate it or write code to use it? If it does just work then that would be amazing."

@aogilvie
Copy link
Contributor

@TheWyrm So take a look at the API and examples. Basically, WizCanvas is a new view (different from Phonegap/Cordova's view).
You create using;
wizCanvas.create(String viewName, JSONObject options, Function success, Function fail);

You can pass your JavaScript into the view inside the options var options = { src: "myFile.js"}

Be sure to check the example project. Your file should be inside /www folder. (In this example /www/myFile.js)

If you don't pass width or height, the view will be fullscreen automatically.

@greaterking
Copy link

Are you able to access native cordova api's within the canvas like "navigator.connection.type" ??

@pburstein
Copy link

Hi,
I'm trying to use wizCanvas but I cannot find any code example. Could anyone please point me to one?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants