Fabio Alessandrelli
d4e302a3a4
[HTML5] Fix JavaScript string parsing with new interface.
...
Strings are UTF-8 encoded and should be parsed as such, while it was
being parsed as a C string before.
2021-07-07 15:44:29 +02:00
Fabio Alessandrelli
ad5bdaf5aa
[HTML5] JS callback functions now returns passed value.
...
JavaScript callbacks created via the `JavaScript.create_callback` method
used to always return void.
With this patch they return the value returned by the Godot function as
one would expect.
2021-06-18 17:47:48 +02:00
Fabio Alessandrelli
049b5159f1
[HTML5] Fix JS build without eval.
...
Also fix download_buffer return type.
2021-06-14 12:32:53 +02:00
Fabio Alessandrelli
fdf66a21f1
[HTML5] Add easy to use download API.
...
New `JavaScript.download_buffer` method to create a prompt that let the
user download a file.
2021-05-21 15:31:23 +02:00
Fabio Alessandrelli
9811035ebf
[HTML5] Implement Godot <-> JavaScript interface.
2021-05-20 14:33:18 +02:00