summaryrefslogtreecommitdiff
path: root/misc/dist/html
AgeCommit message (Collapse)Author
2021-03-24[HTML5] Clarify editor PWA manifest.jsonFabio Alessandrelli
Update name and description to clarify it's the web version.
2021-03-17[HTML5] Fix bogus Web Editor manifest.Fabio Alessandrelli
The `start_url` in the PWA manifest.json must be relative for it to work in subfolders (like in the official Web Editor page).
2021-03-12[HTML5] Drag and drop zip in project manager.Fabio Alessandrelli
With a very nice hack, a new hidden configuration option that delays dropped files removal at exit. This still leaks while the project manager is running, but will clear memory as soon as it exits or load something. (reminder, dropped files are reguarly removed after the signal is emitted specifically to avoid leaks, but I prefer hacking the HTML5 config then the project manager).
2021-03-08[HTML5] Add PWA support to the editor page.Fabio Alessandrelli
This allows to install it as an app, and provide offline support (after the first run). Practically, this boils down to adding a JSON file as a manifest, an offline page to be displayed when the cached files are not avaialble, and a JS file to cache resources and return them. The reason for the "first run requirements" is that some browsers, will emit an "install" by just visiting the page (to see if the JS code is compatibile), and we do not want to force casual visitors to just download the 10 MiB+ compressed editor WebAssembly file without pressing the start button. Special thanks to Hugo Locurcio (Calinou) for the initial work.
2021-02-26[HTML5] Make editor HTML build tag scons4-proof.Fabio Alessandrelli
We used to have it like `$GODOT_VERSION` which caused inconsistencies between different scons versions when substituting it. It's now `@GODOT_VERSION@`, which is safe on both scons3 and scons4.
2021-02-24Improve the editor HTML templateHugo Locurcio
- Darken the header tab background to match the default editor background color. - Hide the distracting focus outlines for the editor and game canvas. - Use a pure black background for the game canvas to better distinguish it from the editor and provide a more neutral background. - Use a bold font weight for the Start Godot editor button on the loader page. - Link to the web editor documentation on the loader page. - Clarify what happens when clicking "OK" in the persistent data removal warning dialog. - Tidy up the HTML template by removing obsolete attributes.
2021-02-21Remove unused variables from full-size.htmlMarcel Admiraal
2021-02-19[HTML5] Better fullscreen, canvas resizing.Fabio Alessandrelli
Three canvas resize policies: - `None`: Godot window settings are ignored. - `Project`: Godot handles the canvas like a native app (resizing it when setting the window size). - `Adaptive`: Canvas size will always adapt to browser window size. Use `None` if you want to control the canvas size with custom JavaScript code.
2021-02-19[HTML5] Easier HTML templates, better deinit/cleanup.Fabio Alessandrelli
2021-02-11[HTML5] Editor: ensure canvas focus when switching tabs.Fabio Alessandrelli
2021-02-11[HTML5] Fix web editor "clear persistent data".Fabio Alessandrelli
Was broken after update to new persistent path "/home/web_user".
2021-02-03[HTML5] Make home path persistent in editor.Fabio Alessandrelli
We used to only persist specific sub-folder of /home/web_user/ when running the Web Editor. This resulted in bad UX about default project creation path etc. This PR makes the whole folder persistent, move the zip preloading to a different folder (to avoid persisting it), and automatically prompt the user to import it if present.
2021-01-25[HTML5] Better editor HTML, small refactor.Fabio Alessandrelli
Side and GDNative libraries are now added by engine.js , the dynlink pre js had been deleted.
2021-01-07Make links on the HTML5 editor more readableHugo Locurcio
This also tweaks the focus style to apply to all elements for better keyboard navigation.
2020-12-26Fix and decrease Godot logo size in the HTML5 editor loaderHugo Locurcio
The logo can no longer overflow the viewport.
2020-12-11Remove two very slightly displaced duplicate vertices on Gobot's faceLorenzo Cerqua
They didn't show up at all in the rendered PNG, but were pretty annoying when working with Gobot face on Inkscape
2020-12-09[HTML5] Add logo and favicon to editor html.Fabio Alessandrelli
2020-12-09[HTML5] Improve the editor HTML template.Hugo Locurcio
2020-12-09[HTML5] Editor also persists cache.Fabio Alessandrelli
2020-12-05[HTML5] EditorRunNative works with GDNative.Fabio Alessandrelli
This "breaks" our loading bar logic (libraries are not counted). Fixing it is non trivial and probably deserves investigating a different strategy.
2020-11-17Add missing javascript semi-colons.Marcel Admiraal
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-10-14Add JavaScript editor html file.Fabio Alessandrelli
2020-09-23Make canvas resize optional in HTML5.Fabio Alessandrelli
2020-09-23Better HiDPI support in HTML5.Fabio Alessandrelli
2020-09-10Remove unused variable in fixed-size.html.Marcel Admiraal
2020-09-09Explicitly add implicitly added semicolons.Marcel Admiraal
2020-05-12Add WebSocket debugger, use it for Javascript.Fabio Alessandrelli
2020-05-10DisplayServerJavaScript implementation.Fabio Alessandrelli
2020-04-22Set the `title` tag in the HTML5 export immediatelyHugo Locurcio
This makes the project title display without having to wait for the project to finish loading.
2020-02-01Export and reference the icon as favicon when exporting to HTML5Hugo Locurcio
This makes the project icon display immediately as a favicon when opening the page, without having to wait for the project to finish loading.
2019-10-01Fixed running the export templates with newer emscripten versions.Relintai
2019-09-14Fix HTML5 export after #30864Fabio Alessandrelli
2019-09-03Fixed javascript code to remove animateStatusIndeterminate callback when the ↵Enzo Ferrari
game is loaded. (cherry picked from commit a5a413c7e971808576bbcf369e91208b51d0d819)
2019-06-14Fix pointer position in hidpi-corrected resolutions on webLeonardo Giovanni Scur
2018-08-23Add responsive HTML5 export page with full-size canvas as new defaultLeon Krause
2018-05-10Merge pull request #18765 from eska014/enginejs-extaltRémi Verschelde
Facilitate using non-default filename extensions in HTML5 platform
2018-05-10Accept non-default main packs in engine.js startGame()Leon Krause
Allows using startGame() with main packs exported as .zip, but also any other custom extension, for example if a web game host does not allow the .pck filename extension.
2018-05-10Fix keyboard focus lock-out with HTML5 canvas in iframeLeon Krause
2018-03-15Check only for WebGL 1.0, move test to HTML fileLeon Krause
Whether to use WebGL 1.0 or 2.0 can only be determined at runtime after reading project settings, so check for the lower version. The test is now in the HTML file, so if desired WebGL 2.0 can be checked early by changing the behaviour there.
2018-01-06Fix internal Emscripten JS API callsLeon Krause
Emscripten 1.37.24 no longer exports these by default
2017-11-19Change HTML5 start-up APILeon Krause
Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
2017-11-18Remove asm.js support from HTML5 platformLeon Krause
Since WebGL 2.0 is required, requiring WebAssembly support as well has little impact on compatibility.
2017-09-11HTML5 start-up overhaulLeon Krause
- Implement promise-based JS interface for custom HTML page integration - Add download progress callback - Add progress bar and indeterminate spinner to default HTML page - Try downloading files multiple times when failing - Get rid of godotfs.js - Separate steps for engine initialization, game initialization and game start - Allow multiple games on one HTML page - Substitution placeholders only used in .html file - Placeholders renamed: $GODOT_BASE => $GODOT_BASENAME, $GODOT_TMEM -> $GODOT_TOTAL_MEMORY - Emscripten Module is now Engine.RuntimeEnvironment (no longer a global)