summaryrefslogtreecommitdiffstats
path: root/misc/dist/html/editor.html
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-15/+19
|\
| * Fix PWA callback assignment and error handlingKeegan McGonigle2024-10-221-15/+19
| |
* | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-111-13/+13
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Remove duplicate styling from editorKristopher A2024-07-031-1/+0
| | | The \#status-notice styling had a duplicate visibility styling.
* Make displayed Web errors more meaningfulAdam Scott2024-05-301-3/+8
|
* Add THREADS_ENABLED macro in order to compile Godot to run on the main threadAdam Scott2024-01-171-3/+5
|
* [Web] Add auto-formatting to HTML files.Fabio Alessandrelli2022-10-111-722/+727
| | | | | | | | | | Uses html-eslint for HTML file and eslint-plugin-html for inline JavaScript. Use HTML5 (not XHTML), remove CDATA and trailing slashes for self closing tags. Add format checks to CI.
* SCons: Unify tools/target build type configurationRémi Verschelde2022-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements https://github.com/godotengine/godot-proposals/issues/3371. New `target` presets ==================== The `tools` option is removed and `target` changes to use three new presets, which match the builds users are familiar with. These targets control the default optimization level and enable editor-specific and debugging code: - `editor`: Replaces `tools=yes target=release_debug`. * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2` - `template_debug`: Replaces `tools=no target=release_debug`. * Defines: `DEBUG_ENABLED`, `-O2`/`/O2` - `template_release`: Replaces `tools=no target=release`. * Defines: `-O3`/`/O2` New `dev_build` option ====================== The previous `target=debug` is now replaced by a separate `dev_build=yes` option, which can be used in combination with either of the three targets, and changes the following: - `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`), enables generating debug symbols, does not define `NDEBUG` so `assert()` works in thirdparty libraries, adds a `.dev` suffix to the binary name. Note: Unlike previously, `dev_build` defaults to off so that users who compile Godot from source get an optimized and small build by default. Engine contributors should now set `dev_build=yes` in their build scripts or IDE configuration manually. Changed binary names ==================== The name of generated binaries and object files are changed too, to follow this format: `godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]` For example: - `godot.linuxbsd.editor.dev.arm64` - `godot.windows.template_release.double.x86_64.mono.exe` Be sure to update your links/scripts/IDE config accordingly. More flexible `optimize` and `debug_symbols` options ==================================================== The optimization level and whether to generate debug symbols can be further specified with the `optimize` and `debug_symbols` options. So the default values listed above for the various `target` and `dev_build` combinations are indicative and can be replaced when compiling, e.g.: `scons p=linuxbsd target=template_debug dev_build=yes optimize=debug` will make a "debug" export template with dev-only code enabled, `-Og` optimization level for GCC/Clang, and debug symbols. Perfect for debugging complex crashes at runtime in an exported project.
* [Web] Add missing features warning in editor and export shell.Fabio Alessandrelli2022-09-171-20/+15
|
* Merge pull request #57006 from Calinou/web-editor-no-threads-modalRémi Verschelde2022-05-161-5/+48
|\
| * Display a modal dialog if threads are unavailable in the web editorHugo Locurcio2022-01-201-5/+48
| | | | | | | | | | | | | | | | Threads are required for the web editor to function. If the web server is not correctly configured, threads won't be available. This makes troubleshooting easier for people looking to self-host the web editor.
* | Merge pull request #57005 from Calinou/web-editor-tweak-logo-max-widthFabio Alessandrelli2022-02-121-1/+1
|\ \ | | | | | | Tweak logo max width on the web editor
| * | Tweak logo max width on the web editorHugo Locurcio2022-01-201-1/+1
| |/ | | | | | | | | | | | | | | The logo's maximum width is now dependent on the viewport height in addition to the page width. This prevents the "Start Godot editor" button from overflowing the page on mobile devices (although the "Clear persistent data" and "Web editor documentation" buttons will still overflow for now).
* / [HTML5] Improve editor progressive web app behavior.Fabio Alessandrelli2022-02-061-3/+33
|/ | | | | | Ensures early claim for aggressive caching. Adds a button to update when it detects a new version asking confirmation due to the necessary reload.
* Tweak theme color to match the Godot editor's background colorHugo Locurcio2022-01-191-2/+2
| | | | | | | | | This makes for a more seamless-looking address bar/status bar when using the web editor on a mobile device, either directly in the brower or installed as a progressive web app. This also specifies a theme color for the web editor's offline fallback.
* [HTML5] Add WebGL2 (GLES3) support using the OpenGL renderer.Fabio Alessandrelli2021-11-191-5/+5
| | | | | | | Note, the editor build requires the mbedtls module to be manually enabled, as it is currently needed as a ResourceUID dependency. This will need to be addressed in a separate PR.
* [HTML5] Editor video driver option. Replace canvas on exit.Fabio Alessandrelli2021-10-191-12/+30
| | | | | | | | | Default is "Auto", but can be forced to a specific WebGL version if the automatic detection fails. The game and editor canvas are now replaced with a new one in the exit hooks. This helps the browser do some context cleanup, and allow us to create a new context of a different type (WebGL/WebGL2).
* Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke2021-08-221-1/+1
|
* Merge pull request #47069 from Calinou/html5-editor-welcome-dialogFabio Alessandrelli2021-04-171-0/+65
|\ | | | | Add a welcome dialog to the HTML5 editor
| * Add a welcome dialog to the HTML5 editorHugo Locurcio2021-03-171-0/+65
| | | | | | | | | | | | | | | | | | This modal dialog displayed when the page is loaded. It can be dismissed permanently by clicking the "OK, don't show again" button. Clicking outside the modal will only dismiss it once. This dialog is used to remind people that the HTML5 editor is still in release candidate stage and isn't considered production-ready yet.
* | Add Open Graph metadata to the HTML5 editorHugo Locurcio2021-03-241-17/+26
|/ | | | | | | - Consistently use double quotes in the HTML markup. - Define English language to assist screen readers and search engines. - Add missing `alt` text for the logo image. - Remove duplicate `id` for the preload project ZIP input.
* [HTML5] Drag and drop zip in project manager.Fabio Alessandrelli2021-03-121-2/+2
| | | | | | | | | | | 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).
* [HTML5] Add PWA support to the editor page.Fabio Alessandrelli2021-03-081-2/+18
| | | | | | | | | | | | | | | | 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.
* [HTML5] Make editor HTML build tag scons4-proof.Fabio Alessandrelli2021-02-261-2/+2
| | | | | | 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.
* Improve the editor HTML templateHugo Locurcio2021-02-241-8/+26
| | | | | | | | | | | | | | - 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.
* [HTML5] Easier HTML templates, better deinit/cleanup.Fabio Alessandrelli2021-02-191-56/+75
|
* [HTML5] Editor: ensure canvas focus when switching tabs.Fabio Alessandrelli2021-02-111-0/+4
|
* [HTML5] Fix web editor "clear persistent data".Fabio Alessandrelli2021-02-111-4/+2
| | | | Was broken after update to new persistent path "/home/web_user".
* [HTML5] Make home path persistent in editor.Fabio Alessandrelli2021-02-031-3/+3
| | | | | | | | | 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.
* [HTML5] Better editor HTML, small refactor.Fabio Alessandrelli2021-01-251-1/+10
| | | | | Side and GDNative libraries are now added by engine.js , the dynlink pre js had been deleted.
* Make links on the HTML5 editor more readableHugo Locurcio2021-01-071-4/+22
| | | | | This also tweaks the focus style to apply to all elements for better keyboard navigation.
* Fix and decrease Godot logo size in the HTML5 editor loaderHugo Locurcio2020-12-261-1/+1
| | | | The logo can no longer overflow the viewport.
* [HTML5] Add logo and favicon to editor html.Fabio Alessandrelli2020-12-091-0/+2
|
* [HTML5] Improve the editor HTML template.Hugo Locurcio2020-12-091-12/+49
|
* [HTML5] Editor also persists cache.Fabio Alessandrelli2020-12-091-2/+3
|
* Add missing javascript semi-colons.Marcel Admiraal2020-11-171-1/+1
|
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-5/+0
|
* Add JavaScript editor html file.Fabio Alessandrelli2020-10-141-0/+475